i want to get list of users in Active Directory and put them inside drop down list
list of the users that exist into my domain
Hi Omar,
Is it the only requirement in your use case, that you want to list the users in a dropdown? Or you want to achieve something further using the selected item from the dropdown?
Are you planning to use any further operations on your Active Directory?
Do you currently have anything pre-setup on your environment to access the Active Directory? Authentication etc.?
A solution to your query can differ from what you want to achieve, and what you currently have in place.
i want to let user login by active directory credentails , and only list all AD users in drop down
i already configure authentication to use LDAP
how to login by my windows credentails while i configure LDAP correctly !and get list of users from the LDAP
You can configure the built-in Users authentication to use Active Directory directly, instead of using LDAP.
But in order to access the AD users list you will need to use a completely separate component like Active Directory Library or the Active Directory CORE (Simplified) component built on top of it.
Hope this helps!
Can i used it with providing the USER name and password since i am in the domain and already define the LDAP settings ???
As far as I can tell you will have to provide those credentials directly to the library, it doesn't have access to the ones used by the logged in user.
But since this library runs Server-Side, you can safely store a set of credentials that allows read access to the users list in, for instance, site properties.
could you give me example on the path of the domain : Path of the domain + DN in the AD
is this : ldaps://domain:port/OU=value,DC=value,DC=value,DC=value
users return empty !