Saturday, February 5, 2011

How to setup LDAP DNS Discovery

LDAP DNS discovery can simplify the client hosts setup. The following need to be added to zone file.
$ORIGIN dev.local.
_ldap._tcp  IN SRV 10 0 389 ldapk1
_ldap._tcp  IN SRV 20 0 389 ldapk2
The client configuration can now look like this (file /etc/ldap/ldap.conf):
# BASE    dc=dev,dc=local
# URI     ldap://ldapk1/
Let test it:
host -t SRV _ldap._tcp

No comments :

Post a Comment