Displaying 2 results from an estimated 2 matches for "with_mangle_user".
2003 Feb 12
2
rsync & ldap authentication
...e is better, more flexible way to rewrite usernames.
Only the files authenticate.c and loadparm.c have been modified.
How to build a rsync version with ldap support
There is no autoconf support for the new features. To enable them edit the
Makefile after running configure.
- Add -DWITH_LDAP -DWITH_MANGLE_USER to the CFLAGS line.
- On Linux add -lldap and -llber to the LIBS Flags.
- On Solaris add -lldap to the LIBS Flags.
New options in rsyncd.conf
All ldap options will exist even when rsync isn't build ldap support.
To enable anonymous access to rsyncd both "auth users" and
"...
2003 May 03
0
Storing rsync secrets in LDAP
...9s", user, pass) != 2) {
return NULL;
}
-
- 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...