From cef05fbe8dc210ba257d2d018878d0b351009c02 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 28 Jan 2013 14:29:21 +0100 Subject: 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 Reviewed-by: Christian Ambach --- source3/utils/net_idmap.c | 4 ++-- 1 file 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) { -- cgit