search for: gen_challenge

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

2003 Feb 12
2
rsync & ldap authentication
...rs) && (!group || !*group)) return ""; +#else + if (!users || !*users) { + if (group && *group) { + rprintf(FERROR,"no ldap support: unset \"ldap auth usergroup\" for anonymous access\n"); + return NULL; + } + return ""; + } +#endif gen_challenge(addr, challenge); @@ -234,23 +341,38 @@ return NULL; } - users = strdup(users); - if (!users) return NULL; - - for (tok=strtok(users," ,\t"); tok; tok = strtok(NULL," ,\t")) { - if (strcmp(tok, user) == 0) break; - } - free(users); - - if (!tok) { - return NULL; +#if...
2003 May 03
0
Storing rsync secrets in LDAP
...if (group && *group) { + rprintf(FERROR,"no ldap support: unset \"ldap auth usergroup\" +for anonymous access\n"); + return NULL; + } + return ""; + } +#endif gen_challenge(addr, challenge); @@ -234,24 +341,39 @@ if (sscanf(line,"%99s %29s", user, pass) != 2) { return NULL; } - - users = strdup(users); - if (!users) return NULL; - for (tok=strtok(users," ,\t"); tok; tok = strtok(NU...