we have authetication as file system in our application server. Now i am trying to implement AD support into existing authentication within our application server, we need to add multiple AD support,
scenario

so i added an application to configure the multiple LDAP, now i found that login to server will be based on DN, so i expect that user should know the base DN,
but how people will know base DN.
i can provide more detail if needed.
Since you’re dealing with AD, you can simply bind with the sAMAccountName or UPN. Alternatively, you can use a hard coded account to search the user with (e.g.
(&(objectCategory=user)(objectClass=person)(sAMAccountName=%s))) and get the DN from there.With both options, the user don’t have to type in (or even know) their DN.