summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2001-12-11 19:27:40 +0000
committerJim McDonough <jmcd@samba.org>2001-12-11 19:27:40 +0000
commitd9c3ef84503d49fc14c400cd9c6f7cac605d1dee (patch)
tree5af07ea7f1f2709c923091dc2235d41b15802cf5 /source3/nsswitch
parentee4d68211542f1d3bf4422173b8f8c263edac9c2 (diff)
downloadsamba-d9c3ef84503d49fc14c400cd9c6f7cac605d1dee.tar.gz
samba-d9c3ef84503d49fc14c400cd9c6f7cac605d1dee.tar.bz2
samba-d9c3ef84503d49fc14c400cd9c6f7cac605d1dee.zip
Replace backslash with winbind separator before calling parse_domain_user(). Winbind separators other than backslash didn't work.
(This used to be commit 6688781331e046adc77783792fc009cda7c8b5b8)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_ads.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c
index a3188f8a37..e52f448a63 100644
--- a/source3/nsswitch/winbindd_ads.c
+++ b/source3/nsswitch/winbindd_ads.c
@@ -327,11 +327,13 @@ static NTSTATUS name_to_sid(struct winbindd_domain *domain,
void *res = NULL;
char *exp;
uint32 t;
- fstring name2, dom2;
+ fstring name2, dom2, fullname2;
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
/* sigh. Need to fix interface to give us a raw name */
- if (!parse_domain_user(name, dom2, name2)) {
+ fstrcpy(fullname2, name);
+ fstring_sub(fullname2, "\\", lp_winbind_separator());
+ if (!parse_domain_user(fullname2, dom2, name2)) {
goto done;
}