[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#4996) Use SRV records to locate local server for command-line clients

Full_Name: Russ Allbery
Version: 2.3.35
OS: Debian
Submission from: (NULL) (

A user of the Debian OpenLDAP package requested support in the command-line
utilities for using SRV entries to locate the local LDAP server.  My
understanding of the suggestion is that if one didn't specify -h or -H, a SRV
record lookup would be tried before falling back to localhost.  (You may not
want to change the default behavior, though, and add another switch.)

For the full suggestion, see:


It looks like much of the necessary code is already there in libldap, and
looking at the libldap code, you could also intuit the correct server based on
any search base provided.