summaryrefslogtreecommitdiff
path: root/source3/passdb/pdb_tdb.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2003-04-30 16:35:17 +0000
committerSimo Sorce <idra@samba.org>2003-04-30 16:35:17 +0000
commit28cef867c761ac87101e3049628cfe2a073e65f2 (patch)
tree564aab00d2d9f1ea294d446441f07092c7116686 /source3/passdb/pdb_tdb.c
parent211939f3ab6310c09eb34c67f4097453d862ac5c (diff)
downloadsamba-28cef867c761ac87101e3049628cfe2a073e65f2.tar.gz
samba-28cef867c761ac87101e3049628cfe2a073e65f2.tar.bz2
samba-28cef867c761ac87101e3049628cfe2a073e65f2.zip
correctly initiazlize idmap tdb when creationg new
few fixes to *id_to_*id functions, we don't set the mapping for algoritmic RIDs, they are resolved in the classic way eliminate getpw* calls from tdbsam (This used to be commit 6a7689cf74cd4d5f29e0b12f4bf8ac3051d49157)
Diffstat (limited to 'source3/passdb/pdb_tdb.c')
-rw-r--r--source3/passdb/pdb_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c
index 2715c3e3ca..3ed5d2d4d6 100644
--- a/source3/passdb/pdb_tdb.c
+++ b/source3/passdb/pdb_tdb.c
@@ -754,7 +754,7 @@ static BOOL tdb_update_sam(struct pdb_methods *my_methods, SAM_ACCOUNT* newpwd,
if (!(user_rid = pdb_get_user_rid(newpwd))) {
if ((flag & TDB_INSERT) && tdb_state->permit_non_unix_accounts) {
uint32 lowrid, highrid;
- if (!pdb_get_free_rid_range(&lowrid, &highrid)) {
+ if (!idmap_get_free_rid_range(&lowrid, &highrid)) {
/* should never happen */
DEBUG(0, ("tdbsam: something messed up, no high/low rids but nua enabled ?!\n"));
ret = False;