José Luis Salinas
José Luis Salinas
Hi! I handled the exception `Adldap\Auth\BindException` in the last version (and returned null). Can you try to update the library?
Can you show us the value of `config('ldap_auth.identifiers.ldap.user_format')`? It should be `'uid=%s,dc=example,dc=com'`. Then, the `%s` is replaced by the username.
Here you have the old instructions, no composer package, for Laravel 6: .
Hi @Nuvelle , did you solve the 'Invalid DN syntax' issue? What was the problem?
Hi @stoicadl , you should not touch LoginController. Have you followed the instructions? Have you been able to login inside Tinker?
Hi @cre0n ! If you are able to connect to your LDAP server using Ldapadmin, that means that you have an admin username and password in your LDAP server... isn't...
Are you sure that you are using the proper field names in `.env`? I mean `LDAP_SCHEMA`, `LDAP_USER_SEARCH_ATTRIBUTE`, `LDAP_USER_BIND_ATTRIBUTE`, etc.
You have to convert whatever `ldap_search()` returns into an instance of `LdapUser` and return that.
I’m really sorry, but I don’t have access to an ActiveDirectory to test the package, only OpenLDAP. In theory, the underlying library (Adldap2) should do the work. To debug, try...
Also, in the `.env` file, try providing the name of the LDAP attributes in lowercase.