summaryrefslogtreecommitdiff
path: root/source3/winbindd/idmap_tdb.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-01-22 17:59:18 +0100
committerMichael Adam <obnox@samba.org>2010-08-14 02:10:35 +0200
commit95b840cbf1a22c13c038f9ffe999672bf444daa9 (patch)
treec57323135665775fc5f328c97b0b9821936fa946 /source3/winbindd/idmap_tdb.c
parent3715a1687f0b258d0c8f0966eddc8aa6586a8735 (diff)
downloadsamba-95b840cbf1a22c13c038f9ffe999672bf444daa9.tar.gz
samba-95b840cbf1a22c13c038f9ffe999672bf444daa9.tar.bz2
samba-95b840cbf1a22c13c038f9ffe999672bf444daa9.zip
s3:idmap: remove unused method set_id_hwm from idmap API
Michael
Diffstat (limited to 'source3/winbindd/idmap_tdb.c')
-rw-r--r--source3/winbindd/idmap_tdb.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/source3/winbindd/idmap_tdb.c b/source3/winbindd/idmap_tdb.c
index af91ee9278..095889f255 100644
--- a/source3/winbindd/idmap_tdb.c
+++ b/source3/winbindd/idmap_tdb.c
@@ -476,50 +476,6 @@ static NTSTATUS idmap_tdb_allocate_id(struct unixid *xid)
}
/**********************************
- Set high id.
-**********************************/
-
-static NTSTATUS idmap_tdb_set_hwm(struct unixid *xid)
-{
- const char *hwmkey;
- const char *hwmtype;
- uint32_t hwm;
- uint32_t high_hwm;
- NTSTATUS ret;
-
- /* Get current high water mark */
- switch (xid->type) {
-
- case ID_TYPE_UID:
- hwmkey = HWM_USER;
- hwmtype = "UID";
- high_hwm = idmap_tdb_state.high_uid;
- break;
-
- case ID_TYPE_GID:
- hwmkey = HWM_GROUP;
- hwmtype = "GID";
- high_hwm = idmap_tdb_state.high_gid;
- break;
-
- default:
- return NT_STATUS_INVALID_PARAMETER;
- }
-
- hwm = xid->id;
-
- /* Warn if it is out of range */
- if (hwm >= high_hwm) {
- DEBUG(0, ("Warning: %s range full!! (max: %lu)\n",
- hwmtype, (unsigned long)high_hwm));
- }
-
- ret = dbwrap_trans_store_uint32(idmap_alloc_db, hwmkey, hwm);
-
- return ret;
-}
-
-/**********************************
Close the alloc tdb
**********************************/
@@ -973,7 +929,6 @@ static struct idmap_alloc_methods db_alloc_methods = {
.init = idmap_tdb_alloc_init,
.allocate_id = idmap_tdb_allocate_id,
- .set_id_hwm = idmap_tdb_set_hwm,
.close_fn = idmap_tdb_alloc_close
};