#
# settings for leases2ldap subsystem
#
# $Id: leases2ldap 9811 2014-09-19 09:45:41Z HZuchel $
#

# path of dhcpd.leases
LEASES2LDAP_LEASES_FILE=/var/lib/dhcp/db/dhcpd.leases
LEASES2LDAP_CLEARED_LEASES_FILE=/var/lib/smartclient/dhcp/dhcpd.leases.cleared

# command executed if a mac will be removed from leases file
LEASES2LDAP_STOP_DHCPD="sudo /etc/init.d/dhcpd stop"
# command executed if a mac was removed from leases file
LEASES2LDAP_START_DHCPD="sudo /var/lib/smartclient/dhcp/sc_start_dhcpd_with_new_leases"

# function that will be called from refreshDislocatedDevicePermission 
# to evalute the permission level of a dislocated device
# LEASES2LDAP_DISLOCATION_DEVICE_PERMISSION_FUNCTION="permissionAddAutoMoveAdmin"
# for debeka use
LEASES2LDAP_DISLOCATION_DEVICE_PERMISSION_FUNCTION="dbkPermissionAddAutoMoveAdmin"

# shared mmap file for IPC
LEASES2LDAP_MMAP_FILE_DISLOCATED_DEVICES=/var/cache/smartclient/dislocated_devices.mmap

# max retries to fetch an ldap entry in method getLdapEntrySafely
LEASES2LDAP_LDAP_MAX_REFETCH_RETRIES=10

# regular expression for auto-move of workstations in debeka locations
# LEASES2LDAP_DISLOCATION_DEVICE_AUTO_MOVE_PERMISSION_REGEX="ou=gs200008|ou=gs200009|ou=gs200010|gs200014|gs200015"

# device types for auto-move of workstations in debeka locations, when
# device-type of location equals device-type of workstation
# LEASES2LDAP_DISLOCATION_DEVICE_AUTO_MOVE_EQUAL_DEVICE_TYPE_DNS="cn=deviceIPPhone,ou=global,o=debeka,c=de"

# device types for auto-move of workstations in debeka locations
# LEASES2LDAP_DISLOCATION_DEVICE_AUTO_MOVE_DEVICE_TYPE_DNS=""

# define standard device type is none is given
# LEASES2LDAP_STANDARD_DEVICE_TYPE_DN='cn=deviceKnuTPC,ou=global,o=smartclient,c=de'

# define networks which are ignored by leases2ldap
# LEASES2LDAP_IGNORE_NETWORKS=""

# Lease entries will be expired when end of lease time older than the specified
# period. The distance-instruction is the number of days, hours, minutes and
# seconds (in that order).
LEASES2LDAP_LEASES_EXPIRE_AFTER="3,0,0,0"

# Lease-entries are ignored if the device type is equal to one of the listed device types
LEASES2LDAP_LEASES_IGNORE_DEVICE_TYPE_DNS="cn=deviceADKPC,ou=global,o=debeka,c=de"
