Ldap DNS SRV record support

Dave Macias davama at gmail.com
Wed Oct 11 16:18:37 CEST 2017


Is it possible for the module to do DNS discovery of the available ldap
servers?

I created a srv record for my ldap servers which im able to resolve.
# domain amer.nwk.jwm2.net
_ldap._tcp SRV 0 1 389 my-ldap-server1
_ldap._tcp SRV 0 2 389 my-ldap-server2
_ldap._tcp SRV 0 3 389 my-ldap-server3

$ host -t srv _ldap._tcp.amer
_ldap._tcp.amer.nwk.jwm2.net has SRV record 0 3 389
my-ldap-server3.amer.nwk.jwm2.net.
_ldap._tcp.amer.nwk.jwm2.net has SRV record 0 2 389
my-ldap-server2.amer.nwk.jwm2.net.
_ldap._tcp.amer.nwk.jwm2.net has SRV record 0 1 389
my-ldap-server1.amer.nwk.jwm2.net.


$ ldapsearch -LLL -H "ldap:///dc%3Damer.nwk.jwm2.net" -b dc=datacom,dc=net
-D "cn=manager,dc=datacom,dc=net" -w '<pass>' uid=config
dn: uid=config,ou=People,dc=datacom,dc=net
uid: config
cn: ECR user
givenName: ECR
...
...


Thanks!
-dave


More information about the Freeradius-Users mailing list