diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-05-02 10:44:16 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-05-02 13:18:05 +0200 |
commit | bb1d541da10ca35f7bfc22e9c5e735d8ed01bb49 (patch) | |
tree | a60c09b0285841432e89e101884502ec305e9d88 | |
parent | c844f657793c0f8df3b2afcf710166b628e8233b (diff) | |
download | samba-bb1d541da10ca35f7bfc22e9c5e735d8ed01bb49.tar.gz samba-bb1d541da10ca35f7bfc22e9c5e735d8ed01bb49.tar.bz2 samba-bb1d541da10ca35f7bfc22e9c5e735d8ed01bb49.zip |
s3-idmap: remove (now) unused function idmap_cache_set_sid2both()
Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r-- | source3/lib/idmap_cache.c | 24 | ||||
-rw-r--r-- | source3/lib/idmap_cache.h | 1 |
2 files changed, 0 insertions, 25 deletions
diff --git a/source3/lib/idmap_cache.c b/source3/lib/idmap_cache.c index 6bba5b0551..773579bd14 100644 --- a/source3/lib/idmap_cache.c +++ b/source3/lib/idmap_cache.c @@ -369,30 +369,6 @@ void idmap_cache_set_sid2gid(const struct dom_sid *sid, gid_t gid) return; } - -/** - * Store a mapping in the idmap cache - * @param[in] sid the sid to map - * @param[in] gid the gid to map - * - * If both parameters are valid values, then a positive mapping in both - * directions is stored. If "is_null_sid(sid)" is true, then this will be a - * negative mapping of gid, we want to cache that for this gid we could not - * find anything. Likewise if "gid==-1", then we want to cache that we did not - * find a mapping for the sid passed here. - */ - -void idmap_cache_set_sid2both(const struct dom_sid *sid, gid_t gid) -{ - struct unixid id; - id.type = ID_TYPE_BOTH; - id.id = gid; - - idmap_cache_set_sid2unixid(sid, &id); - return; -} - - static char* key_xid2sid_str(TALLOC_CTX* mem_ctx, char t, const char* id) { return talloc_asprintf(mem_ctx, "IDMAP/%cID2SID/%s", t, id); } diff --git a/source3/lib/idmap_cache.h b/source3/lib/idmap_cache.h index afb8c16940..088526635e 100644 --- a/source3/lib/idmap_cache.h +++ b/source3/lib/idmap_cache.h @@ -34,7 +34,6 @@ bool idmap_cache_find_gid2sid(gid_t gid, struct dom_sid *sid, bool *expired); void idmap_cache_set_sid2unixid(const struct dom_sid *sid, struct unixid *unix_id); void idmap_cache_set_sid2uid(const struct dom_sid *sid, uid_t uid); void idmap_cache_set_sid2gid(const struct dom_sid *sid, gid_t gid); -void idmap_cache_set_sid2both(const struct dom_sid *sid, uid_t uid); bool idmap_cache_del_uid(uid_t uid); bool idmap_cache_del_gid(gid_t gid); |