When both '-b' (i.e. bind DN) and '-D' (i.e. Kerberos domain) options
are specified, '-b' is ignored completely. This breaks the helper when a
search subtree has to be limited (e.g., when using FreeIPA).
Fix it to take '-b' into account if it was specified with '-D'.
"%s| %s: DEBUG: Error during initialisation of ldap connection: %s\n",
LogTime(), PROGRAM, strerror(errno));
}
- bindp = convert_domain_to_bind_path(domain);
+ if (margs->lbind) {
+ bindp = xstrdup(margs->lbind);
+ } else {
+ bindp = convert_domain_to_bind_path(domain);
+ }
}
if ((!domain || !ld) && margs->lurl && strstr(margs->lurl, "://")) {
char *hostname;