summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-01-28 17:05:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:13 -0500
commit26dcc2aa749552d98d3636a46c20efd542c82f6d (patch)
treec09e82256a3365484eea1576f31cc5b74661b713
parent962a5c95528932fde64c8c8b70b0a81c382c2905 (diff)
downloadsamba-26dcc2aa749552d98d3636a46c20efd542c82f6d.tar.gz
samba-26dcc2aa749552d98d3636a46c20efd542c82f6d.tar.bz2
samba-26dcc2aa749552d98d3636a46c20efd542c82f6d.zip
r5058: Due to the fragileness how windows reacts on unmapped sids sometimes,
don't leave administator-sid unmapped. Simply return "Administrator" Guenther (This used to be commit 168ddf31d1af49d52d17dd09c9653d3deafb9442)
-rw-r--r--source3/passdb/passdb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index 9d56cc29c8..815b7f95f0 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -794,6 +794,12 @@ BOOL local_lookup_sid(const DOM_SID *sid, char *name, enum SID_NAME_USE *psid_na
return True;
}
+ if (rid == DOMAIN_USER_RID_ADMIN) {
+ *psid_name_use = SID_NAME_USER;
+ fstrcpy(name, "Administrator");
+ return True;
+ }
+
if (algorithmic_pdb_rid_is_user(rid)) {
uid_t uid;
struct passwd *pw = NULL;