From: Ralph Boehme Date: Mon, 4 Nov 2019 18:27:41 +0000 (+0100) Subject: smbdotconf: mark "ldap idmap suffix" with constant="1" X-Git-Tag: ldb-2.1.0~517 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b48d30e0e12a2ddf52429b69599850c670e68160;p=thirdparty%2Fsamba.git smbdotconf: mark "ldap idmap suffix" with constant="1" Due to the use of append_ldap_suffix() where Globals.ldap_suffix is returned directly, variable substitution isn't supported anyway, so we can just mark this const. Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- diff --git a/docs-xml/smbdotconf/ldap/ldapidmapsuffix.xml b/docs-xml/smbdotconf/ldap/ldapidmapsuffix.xml index 1fe7e8ae388..2690af83779 100644 --- a/docs-xml/smbdotconf/ldap/ldapidmapsuffix.xml +++ b/docs-xml/smbdotconf/ldap/ldapidmapsuffix.xml @@ -2,6 +2,7 @@ context="G" type="string" function="_ldap_idmap_suffix" + constant="1" xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 984c048001f..0c212ab5fe5 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -2620,7 +2620,7 @@ const char *lp_ldap_idmap_suffix(TALLOC_CTX *ctx) if (Globals._ldap_idmap_suffix[0]) return append_ldap_suffix(ctx, Globals._ldap_idmap_suffix); - return lp_string(ctx, Globals.ldap_suffix); + return talloc_strdup(ctx, Globals.ldap_suffix); } /**