s3:net idmap: use lp_idmap_default_backend() now that we have it.
authorMichael Adam <obnox@samba.org>
Tue, 29 Jan 2013 12:34:26 +0000 (13:34 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 5 Feb 2013 16:36:34 +0000 (17:36 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
source3/utils/net_idmap.c

index 52c0b3fecbf86b78618a270008807beb9d56615b..28def038c0daddcd3b0d59bb33928f255b00ae42 100644 (file)
@@ -134,7 +134,7 @@ static const char* net_idmap_dbfile(struct net_context *c,
        const char* dbfile = NULL;
        const char *backend = NULL;
 
-       backend = lp_parm_const_string(-1, "idmap config *", "backend", NULL);
+       backend = lp_idmap_default_backend();
        if (!backend) {
                d_printf(_("Internal error: 'idmap config * : backend' is not set!\n"));
                return NULL;