summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-01-06 04:03:26 +0000
committerTim Potter <tpot@samba.org>2002-01-06 04:03:26 +0000
commit969d82ef25a7ae13cc1c7ba2a4f2f920e37b41be (patch)
tree899cef1ac69f0d7384a4235460862c259b5050a1 /source3
parentcd0772e51e0c5344fdeba70f8dc5b227854910df (diff)
downloadsamba-969d82ef25a7ae13cc1c7ba2a4f2f920e37b41be.tar.gz
samba-969d82ef25a7ae13cc1c7ba2a4f2f920e37b41be.tar.bz2
samba-969d82ef25a7ae13cc1c7ba2a4f2f920e37b41be.zip
Check for winbind separator in user name for cli_session_setup()
Patch from Alexander Bokovoy <a.bokovoy@sam-solutions.net> (This used to be commit 6c42bf208976ed3020e57efff6281f984d9fe893)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/cliconnect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index bd79f23213..a3b22485cf 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -576,7 +576,8 @@ BOOL cli_session_setup(struct cli_state *cli,
/* allow for workgroups as part of the username */
fstrcpy(user2, user);
- if ((p=strchr_m(user2,'\\')) || (p=strchr_m(user2,'/'))) {
+ if ((p=strchr_m(user2,'\\')) || (p=strchr_m(user2,'/')) ||
+ (p=strchr_m(user2,*lp_winbind_separator()))) {
*p = 0;
user = p+1;
workgroup = user2;