Skip to content

UniTime ActiveDirectory Authentication #128

Answered by tomas-muller
shaftain asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, if the userDnStr is only sAMAccountName=MyUsername, the search base either has to be the rest (CN=MyUsername,OU=MyDepartment,OU=MyEmployeeType,OU=Active Employees,OU=Entire Org,DC=org,DC=net) or youw would need to use a search filter with (sAMAccountName={0}) instead of the user DN matching.

I did set up LDAP authentication against an Active Directory for an institution in Canada once, and we had to use a search filter with (sAMAccountName={0}) instead of the user DN matching (they also had different trees for faculty, students, and for staff). The spring security configuration was changed as follows (the ldapAuthProvider bean):

<beans:bean id="ldapAuthProvider" class="org.unitime.tim…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@shaftain
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by shaftain
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants