diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-06-20 14:07:51 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-06-21 18:04:05 +0200 |
commit | 3c74117e2eb6616b8f539807ae8824d963f7987c (patch) | |
tree | 0451d923e431d5fc5bf935e0ec7a8f6903c60ccb /source3/lib | |
parent | a65173ae68a489875a2758b7e0b5640e9ac412fe (diff) | |
download | samba-3c74117e2eb6616b8f539807ae8824d963f7987c.tar.gz samba-3c74117e2eb6616b8f539807ae8824d963f7987c.tar.bz2 samba-3c74117e2eb6616b8f539807ae8824d963f7987c.zip |
s3:idmap_cache: also store negative entries for unknown sids
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jun 21 18:04:05 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/idmap_cache.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; } |