summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-08-31 13:07:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:59 -0500
commitfc7f8236bd35d299efe9a17eff53d75c7509bc37 (patch)
treeefc3e3c83cdc93816d753bb0bb6f5f9a5304189a
parentc3d6fea11f0b755c4971697440b6a4f9389706f7 (diff)
downloadsamba-fc7f8236bd35d299efe9a17eff53d75c7509bc37.tar.gz
samba-fc7f8236bd35d299efe9a17eff53d75c7509bc37.tar.bz2
samba-fc7f8236bd35d299efe9a17eff53d75c7509bc37.zip
r17967: Somewhere along the line we lost unixName here, and so lost the
ability for 'administrator' to log in as unix user 'root'. Andrew Bartlett (This used to be commit 221efba5289b8bbb54b770c556f19bfbdc9ee216)
-rw-r--r--source4/dsdb/common/sidmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/common/sidmap.c b/source4/dsdb/common/sidmap.c
index 70bf8f0ecb..73bfde2794 100644
--- a/source4/dsdb/common/sidmap.c
+++ b/source4/dsdb/common/sidmap.c
@@ -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;