diff options
author | Günther Deschner <gd@samba.org> | 2004-10-22 16:19:31 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:53:01 -0500 |
commit | ff5d4a7b4ddb2281d0f3d720428caf074ba14f32 (patch) | |
tree | 0e6755954fb951365390232ad9a7083e8eab14c9 /source3/sam | |
parent | 7eec693863ec2aa95bd94469f9319ac507d28ce4 (diff) | |
download | samba-ff5d4a7b4ddb2281d0f3d720428caf074ba14f32.tar.gz samba-ff5d4a7b4ddb2281d0f3d720428caf074ba14f32.tar.bz2 samba-ff5d4a7b4ddb2281d0f3d720428caf074ba14f32.zip |
r3137: Do not simply ignore failing idmap-module init for remotemaps.
(in preparation of adding idmap_rid)
Guenther
(This used to be commit e7691f4862da141f530a8e8b1364b9c02e8dc732)
Diffstat (limited to 'source3/sam')
-rw-r--r-- | source3/sam/idmap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/sam/idmap.c b/source3/sam/idmap.c index 4de37f0e49..3abfb0ae9f 100644 --- a/source3/sam/idmap.c +++ b/source3/sam/idmap.c @@ -134,7 +134,10 @@ BOOL idmap_init(const char **remote_backend) if((remote_map = get_methods(rem_backend, False)) || (NT_STATUS_IS_OK(smb_probe_module("idmap", rem_backend)) && (remote_map = get_methods(rem_backend, False)))) { - remote_map->init(params); + if (!NT_STATUS_IS_OK(remote_map->init(params))) { + DEBUG(0, ("idmap_init: failed to initialize remote backend!\n")); + return False; + } } else { DEBUG(0, ("idmap_init: could not load remote backend '%s'\n", rem_backend)); SAFE_FREE(rem_backend); |