diff options
author | Günther Deschner <gd@samba.org> | 2004-10-22 16:19:31 +0000 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2004-10-22 16:19:31 +0000 |
commit | 31e1958e7ff719de0270b2f1a4ee73da990d6e00 (patch) | |
tree | c059e67cc8e6a3a7013f86b0e3b9d18807097a5f /source/sam | |
parent | 2175dda7184045dc2fe9ea46ac27763287b7a603 (diff) | |
download | samba-31e1958e7ff719de0270b2f1a4ee73da990d6e00.tar.gz samba-31e1958e7ff719de0270b2f1a4ee73da990d6e00.tar.xz samba-31e1958e7ff719de0270b2f1a4ee73da990d6e00.zip |
r3137: Do not simply ignore failing idmap-module init for remotemaps.
(in preparation of adding idmap_rid)
Guenther
Diffstat (limited to 'source/sam')
-rw-r--r-- | source/sam/idmap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/sam/idmap.c b/source/sam/idmap.c index 4de37f0e499..3abfb0ae9f1 100644 --- a/source/sam/idmap.c +++ b/source/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); |