From 58b302d76a83880744d637f95b4aa7f80c040ea8 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 28 Jan 2013 16:35:50 +0100 Subject: s3:param: add utility function lp_idmap_default_range() 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 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. ***************************************************************************/ -- cgit