Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

LDAP Autentification adapter missing handling of expired password/account/... #6650

Closed
ThaDafinser opened this issue Sep 9, 2014 · 3 comments

Comments

@ThaDafinser
Copy link
Contributor

When a user autentificate with the right credentials, but the account or password expired, Zend\Ldap still reports Invalid credentials because it does not care about the error code.

References:
https://github.com/zendframework/zf2/blob/master/library/Zend/Authentication/Adapter/Ldap.php#L299-L302
http://php.net/manual/en/function.ldap-bind.php#103034
http://www-01.ibm.com/support/docview.wss?uid=swg21290631

@ThaDafinser
Copy link
Contributor Author

Just a diff PR for showing how i workaround it currently:
https://github.com/zendframework/zf2/pull/6651/files

Note: The solution from php.net didnt worked for me http://php.net/manual/en/function.ldap-bind.php#103034

@ThaDafinser
Copy link
Contributor Author

Note why this was maybe not reported earlier:
Most time you use the same user from the computer as for the service/LDAP logon, so the expired checks are already done, when authentification is done on the computer.

@GeeH
Copy link

GeeH commented Jun 27, 2016

This issue has been closed as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html

@GeeH GeeH closed this as completed Jun 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants