diff options
author | Aravind Srinivasan <aravind.srinivasan@isilon.com> | 2009-04-16 20:42:40 +0000 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-05-12 17:13:40 -0700 |
commit | 5aefb44bf04becc6b80e7c3bf038d79851c5b0f9 (patch) | |
tree | 8d95e23e6fd300abf5bc20c2a45e09070032101e /source3/passdb/pdb_wbc_sam.c | |
parent | c71d4530b4f3a575b4e413eff0b0f61205d38cfd (diff) | |
download | samba-5aefb44bf04becc6b80e7c3bf038d79851c5b0f9.tar.gz samba-5aefb44bf04becc6b80e7c3bf038d79851c5b0f9.tar.bz2 samba-5aefb44bf04becc6b80e7c3bf038d79851c5b0f9.zip |
s3: Fallback to the legacy sid_to_(uid|gid) instead of returning NULL.
This is very similar to be1dfff02d562e42a7847bd02fed8538630d3f41
Diffstat (limited to 'source3/passdb/pdb_wbc_sam.c')
-rw-r--r-- | source3/passdb/pdb_wbc_sam.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/source3/passdb/pdb_wbc_sam.c b/source3/passdb/pdb_wbc_sam.c index e8116d0995..9c31a0d75c 100644 --- a/source3/passdb/pdb_wbc_sam.c +++ b/source3/passdb/pdb_wbc_sam.c @@ -81,22 +81,6 @@ static bool pdb_wbc_sam_gid_to_sid(struct pdb_methods *methods, gid_t gid, return winbind_gid_to_sid(sid, gid); } -static bool pdb_wbc_sam_sid_to_id(struct pdb_methods *methods, - const DOM_SID *sid, - union unid_t *id, enum lsa_SidType *type) -{ - if (winbind_sid_to_uid(&id->uid, sid)) { - *type = SID_NAME_USER; - } else if (winbind_sid_to_gid(&id->gid, sid)) { - /* We assume all gids are groups, not aliases */ - *type = SID_NAME_DOM_GRP; - } else { - return false; - } - - return true; -} - static NTSTATUS pdb_wbc_sam_enum_group_members(struct pdb_methods *methods, TALLOC_CTX *mem_ctx, const DOM_SID *group, @@ -430,7 +414,6 @@ static NTSTATUS pdb_init_wbc_sam(struct pdb_methods **pdb_method, const char *lo (*pdb_method)->set_account_policy = pdb_wbc_sam_set_account_policy; (*pdb_method)->uid_to_sid = pdb_wbc_sam_uid_to_sid; (*pdb_method)->gid_to_sid = pdb_wbc_sam_gid_to_sid; - (*pdb_method)->sid_to_id = pdb_wbc_sam_sid_to_id; (*pdb_method)->search_groups = pdb_wbc_sam_search_groups; (*pdb_method)->search_aliases = pdb_wbc_sam_search_aliases; |