LDAP authentication to AD broken
- Status
- Closed
- Subject
- LDAP authentication to AD broken
- Version
- 19.x
- Category
- Error
- Feature
- External Authentication (LDAP, AD, PAM, CAS, etc)
- Resolution status
- Fixed or Solved
- Submitted by
- Wiebe
- Volunteered to solve
- rjsmelo
- Keep informed
- Marc Laporte
- Lastmod by
- Wiebe
- Rating
- Description
With the switch from Pear Net_LDAP2 to Zend\Ldap, the LDAP authentication to the AD is broken in Tiki 19.1.
With exactly the same configuration as with Tiki 18.3, I get this error message in the Action Log:Copy to clipboardError: 0x31 (Invalid credentials; 80090308: LdapErr: DSID-0C090400, comment: AcceptSecurityContext error, data 52e, v1db1): sAMAccountName=wiebe.oudshoorn,cn=users,dc=moba-bv,dc=local at line 262 in D
I have done some research with WireShark to inspect the packages from and to the LDAP server, when someone logs in to the wiki:It's very clear where this is going wrong. It's trying to do a bind request with only the username instead of username at domain.url (row 355 in 18.3 screenshot vs row 239 in 19.1 screenshot ).
Although LDAP bind type is set to 'AD', so according to lib\auth\ldap.php row 184 it should add the correct information to the bind request instead of performing a 'plain' bind.- Importance
- 8
- Easy to solve?
- 5
- Priority
- 40
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 7050
- Created
- Monday 25 March, 2019 15:20:30 UTC
by Wiebe - LastModif
- Monday 19 August, 2019 11:32:11 UTC