I have a Windows app that accesses a Microsoft SQL database. Currently the app uses Windows authentication to access the SQL database and finds each user's application privileges from a table in the database based on the Windows user name. Doing it this way means I do not have to prompt for a separate username and password for my app. Everything works fine.
I now need to implement the application in a larger organisation which has multiple Windows domains but a single LDAP directory. I want to use LDAP to identify the user rather than Windows/AD. I can sort out the SQL side (by using SQL logins) but I am new to LDAP.
I have written a VB.NET test app and figured out how to do LDAP queries. However, how do I find out the details of the current user using LDAP instead of Windows? Is there even a concept of 'currently authenticated user' in LDAP? I have a feeling I'm missing something but I don't know what!
Thanks in advance,