From c37a4939026622e3751e9188a3079def89171153 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 29 Jan 2013 13:26:11 +0100 Subject: [PATCH] s3:param: add new lp_idmap_default_backend() Signed-off-by: Michael Adam Reviewed-by: Christian Ambach --- source3/include/proto.h | 1 + source3/param/loadparm.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/source3/include/proto.h b/source3/include/proto.h index 4440d3c756c..925039df760 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1085,6 +1085,7 @@ int lp_idmap_negative_cache_time(void); bool lp_idmap_range(const char *domain_name, uint32_t *low, uint32_t *high); bool lp_idmap_default_range(uint32_t *low, uint32_t *high); const char *lp_idmap_backend(const char *domain_name); +const char *lp_idmap_default_backend (void); int lp_keepalive(void); bool lp_passdb_expand_explicit(void); char *lp_ldap_suffix(TALLOC_CTX *ctx); diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index dab6d340404..5bf430da4e5 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -2982,6 +2982,11 @@ done: return backend; } +const char *lp_idmap_default_backend(void) +{ + return lp_idmap_backend("*"); +} + /*************************************************************************** Handle the DEBUG level list. ***************************************************************************/ -- 2.11.4.GIT