diff options
author | Jeremy Allison <jra@samba.org> | 2002-01-18 02:11:27 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-01-18 02:11:27 +0000 |
commit | 4e0912c614e319a3e5d7980226e8f2dc5003c8a9 (patch) | |
tree | 15b4ebd7e0a0b3eb4263870d884983ea7d50af28 | |
parent | 3b72facbb6c534e6880d220502b31edc4003acc6 (diff) | |
download | samba-4e0912c614e319a3e5d7980226e8f2dc5003c8a9.tar.gz samba-4e0912c614e319a3e5d7980226e8f2dc5003c8a9.tar.xz samba-4e0912c614e319a3e5d7980226e8f2dc5003c8a9.zip |
Allow for winbind separator in connects. Patch from Alexander Bokovoy <a.bokovoy@sam-solutions.net>.
Jeremy.
-rw-r--r-- | source/libsmb/cliconnect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/cliconnect.c b/source/libsmb/cliconnect.c index e0a1dfa598f..16da673e73c 100644 --- a/source/libsmb/cliconnect.c +++ b/source/libsmb/cliconnect.c @@ -330,7 +330,7 @@ BOOL cli_session_setup(struct cli_state *cli, /* allow for workgroups as part of the username */ fstrcpy(user2, user); - if ((p=strchr(user2,'\\')) || (p=strchr(user2,'/'))) { + if ((p=strchr(user2,'\\')) || (p=strchr(user2,'/')) || (p=strchr(user2,*lp_winbind_separator())) ) { *p = 0; user = p+1; workgroup = user2; |