From: Michael Adam Date: Mon, 28 Jan 2013 15:35:50 +0000 (+0100) Subject: s3:param: add utility function lp_idmap_default_range() X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=58b302d76a83880744d637f95b4aa7f80c040ea8;p=metze%2Fsamba%2Fwip.git s3:param: add utility function lp_idmap_default_range() Signed-off-by: Michael Adam Reviewed-by: Christian Ambach --- diff --git a/source3/include/proto.h b/source3/include/proto.h index 454ffa57217c..109827181f58 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 f581c8e1b699..adadeec0aa8c 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. ***************************************************************************/