diff options
author | Atul Kulkarni <atul.kulkarni@in.ibm.com> | 2013-08-30 13:35:49 +0530 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-10-02 00:06:18 +0200 |
commit | 7cacc48563f6d16a74669bf572437b13f6f54250 (patch) | |
tree | 38e91279323a0a3cd6161a0d92762d0446f84b1e /source3/winbindd/idmap_autorid.c | |
parent | 65d7df105587fe14d057c3fa84c889f2c8c4500e (diff) | |
download | samba-7cacc48563f6d16a74669bf572437b13f6f54250.tar.gz |
idmap_autorid: remove autorid_global_config member from autorid_range_config
global config is not part of range config.
By removing this, autorid_range_config becomes more suitable
for using it elsewhere.
Pair-Programmed-With: Michael Adam <obnox@samba.org>
Signed-off-by: Atul Kulkarni <atul.kulkarni@in.ibm.com>
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/winbindd/idmap_autorid.c')
-rw-r--r-- | source3/winbindd/idmap_autorid.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c index fb0985b9ddc..fa16c1383a8 100644 --- a/source3/winbindd/idmap_autorid.c +++ b/source3/winbindd/idmap_autorid.c @@ -91,17 +91,8 @@ static NTSTATUS idmap_autorid_allocate_id(struct idmap_domain *dom, struct unixid *xid) { NTSTATUS ret; - struct idmap_tdb_common_context *commoncfg; - struct autorid_global_config *globalcfg; struct autorid_range_config range; - commoncfg = - talloc_get_type_abort(dom->private_data, - struct idmap_tdb_common_context); - - globalcfg = talloc_get_type(commoncfg->private_data, - struct autorid_global_config); - if (dom->read_only) { DEBUG(3, ("Backend is read-only, refusing " "new allocation request\n")); @@ -112,7 +103,6 @@ static NTSTATUS idmap_autorid_allocate_id(struct idmap_domain *dom, ZERO_STRUCT(range); - range.globalcfg = globalcfg; fstrcpy(range.domsid, ALLOC_RANGE); ret = idmap_autorid_get_domainrange(autorid_db, &range, dom->read_only); @@ -492,7 +482,6 @@ static NTSTATUS idmap_autorid_sids_to_unixids(struct idmap_domain *dom, } TALLOC_FREE(domain); - range.globalcfg = global; sid_to_fstring(range.domsid, &domainsid); /* Calculate domain_range_index for multi-range support */ |