Configuring EZproxy to use LDAP
From WCN
A typical NRE LDAP user.txt entry is:
::LDAP BindUser ezproxy@yourlib.org BindPassword –Obscure 2mkajadsl2 URL ldap://ldap.yourlib.org/dc=yourlib,dc=org?sub?sAMAccountName?(objectClass=person) IfUnauthenticated; Stop
Set session:uid = login:user Set session:forename = auth:givenName Set session:surname = auth:sn Set session:middleName = auth:initials Set session:emailAddress = auth:email
# Set Summit Group Number and WorldCat Institution Number Set session:groupNumber = XXXXX Set session:instNumber = XXXXX
If auth:registered =~ "/^([file://\\d\\d\\d\\d)(\\d\\d)(\\d\\d)\ \\d\\d\\d\\d)(\\d\\d)(\\d\\d)/]" {
Set session:joinDate = Join("-", re:1, re:2, re:3)
}
# Assume circulation blocked by default Set session:bannedInRemoteCirculation = "Y"
# then unblock if the user has an eduPersonAffiliation other than just
# alum (namely, there is at least one affiliation [Count] and
# all of the values of the affiliation are not the value "alum" [All]
If Count(auth:eduPersonAffiliation) >= 1 && ! All(auth:eduPersonAffiliation, "alum"){
Set session:bannedInRemoteCirculation = "N"
}
If All(auth:eduPersonAffiliation, "student"){
Set session:category = 19
}
/LDAP
