From 26dcc2aa749552d98d3636a46c20efd542c82f6d Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 28 Jan 2005 17:05:55 +0000 Subject: 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) --- source3/passdb/passdb.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3') 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; -- cgit