]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't use update, and do use local variables
authorAlan T. DeKok <aland@freeradius.org>
Sun, 24 Sep 2023 12:04:51 +0000 (08:04 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 24 Sep 2023 12:04:51 +0000 (08:04 -0400)
raddb/sites-available/ldap_sync

index 0d5ec35708467a04789cbf14d99e274243248e5d..aaae5fad8edf05a2e9e65109734727158a286c84 100644 (file)
@@ -366,11 +366,11 @@ server ldap_sync {
                #  server settings as ldap_sync.
                #
 #              if (!&reply.LDAP-Sync.Cookie) {
-#                      update control {
-#                              &Tmp-String-0 := "%{ldap:ldap:///%{LDAP-Sync.Directory-Root-DN}?contextCSN?base}"
-#                      }
-#                      if (&control.Tmp-String-0 != "") {
-#                              &reply.LDAP-Sync.Cookie := "rid=000,csn=%{control.Tmp-String-0}"
+#                      string csn
+#
+#                      &csn := "%{ldap:ldap:///%{LDAP-Sync.Directory-Root-DN}?contextCSN?base}"
+#                      if (&csn) {
+#                              &reply.LDAP-Sync.Cookie := "rid=000,csn=%{csn}"
 #                              updated
 #                      }
 #              }