s3:net idmap: remove call to lp_idmap_backend() - this is useless.
authorMichael Adam <obnox@samba.org>
Mon, 28 Jan 2013 13:29:21 +0000 (14:29 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 5 Feb 2013 16:36:33 +0000 (17:36 +0100)
The variable behind lp_idmap_backend() is never set.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
source3/utils/net_idmap.c

index 1190627ff7f4f002c140895e1eaf822f7223a01c..52c0b3fecbf86b78618a270008807beb9d56615b 100644 (file)
@@ -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) {