From 3c74117e2eb6616b8f539807ae8824d963f7987c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 20 Jun 2012 14:07:51 +0200 Subject: s3:idmap_cache: also store negative entries for unknown sids metze Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Thu Jun 21 18:04:05 CEST 2012 on sn-devel-104 --- source3/lib/idmap_cache.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/idmap_cache.c b/source3/lib/idmap_cache.c index 011a017c48..edf37a8496 100644 --- a/source3/lib/idmap_cache.c +++ b/source3/lib/idmap_cache.c @@ -89,6 +89,10 @@ bool idmap_cache_find_sid2unixid(const struct dom_sid *sid, struct unixid *id, tmp_id.type = ID_TYPE_BOTH; break; + case 'N': + tmp_id.type = ID_TYPE_NOT_SPECIFIED; + break; + case '\0': DEBUG(0, ("FAILED to parse value for key [%s] " "(id=[%llu], endptr=[%s]): " @@ -289,6 +293,9 @@ void idmap_cache_set_sid2unixid(const struct dom_sid *sid, struct unixid *unix_i case ID_TYPE_BOTH: fstr_sprintf(value, "%d:B", (int)unix_id->id); break; + case ID_TYPE_NOT_SPECIFIED: + fstr_sprintf(value, "%d:N", (int)unix_id->id); + break; default: return; } -- cgit