search for: lp_ldap_suffix

Displaying 3 results from an estimated 3 matches for "lp_ldap_suffix".

2006 Jul 26
1
ldapsam ignores "ldap user suffix" when doing username lookup
...ove to. :-) Here's the situation from my perspective: When looking up a user account, in pdb_ldap.c, ldapsam_getsampwnam() invokes ldapsam_search_suffix_by_name(), which in turn calls smbldap_search_suffix() in smbldap.c. smbldap_search_suffix() then invokes smbldap_search() with scope set to lp_ldap_suffix(), which corresponds to the full "ldap suffix" context. I wonder why ldapsam_getsampwnam() doesn't invoke an LDAP search call that is limited to the lp_ldap_user_suffix scope. Or do this first and then another search in the lp_ldap_machine_suffix scope after that, if for some reason...
2003 Feb 12
2
rsync & ldap authentication
...rprintf(FERROR,"ldap: init failed (%s:%d)\n", lp_ldap_server(), lp_ldap_port()); + } else { + if (ldap_simple_bind_s(ld, lp_ldap_root(), lp_ldap_root_passwd()) != LDAP_SUCCESS) { + rprintf(FERROR,"ldap: bind failed %s\n", lp_ldap_root()); + } else { + if (ldap_search_s(ld, lp_ldap_suffix(), LDAP_SCOPE_SUBTREE, filter, attrs, 0, &result) != LDAP_SUCCESS) { + rprintf(FERROR,"ldap: search_s failed\n"); + } else { + if (!(entry=ldap_first_entry(ld, result))) { + rprintf(FERROR,"ldap: first_entry failed or no user found\n"); + } else { + if (!(dn=ldap_get_d...
2003 May 03
0
Storing rsync secrets in LDAP
...dap_server(), +lp_ldap_port()); + } else { + if (ldap_simple_bind_s(ld, lp_ldap_root(), lp_ldap_root_passwd()) != +LDAP_SUCCESS) { + rprintf(FERROR,"ldap: bind failed %s\n", lp_ldap_root()); + } else { + if (ldap_search_s(ld, lp_ldap_suffix(), LDAP_SCOPE_SUBTREE, filter, +attrs, 0, &result) != LDAP_SUCCESS) { + rprintf(FERROR,"ldap: search_s failed\n"); + } else { + if (!(entry=ldap_first_entry(ld, result))) { + rprintf(FERROR,"ldap: first_entry failed...