r17967: Somewhere along the line we lost unixName here, and so lost the
authorAndrew Bartlett <abartlet@samba.org>
Thu, 31 Aug 2006 13:07:51 +0000 (13:07 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:16:59 +0000 (14:16 -0500)
ability for 'administrator' to log in as unix user 'root'.

Andrew Bartlett
(This used to be commit 221efba5289b8bbb54b770c556f19bfbdc9ee216)

source4/dsdb/common/sidmap.c

index 70bf8f0ecb80d8890c70e1ab422c315c4ca2e302..73bfde27949d88972c491173771603ab76df248c 100644 (file)
@@ -126,7 +126,7 @@ _PUBLIC_ NTSTATUS sidmap_sid_to_unixuid(struct sidmap_context *sidmap,
                                        struct dom_sid *sid, uid_t *uid)
 {
        const char *attrs[] = { "sAMAccountName", "uidNumber", 
-                               "sAMAccountType", NULL };
+                               "sAMAccountType", "unixName", NULL };
        int ret;
        const char *s;
        TALLOC_CTX *tmp_ctx;