#
#
# settings for ldap2dhcp.pl
#
# $Id: ldap2dhcp 5645 2018-02-01 11:51:09Z joergs $
#
LDAP2DHCP_TEMPLATEFILE=/etc/smartclient/dhcpd/dhcpd.conf.header
LDAP2DHCP_DHCPCONFFILE=/etc/smartclient/dhcpd/dhcpd.conf

# lease time dyn. range (1 <= n < 60)
LDAP2DHCP_DYNLEASETIME=60
# lease time fixed range netboot (60 <= n < 300)
LDAP2DHCP_NETBOOTLEASETIME=200
# lease time fixed range localboot (>= 300)
LDAP2DHCP_LOCALBOOTLEASETIME=14400

# lease time for mobile devices (devices that are currently in other networks)
LDAP2DHCP_MOBILE_LEASETIME=300


#
# use different domain names
# depending on the option vendor-class-identifier.
#
# DOMAIN_NAME_FULL:   list of DNS domains, from current location to general
# DOMAIN_NAME_SINGLE: only current location DNS domain
# DOMAIN_NAME_NONE:   don't set domain name at all
#
LDAP2DHCP_DOMAIN_NAME_FULL_REGEX="^(PXE|Linux)"
LDAP2DHCP_DOMAIN_NAME_SINGLE_REGEX=""
LDAP2DHCP_DOMAIN_NAME_NONE_REGEX=""

#
# "option domain-name"
# 
# some operating systems (eg. Linux) 
# can handle multiple domain-names
# and use them as DNS search list,
# others (eg. Windows) can only cope with a single domain.
# Therefore the generated dhcp code tries to detect
# if the requesting client is a Linux system or not:
#
# Linux ("vendor-class-identifier" contains "Linux"):
#   searchlist is calculated based on current DN 
#   and LDAP2DHCP_APPEND_SEARCHLIST is added
# Other systems:
#   searchlist is LDAP2DHCP_DEFAULT_SEARCHLIST if defined,
#   otherwise calcutated based on current DN
# 
LDAP2DHCP_DEFAULT_SEARCHLIST=""
LDAP2DHCP_APPEND_SEARCHLIST="server.smartclient.de smartclient.de"

#
# commands executed if a new dhcpd.conf is generated
#
LDAP2DHCP_NEW_CONFIG_CMD="rcdhcpd restart"


#
# secondary ldap2dhcp
#

# LDAP2DHCP_SECONDARYMODE=1
# LDAP2DHCP_NOTAUTHORITATIVE=1
# deactivate dynamic range globaly
# LDAP2DHCP_NODYNRANGE=1



#
# commands executed for a secondary DHCP server. 
# If only one DHCP server is used, left in undefined
#

# we expect, ldap2dhcp to return nothing or something about "dhcpd restart"
# In the second case, we restart dhcp on the secondary host.
# Storing the return value in a variable is complicated (quoting)
# and therefore given up
#
# LDAP2DHCP_SECONDARYSCRIPTLIST="ssh -o StrictHostkeyChecking=no dhcpadmin@lxldap nice -10 /usr/bin/ldap2dhcp.pl --secondarymode --notauthoritative --nodynrange | grep -q 'dhcpd restart' && ssh -o StrictHostkeyChecking=no dhcpadmin@lxldap sudo /etc/init.d/dhcpd restart"

# setting for creating PXE config links (1) or not (0)
LDAP2DHCP_CREATE_PXE_CFG_LINKS=0

# setting for enclosing all subnet declarations in a shared-network
# this is needed if multiple IP networks are used in the same
# physical network
LDAP2DHCP_SHARED_NETWORK=0

# a shared-network declaration must be assigned a descriptive name
# which is used dhcpd prints debugging messages.
LDAP2DHCP_SHARED_NETWORK_NAME="smartclient"

# list of location DNs build the shared-network, separated by semicolon (;)
#LDAP2DHCP_SHARED_NETWORK_LOCATIONS="ou=org,dc=smartclient,dc=de;ou=Net50,ou=org,dc=smartclient,dc=de;ou=Net51,ou=org,dc=smartclient,dc=de"
