-
-
Notifications
You must be signed in to change notification settings - Fork 189
Description
Is your feature request related to a problem? Please describe.
I have an OpenLDAP server that is configured for SASL authentication only. I use Kerberos as the mechanism, usually. I'd like it if the app user could use their kerberos credentials (esp. a keytab file) to log in.
Describe the solution you'd like
Include the use of the ldap_sasl_bind() from PHP:LDAP along with accompanying env variables to allow specifying: KDC server, realm, principal to authorize as, password to use or local keytab file to use.
Alternatively, perhap support the common KRB5_* environment variables.
Describe alternatives you've considered
I could mix authentication mechanisms on the LDAP server to include both SASL types and plain.
Additional context
I believe v1 supports this so maybe it would just be a matter of transferring some of that code over. I don't personally know much about PHP or I would help out.