From d9c3ef84503d49fc14c400cd9c6f7cac605d1dee Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Tue, 11 Dec 2001 19:27:40 +0000 Subject: Replace backslash with winbind separator before calling parse_domain_user(). Winbind separators other than backslash didn't work. (This used to be commit 6688781331e046adc77783792fc009cda7c8b5b8) --- source3/nsswitch/winbindd_ads.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/nsswitch/winbindd_ads.c') 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; } -- cgit