* uinfo.cc (pwdgrp::fetch_account_from_windows): Disallow creating an
entry for "NULL SID".
This commit is contained in:
parent
ebf78cec85
commit
3faecb14b4
@ -1,3 +1,8 @@
|
|||||||
|
2014-08-31 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* uinfo.cc (pwdgrp::fetch_account_from_windows): Disallow creating an
|
||||||
|
entry for "NULL SID".
|
||||||
|
|
||||||
2014-08-31 Corinna Vinschen <corinna@vinschen.de>
|
2014-08-31 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* sec_acl.cc (setacl): Add comment. Handle NULL ACE for SUID, SGID,
|
* sec_acl.cc (setacl): Add comment. Handle NULL ACE for SUID, SGID,
|
||||||
|
@ -1795,9 +1795,9 @@ pwdgrp::fetch_account_from_windows (fetch_user_arg_t &arg, cyg_ldap *pldap)
|
|||||||
+ (sid_sub_auth_rid (sid) & 0xffff);
|
+ (sid_sub_auth_rid (sid) & 0xffff);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/* Special case for "Everyone". We don't want to return Everyone
|
/* Special case for "NULL SID", S-1-0-0 and "Everyone", S-1-1-0.
|
||||||
as user or group. Ever. */
|
Never return "NULL SID" or Everyone as user or group. */
|
||||||
if (uid == 0x10100) /* Computed from S-1-1-0. */
|
if (uid == 0x10000 || uid == 0x10100)
|
||||||
return NULL;
|
return NULL;
|
||||||
break;
|
break;
|
||||||
case SidTypeLabel:
|
case SidTypeLabel:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user