diff options
author | Simo Sorce <idra@samba.org> | 2003-04-19 15:29:39 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2003-04-19 15:29:39 +0000 |
commit | 84728c340001e4355f8c0cd668eb157090722c80 (patch) | |
tree | 20830a00a1cab00105c9d959c8e859400e983cb9 /source3/sam/idmap_tdb.c | |
parent | ee88b8214e8ac65a0e60aca244486db78c950ece (diff) | |
download | samba-84728c340001e4355f8c0cd668eb157090722c80.tar.gz samba-84728c340001e4355f8c0cd668eb157090722c80.tar.bz2 samba-84728c340001e4355f8c0cd668eb157090722c80.zip |
fixes
fix debug, add "idmap" string to the list of classes
fix idmap, check init failures, and enhance debugging
fix idmap_tdb, _do_ init uid and gid low,high states (too bad I missed that
before)
fix smbd/uid.c, use gid_t for gids and uid_t for uids
(This used to be commit bc95de4ebb014080bc70173e7df94c672cea8df6)
Diffstat (limited to 'source3/sam/idmap_tdb.c')
-rw-r--r-- | source3/sam/idmap_tdb.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/source3/sam/idmap_tdb.c b/source3/sam/idmap_tdb.c index c494cf595f..a43f5824a1 100644 --- a/source3/sam/idmap_tdb.c +++ b/source3/sam/idmap_tdb.c @@ -60,7 +60,7 @@ static NTSTATUS db_allocate_id(unid_t *id, int id_type) } if (hwm > idmap_state.uid_high) { - DEBUG(0, ("idmap Fatal Error: UID range full!!\n")); + DEBUG(0, ("idmap Fatal Error: UID range full!! (max: %u)\n", idmap_state.uid_high)); return NT_STATUS_UNSUCCESSFUL; } @@ -75,7 +75,7 @@ static NTSTATUS db_allocate_id(unid_t *id, int id_type) } if (hwm > idmap_state.gid_high) { - DEBUG(0, ("idmap Fatal Error: GID range full!!\n")); + DEBUG(0, ("idmap Fatal Error: GID range full!! (max: %u)\n", idmap_state.gid_high)); return NT_STATUS_UNSUCCESSFUL; } @@ -284,6 +284,16 @@ static NTSTATUS db_idmap_init(void) } } + if (!lp_idmap_uid(&idmap_state.uid_low, &idmap_state.uid_high)) { + DEBUG(0, ("idmap uid range missing or invalid\n")); + DEBUGADD(0, ("idmap will be unable to map foreign SIDs\n")); + } + + if (!lp_idmap_gid(&idmap_state.gid_low, &idmap_state.gid_high)) { + DEBUG(0, ("idmap gid range missing or invalid\n")); + DEBUGADD(0, ("idmap will be unable to map foreign SIDs\n")); + } + return NT_STATUS_OK; } |