search for: lp_ldap_root

Displaying 2 results from an estimated 2 matches for "lp_ldap_root".

Did you mean: lp_ldap_port
2003 Feb 12
2
rsync & ldap authentication
...filter) - 1; b++) { + filter[l++]=*b; + } + c++; + } else { + filter[l++]=*c; + } + } + + if ((ld=ldap_init(lp_ldap_server(), lp_ldap_port())) == NULL) { + 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"); +...
2003 May 03
0
Storing rsync secrets in LDAP
...filter[l++]=*c; + } + } + + if ((ld=ldap_init(lp_ldap_server(), lp_ldap_port())) == NULL) { + 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) { +...