Skip to content

Commit

Permalink
Simplify policy since failed edits will fail the section
Browse files Browse the repository at this point in the history
  • Loading branch information
ndptech committed Dec 15, 2023
1 parent d3fbada commit 165d6db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 1 addition & 5 deletions raddb/sites-available/ldap_sync
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,7 @@ server ldap_sync {
# string csn
#
# &csn := %ldap("ldap:///%{LDAP-Sync.Directory-Root-DN}?contextCSN?base")
# if (&csn) {
# &reply.LDAP-Sync.Cookie := "rid=000,csn=%{csn}"
# } else {
# fail
# }
# &reply.LDAP-Sync.Cookie := "rid=000,csn=%{csn}"
# }
}

Expand Down
8 changes: 3 additions & 5 deletions src/tests/ldap_sync/rfc4533/config/radiusd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,10 @@ server test {
}

load Cookie {
&control.Tmp-String-0 := %ldap("ldap:///%{LDAP-Sync.Directory-Root-DN}?contextCSN?base")
string csn

if (&control.Tmp-String-0 != "") {
&reply.LDAP-Sync.Cookie := "rid=000,csn=%{control.Tmp-String-0}"
updated
}
&csn := %ldap("ldap:///%{LDAP-Sync.Directory-Root-DN}?contextCSN?base")
&reply.LDAP-Sync.Cookie := "rid=000,csn=%{csn}"
}

store Cookie {
Expand Down

0 comments on commit 165d6db

Please sign in to comment.