From: Alan T. DeKok Date: Tue, 26 Dec 2023 15:31:26 +0000 (-0500) Subject: use local variables, and not "update" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3aa4e8f8490d3dd6f10bf09ad21ebbc59436deb8;p=thirdparty%2Ffreeradius-server.git use local variables, and not "update" --- diff --git a/doc/antora/modules/raddb/pages/mods-available/ldap.adoc b/doc/antora/modules/raddb/pages/mods-available/ldap.adoc index db8502314fe..e8a6d5fc79c 100644 --- a/doc/antora/modules/raddb/pages/mods-available/ldap.adoc +++ b/doc/antora/modules/raddb/pages/mods-available/ldap.adoc @@ -754,12 +754,8 @@ Escape a string for use in an LDAP filter or DN. [source,unlang] ---- -update control { - &Tmp-String-0 := "ldap:///ou=profiles,dc=example,dc=com??sub?(objectClass=radiusprofile)" -} -update reply { - &Reply-Message := "The LDAP url is %ldap_escape(%{control.Tmp-String-0}}" -} +&my-string := "ldap:///ou=profiles,dc=example,dc=com??sub?(objectClass=radiusprofile)" +&reply.Reply-Message := "The LDAP url is %ldap_escape(%{my-string}}" ---- .Output @@ -778,12 +774,8 @@ Unescape a string for use in an LDAP filter or DN. [source,unlang] ---- -update control { - &Tmp-String-0 := "ldap:///ou=profiles,dc=example,dc=com??sub?\28objectClass=radiusprofile\29" -} -update reply { - &Reply-Message := "The LDAP url is %ldap_unescape(%{control.Tmp-String-0})" -} +&my-string := "ldap:///ou=profiles,dc=example,dc=com??sub?\28objectClass=radiusprofile\29" +&reply.Reply-Message := "The LDAP url is %ldap_unescape(%{my-string})" ---- .Output diff --git a/raddb/mods-available/ldap b/raddb/mods-available/ldap index 82dfbbcdd14..912452f8032 100644 --- a/raddb/mods-available/ldap +++ b/raddb/mods-available/ldap @@ -894,12 +894,8 @@ ldap { # # [source,unlang] # ---- -# update control { -# &Tmp-String-0 := "ldap:///ou=profiles,dc=example,dc=com??sub?(objectClass=radiusprofile)" -# } -# update reply { -# &Reply-Message := "The LDAP url is %ldap_escape(%{control.Tmp-String-0}}" -# } +# &my-string := "ldap:///ou=profiles,dc=example,dc=com??sub?(objectClass=radiusprofile)" +# &reply.Reply-Message := "The LDAP url is %ldap_escape(%{my-string}}" # ---- # # .Output @@ -918,12 +914,8 @@ ldap { # # [source,unlang] # ---- -# update control { -# &Tmp-String-0 := "ldap:///ou=profiles,dc=example,dc=com??sub?\28objectClass=radiusprofile\29" -# } -# update reply { -# &Reply-Message := "The LDAP url is %ldap_unescape(%{control.Tmp-String-0})" -# } +# &my-string := "ldap:///ou=profiles,dc=example,dc=com??sub?\28objectClass=radiusprofile\29" +# &reply.Reply-Message := "The LDAP url is %ldap_unescape(%{my-string})" # ---- # # .Output