summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-06-17 08:07:40 +0200
committerMichael Adam <obnox@samba.org>2010-08-14 02:10:50 +0200
commitf739ccb1b9da4b5b7941944e8a4342049254c8d8 (patch)
treefab2adf996678fa0ade27b07acf78bff6c1ca2fd /source3/winbindd
parentb1285a5cb3411dc0e2437d0952318b4837f14d81 (diff)
downloadsamba-f739ccb1b9da4b5b7941944e8a4342049254c8d8.tar.gz
samba-f739ccb1b9da4b5b7941944e8a4342049254c8d8.tar.bz2
samba-f739ccb1b9da4b5b7941944e8a4342049254c8d8.zip
s3:idmap_tdb: remove unused idmap_tdb_load_ranges()
The idmap_tdb_state (which should actually be called idmap_tdb_alloc_context) is being removed since the alloc part is combined with the id mapping part.
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/idmap_tdb.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/source3/winbindd/idmap_tdb.c b/source3/winbindd/idmap_tdb.c
index 9d6df34f24..0cee04d182 100644
--- a/source3/winbindd/idmap_tdb.c
+++ b/source3/winbindd/idmap_tdb.c
@@ -206,41 +206,6 @@ static bool idmap_tdb_upgrade(struct idmap_domain *dom, struct db_context *db)
return True;
}
-static NTSTATUS idmap_tdb_load_ranges(void)
-{
- uid_t low_uid = 0;
- uid_t high_uid = 0;
- gid_t low_gid = 0;
- gid_t high_gid = 0;
-
- if (!lp_idmap_uid(&low_uid, &high_uid)) {
- DEBUG(1, ("idmap uid missing\n"));
- return NT_STATUS_UNSUCCESSFUL;
- }
-
- if (!lp_idmap_gid(&low_gid, &high_gid)) {
- DEBUG(1, ("idmap gid missing\n"));
- return NT_STATUS_UNSUCCESSFUL;
- }
-
- idmap_tdb_state.low_uid = low_uid;
- idmap_tdb_state.high_uid = high_uid;
- idmap_tdb_state.low_gid = low_gid;
- idmap_tdb_state.high_gid = high_gid;
-
- if (idmap_tdb_state.high_uid <= idmap_tdb_state.low_uid) {
- DEBUG(1, ("idmap uid range missing or invalid\n"));
- return NT_STATUS_UNSUCCESSFUL;
- }
-
- if (idmap_tdb_state.high_gid <= idmap_tdb_state.low_gid) {
- DEBUG(1, ("idmap gid range missing or invalid\n"));
- return NT_STATUS_UNSUCCESSFUL;
- }
-
- return NT_STATUS_OK;
-}
-
static NTSTATUS idmap_tdb_open_db(struct idmap_domain *dom)
{
NTSTATUS ret;