Question Code example of using LDAP from Openedge-based application from Windows?

iec

New Member
Hello,
the target is to do these tasks (Windows, ABL application, domain with Active Directory) using LDAP:
- find if an user exists in the active directory domain
- login the user using entered credentials valid for the domain (login, password)
- verify if the currently logged in user is correctly logged in to the domain

First I want to ask if nowadays in OpenEdge versions 11-12 these are actually two usable alternatives for this scenario that can do the same job:
- using functions from the windows DLL wldap32.dll
- using the CLIENT-PRINCIPAL object.

Second, can someone provide code examples please?
Lets say we have: the active directory server address, user name, user password.
Or what else do we need?

Thanks a lot,
i
 
Top