summaryrefslogtreecommitdiffstats
path: root/source/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
commit6688781331e046adc77783792fc009cda7c8b5b8 (patch)
tree23cd07d86208e4299b35438db19834d2aee49815 /source/nsswitch
parentb110f57e49bcb4e3c648020850ee18d1888b9152 (diff)
downloadsamba-6688781331e046adc77783792fc009cda7c8b5b8.tar.gz
samba-6688781331e046adc77783792fc009cda7c8b5b8.tar.xz
samba-6688781331e046adc77783792fc009cda7c8b5b8.zip
Replace backslash with winbind separator before calling parse_domain_user(). Winbind separators other than backslash didn't work.
Diffstat (limited to 'source/nsswitch')
-rw-r--r--source/nsswitch/winbindd_ads.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/nsswitch/winbindd_ads.c b/source/nsswitch/winbindd_ads.c
index a3188f8a37e..e52f448a637 100644
--- a/source/nsswitch/winbindd_ads.c
+++ b/source/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;
}