KMoody
Member
Is it possible to query LDAP through an OpenEdge program?
I found code like this:
However, running it gave me error 12886: "Could not find class or interface PrincipalContext."
Why doesn't OpenEdge recognize this class? Do I need to add an assembly to the assemblies file, or is there some other workaround?
I found code like this:
Code:
USING System.DirectoryServices.AccountManagement.*.
DEFINE VARIABLE objContext AS CLASS PrincipalContext.
objContext = NEW PrincipalContext(ContextType:Domain,"YourDomain").
MESSAGE objContext:ValidateCredentials("TestUser","TestPasssword1") VIEW-AS ALERT-BOX.
However, running it gave me error 12886: "Could not find class or interface PrincipalContext."
Why doesn't OpenEdge recognize this class? Do I need to add an assembly to the assemblies file, or is there some other workaround?