From f739ccb1b9da4b5b7941944e8a4342049254c8d8 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 17 Jun 2010 08:07:40 +0200 Subject: 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. --- source3/winbindd/idmap_tdb.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'source3') 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; -- cgit