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.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.c')
-rw-r--r-- | source3/sam/idmap.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/sam/idmap.c b/source3/sam/idmap.c index 8b5e23de25..771f4169a2 100644 --- a/source3/sam/idmap.c +++ b/source3/sam/idmap.c @@ -67,15 +67,18 @@ BOOL idmap_init(const char *remote_backend) { if (!local_map) { idmap_reg_tdb(&local_map); - local_map->init(); + if (NT_STATUS_IS_ERR(local_map->init())) { + DEBUG(0, ("idmap_init: could not load or create local backend!\n")); + return False; + } } if (!remote_map && remote_backend && *remote_backend != 0) { - DEBUG(3, ("load_methods: using '%s' as remote backend\n", remote_backend)); + DEBUG(3, ("idmap_init: using '%s' as remote backend\n", remote_backend)); remote_map = get_methods(remote_backend); if (!remote_map) { - DEBUG(0, ("load_methods: could not load remote backend '%s'\n", remote_backend)); + DEBUG(0, ("idmap_init: could not load remote backend '%s'\n", remote_backend)); return False; } remote_map->init(); |