Replace backslash with winbind separator before calling parse_domain_user(). Winbind...
authorJim McDonough <jmcd@samba.org>
Tue, 11 Dec 2001 19:27:40 +0000 (19:27 +0000)
committerJim McDonough <jmcd@samba.org>
Tue, 11 Dec 2001 19:27:40 +0000 (19:27 +0000)
source/nsswitch/winbindd_ads.c

index a3188f8a37e1c33271795dcca5d995322f5634bc..e52f448a63737737da64da34f4f521638ad80612 100644 (file)
@@ -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;
        }