From: Nick Porter Date: Fri, 22 Dec 2023 10:13:23 +0000 (+0000) Subject: LDAP sync cookies contain all contextCSN values separated by ';' X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1308f5c0856cc0f56cbd294a49433cc1d343df8;p=thirdparty%2Ffreeradius-server.git LDAP sync cookies contain all contextCSN values separated by ';' --- diff --git a/raddb/sites-available/ldap_sync b/raddb/sites-available/ldap_sync index 3c4522425bd..367db4ff4c8 100644 --- a/raddb/sites-available/ldap_sync +++ b/raddb/sites-available/ldap_sync @@ -370,7 +370,7 @@ server ldap_sync { # if (!&reply.LDAP-Sync.Cookie) { # string csn # -# &csn := %ldap("ldap:///%{LDAP-Sync.Directory-Root-DN}?contextCSN?base") +# &csn := %concat(%ldap("ldap:///%{LDAP-Sync.Directory-Root-DN}?contextCSN?base"), ';') # &reply.LDAP-Sync.Cookie := "rid=000,csn=%{csn}" # } } diff --git a/src/tests/ldap_sync/rfc4533/config/radiusd.conf b/src/tests/ldap_sync/rfc4533/config/radiusd.conf index 7f0b5ce3644..2815a0325c6 100644 --- a/src/tests/ldap_sync/rfc4533/config/radiusd.conf +++ b/src/tests/ldap_sync/rfc4533/config/radiusd.conf @@ -183,7 +183,7 @@ server test { load Cookie { string csn - &csn := %ldap("ldap:///%{LDAP-Sync.Directory-Root-DN}?contextCSN?base") + &csn := %concat(%ldap("ldap:///%{LDAP-Sync.Directory-Root-DN}?contextCSN?base"), ';') &reply.LDAP-Sync.Cookie := "rid=000,csn=%{csn}" }