Closed getsueineko closed 2 months ago
@Chocobozzz The problem is in the username format. If I use a john_smith, then everything is fine, but if we use a john.smith, then there will be an error. I think it is worth fixing in the next version of plugin.
Can you check if it works with the john.smith
format using ldapsearch
? (https://tylersguides.com/guides/search-active-directory-ldapsearch/)
Can you check if it works with the
john.smith
format usingldapsearch
? (https://tylersguides.com/guides/search-active-directory-ldapsearch/)
I checked john_smith and john.smith and got property records from AD in both cases
Like:
ldapsearch -H ldap://dc.example.local -x -W -D "john.smith@example.local" -b "DC=example,DC=local" "(sAMAccountName=john.smith)"
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <DC=example,DC=local> with scope subtree
# filter: (sAMAccountName=john.smith)
# requesting: ALL
#
# john.smith, IT, example.local
dn: CN=john.smith,OU=IT,DC=example,DC=local
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
cn: john.smith
sn: john.smith
...
etc
Do john.smith
and john_smith
belong to the same groups?
Note: your search filter should be (|(mail={{username}})(sAMAccountName={{username}}))
instead of (|(mail={{mail}})(sAMAccountName={{username}}))
Note: your search filter should be
(|(mail={{username}})(sAMAccountName={{username}}))
instead of(|(mail={{mail}})(sAMAccountName={{username}}))
Yes, you're right. It works like a charm. I was able to log in as john.smith. Thank you!
Describe the current behavior
I'm trying to set up the LDAP plugin.
There is no documentation with examples, I couldn't find any examples online either. I have MS AD, domain example.local
Question in advance - should the registration permission setting be enabled in this case?
I got the error in the logs:
Steps to reproduce
After looking at https://github.com/Chocobozzz/PeerTube/issues/2773 I made the following settings:
Describe the expected behavior
I must enter with an AD user
Additional information