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

Revert "Simplify idmap_cache_set() a bit"

This reverts commit 55b976ba93462c6885e8d89edd13c32fb5529944.
(This used to be commit 23edc4ec0ab1de60a864de01c0ff90ea1378231d)
This commit is contained in:
Volker Lendecke 2008-07-11 17:43:25 +02:00
parent 50a84acc40
commit ebb9437f4f

View File

@ -95,9 +95,14 @@ NTSTATUS idmap_cache_set(struct idmap_cache_ctx *cache, const struct id_map *id)
char *valstr;
/* Don't cache lookups in the S-1-22-{1,2} domain */
if (sid_check_is_in_unix_users(id->sid)
|| sid_check_is_in_unix_groups(id->sid)) {
if ( (id->xid.type == ID_TYPE_UID) &&
sid_check_is_in_unix_users(id->sid) )
{
return NT_STATUS_OK;
}
if ( (id->xid.type == ID_TYPE_GID) &&
sid_check_is_in_unix_groups(id->sid) )
{
return NT_STATUS_OK;
}