summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-01-29 13:26:11 +0100
committerMichael Adam <obnox@samba.org>2013-02-05 17:36:34 +0100
commitc37a4939026622e3751e9188a3079def89171153 (patch)
treedf9531e83fb1815fcdd50b8ff2fb2f312ddcf1ac
parent321401e7d1c812d70aa44350de0386a12d9c25f4 (diff)
downloadsamba-c37a4939026622e3751e9188a3079def89171153.tar.gz
samba-c37a4939026622e3751e9188a3079def89171153.tar.bz2
samba-c37a4939026622e3751e9188a3079def89171153.zip
s3:param: add new lp_idmap_default_backend()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/param/loadparm.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 4440d3c756..925039df76 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 dab6d34040..5bf430da4e 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.
***************************************************************************/