1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

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 168ddf31d1)
This commit is contained in:
Günther Deschner
2005-01-28 17:05:55 +00:00
committed by Gerald (Jerry) Carter
parent 962a5c9552
commit 26dcc2aa74

View File

@ -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;