From: Volker Lendecke Date: Sun, 9 Nov 2003 17:24:16 +0000 (+0000) Subject: From 3_0: X-Git-Tag: samba-3.0.1pre3~3^2~7 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=efe36a44d3d35f2bbb3381916dfdfda80560b67c;p=thirdparty%2Fsamba.git From 3_0: Skip over the winbind separator when looking up a user. Volker --- diff --git a/source/auth/auth_util.c b/source/auth/auth_util.c index dd0c0b02dde..d7d7f53e2d4 100644 --- a/source/auth/auth_util.c +++ b/source/auth/auth_util.c @@ -972,6 +972,7 @@ struct passwd *smb_getpwnam( char *domuser ) p = strchr( domuser, *lp_winbind_separator() ); if ( p ) { + p += 1; fstrcpy( mapped_username, p ); map_username( mapped_username ); return Get_Pwnam(mapped_username);