[PATCH] cliconnect.c workgroup separator

Alexander Bokovoy a.bokovoy at sam-solutions.net
Sat Jan 5 03:54:04 GMT 2002


Workgroup separator check in source/libsmb/cliconnect.c does not 
take 'winbind separator' option into account and therefore fails
during cli_session_setup. Patch attached.

-- 
/ Alexander Bokovoy
$ cat /proc/identity >~/.signature
  `Senior software developer and analyst for SaM-Solutions Ltd.`
---
Nov 21 20:58:58 alconost kernel: VFS: Busy inodes after unmount. 
		    Self-destruct in 5 seconds.  Have a nice day...
-------------- next part --------------
--- source/libsmb/cliconnect.c.orig	Thu Jan  3 13:31:49 2002
+++ source/libsmb/cliconnect.c	Sat Jan  5 12:51:37 2002
@@ -576,7 +576,8 @@
 
 	/* 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;


More information about the samba-technical mailing list