summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-01-28 14:29:21 +0100
committerMichael Adam <obnox@samba.org>2013-02-05 17:36:33 +0100
commitcef05fbe8dc210ba257d2d018878d0b351009c02 (patch)
tree84559726a523ff8a558a453b661f0ad5b2a7d80b
parent600ba80246aaa6cb9499a49f48e92a2657fdc918 (diff)
downloadsamba-cef05fbe8dc210ba257d2d018878d0b351009c02.tar.gz
samba-cef05fbe8dc210ba257d2d018878d0b351009c02.tar.bz2
samba-cef05fbe8dc210ba257d2d018878d0b351009c02.zip
s3:net idmap: remove call to lp_idmap_backend() - this is useless.
The variable behind lp_idmap_backend() is never set. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
-rw-r--r--source3/utils/net_idmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_idmap.c b/source3/utils/net_idmap.c
index 1190627ff7..52c0b3fecb 100644
--- a/source3/utils/net_idmap.c
+++ b/source3/utils/net_idmap.c
@@ -134,10 +134,10 @@ static const char* net_idmap_dbfile(struct net_context *c,
const char* dbfile = NULL;
const char *backend = NULL;
- /* prefer idmap config * : backend over idmap backend parameter */
backend = lp_parm_const_string(-1, "idmap config *", "backend", NULL);
if (!backend) {
- backend = lp_idmap_backend();
+ d_printf(_("Internal error: 'idmap config * : backend' is not set!\n"));
+ return NULL;
}
if (c->opt_db != NULL) {