Displaying 2 results from an estimated 2 matches for "lp_mangle_us".
Did you mean:
lp_mangle_user
2003 Feb 12
2
rsync & ldap authentication
...- 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;
+#ifdef WITH_MANGLE_USER
+ /* foreach $pattern (split(/[ ,\t]+/, &lp_mangle_user($module)){ $user=~s/^$pattern//;warn "bla";last} */
+ if (lp_mangle_user(module)) {
+ char *prefix, *tofree;
+ prefix = tofree = strdup(lp_mangle_user(module));
+ if(!prefix) return NULL; /* strdup may fail */
+ for (prefix=strtok(prefix, " ,\t"); prefix; prefix=strtok(NUL...
2003 May 03
0
Storing rsync secrets in LDAP
...-
- users = strdup(users);
- if (!users) return NULL;
- for (tok=strtok(users," ,\t"); tok; tok = strtok(NULL," ,\t")) {
- if (fnmatch(tok, user, 0) == 0) break;
+#ifdef WITH_MANGLE_USER
+ /* foreach $pattern (split(/[ ,\t]+/, &lp_mangle_user($module)){
+$user=~s/^$pattern//;warn "bla";last} */
+ if (lp_mangle_user(module)) {
+ char *prefix, *tofree;
+ prefix = tofree = strdup(lp_mangle_user(module));
+ if(!prefix) return NULL; /* strdup may fail */
+ for (prefix...