]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use local variables, and not "update"
authorAlan T. DeKok <aland@freeradius.org>
Tue, 26 Dec 2023 15:31:26 +0000 (10:31 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 26 Dec 2023 15:31:26 +0000 (10:31 -0500)
doc/antora/modules/raddb/pages/mods-available/ldap.adoc
raddb/mods-available/ldap

index db8502314fe10d9377cbdc20cc8678fccecd0163..e8a6d5fc79c7a42a94ec708adb5fee8a3086163f 100644 (file)
@@ -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
index 82dfbbcdd14d5d8c1ab2a0b20cade67600b1ded9..912452f8032d12d41f24cf7ffc0fda19c6c709ad 100644 (file)
@@ -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