search for: ldap_auth_usergroup

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

2003 Feb 12
2
rsync & ldap authentication
...DAP +/* return the secret for a user from the ldap server. maximum length + is len. null terminate it */ +static int get_ldap_secret(int module, char *user, char *secret, int len) +{ + LDAP *ld; + LDAPMessage *result, *entry; + char *attrs[2], *dn, **vals; + char filter[512], *c; + char *group=lp_ldap_auth_usergroup(module); + int l=0, ok=0; + + /* password attribute to get as result */ + attrs[0]=lp_ldap_passwd_attribute(module); attrs[1]=NULL; + + /* find nasty character in user that would mess up the ldap filter */ + for (c="()!&|*=<>~"; *c; c++) { + if (strchr(user, *c)) { + return 0...
2003 May 03
0
Storing rsync secrets in LDAP
...a user from the ldap server. maximum length + is len. null terminate it */ +static int get_ldap_secret(int module, char *user, char *secret, int len) +{ + LDAP *ld; + LDAPMessage *result, *entry; + char *attrs[2], *dn, **vals; + char filter[512], *c; + char *group=lp_ldap_auth_usergroup(module); + int l=0, ok=0; + + /* password attribute to get as result */ + attrs[0]=lp_ldap_passwd_attribute(module); attrs[1]=NULL; + + /* find nasty character in user that would mess up the ldap filter */ + for (c="()!&|*=<>~"; *c; c++) { +...