summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-11-09 17:24:16 +0000
committerVolker Lendecke <vlendec@samba.org>2003-11-09 17:24:16 +0000
commit649f7d749de3f09dca8415fadf1efb3d74f57e0f (patch)
treeba80ca9d99e21fad392d675768e6f3c0974d505a /source3
parent30d0680106c74901d6fc0c993c3c4770cd2efb22 (diff)
downloadsamba-649f7d749de3f09dca8415fadf1efb3d74f57e0f.tar.gz
samba-649f7d749de3f09dca8415fadf1efb3d74f57e0f.tar.bz2
samba-649f7d749de3f09dca8415fadf1efb3d74f57e0f.zip
From 3_0:
Skip over the winbind separator when looking up a user. Volker (This used to be commit efe36a44d3d35f2bbb3381916dfdfda80560b67c)
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/auth_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index dd0c0b02dd..d7d7f53e2d 100644
--- a/source3/auth/auth_util.c
+++ b/source3/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);