summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-01-28 16:35:50 +0100
committerMichael Adam <obnox@samba.org>2013-02-05 17:36:32 +0100
commit58b302d76a83880744d637f95b4aa7f80c040ea8 (patch)
tree8135a00cb362508ffbcaa869f245475ff5a989fa /source3
parent1342bdd55c9759bc23f93298b34ed8d587816e6b (diff)
downloadsamba-58b302d76a83880744d637f95b4aa7f80c040ea8.tar.gz
samba-58b302d76a83880744d637f95b4aa7f80c040ea8.tar.bz2
samba-58b302d76a83880744d637f95b4aa7f80c040ea8.zip
s3:param: add utility function lp_idmap_default_range()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
Diffstat (limited to 'source3')
-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 454ffa5721..109827181f 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1084,6 +1084,7 @@ const char *lp_idmap_backend(void);
int lp_idmap_cache_time(void);
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);
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 f581c8e1b6..adadeec0aa 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -2992,6 +2992,11 @@ done:
}
+bool lp_idmap_default_range(uint32_t *low, uint32_t *high)
+{
+ return lp_idmap_range("*", low, high);
+}
+
/***************************************************************************
Handle the DEBUG level list.
***************************************************************************/