ldap-auth
ldap-auth copied to clipboard
Just check if username exists
I want to create a simple crud for users and store them in a database, but I have to ckeck if the user exist in a LDAP server before adding it to the table. So, in case the username doesn't exists or is wrong, I can show an error message.
Obviously, I just have the username of the person I want to add. In adLdap I used to use the function "info" for bring some basic information about a user (no password needed) and this way I know if the account exists or not.
How can I achieve this with this driver?
(I have installed the driver and works well, I have made a couple of tests with username/passwords that I know)