diff options
author | Gerald Carter <jerry@samba.org> | 2003-07-22 15:08:34 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-07-22 15:08:34 +0000 |
commit | c51ffbbdaaf43e24114becbbff976e2254c199ea (patch) | |
tree | 38fd8b9648a12fd07f8d88fcc69e1a1f47e9a3ec /source3/passdb | |
parent | d22a90c64fb0617d08af63d24bba8a382ce6465b (diff) | |
download | samba-c51ffbbdaaf43e24114becbbff976e2254c199ea.tar.gz samba-c51ffbbdaaf43e24114becbbff976e2254c199ea.tar.bz2 samba-c51ffbbdaaf43e24114becbbff976e2254c199ea.zip |
removing unused function
(This used to be commit b8394a107d3448434f1a34076eaab8e6dd9a8a9d)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_tdb.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c index 051a699357..7c2156455a 100644 --- a/source3/passdb/pdb_tdb.c +++ b/source3/passdb/pdb_tdb.c @@ -437,49 +437,6 @@ done: return (ret); } -#if 0 -/*************************************************************************** - Allocates a new RID and returns it to the caller as a domain sid - - NOTE: Use carefully, do not waste RIDs they are a limited resource! - - SSS - ***************************************************************************/ - -static NTSTATUS tdbsam_get_next_sid (struct pdb_methods *my_methods, DOM_SID *sid) -{ - NTSTATUS ret = NT_STATUS_UNSUCCESSFUL; - struct tdbsam_privates *tdb_state = (struct tdbsam_privates *)my_methods->private_data; - TDB_CONTEXT *pwd_tdb; - uint32 rid; - - if (sid == NULL) { - return NT_STATUS_INVALID_PARAMETER; - } - - pwd_tdb = tdb_open_log(tdb_state->tdbsam_location, 0, TDB_DEFAULT, O_RDWR | O_CREAT, 0600); - if (!pwd_tdb) - { - DEBUG(0, ("tdbsam_get_next_sid: Unable to open TDB passwd (%s)!\n", tdb_state->tdbsam_location)); - return NT_STATUS_UNSUCCESSFUL; - } - - rid = BASE_RID; - if (tdb_change_uint32_atomic(pwd_tdb, "RID_COUNTER", &rid, 1)) { - - sid_copy(sid, get_global_sam_sid()); - if (!sid_append_rid(sid, rid)) { - goto done; - } - - ret = NT_STATUS_OK; - } - -done: - tdb_close (pwd_tdb); - return ret; -} -#endif - /*************************************************************************** Modifies an existing SAM_ACCOUNT ****************************************************************************/ |