[progress Communities] [progress Openedge Abl] Forum Post: Re: Binding To Active Directory

Status
Not open for further replies.
T

tbergman

Guest
It's much simpler if all you need to do is find out if a user name and password are valid. Here's some sample code. /* This needs to be added to assemblies file */ USING System.DirectoryServices.AccountManagement.*. DEFINE VARIABLE objContext AS PrincipalContext. objContext = NEW PrincipalContext(ContextType:Domain,"YourDomain"). MESSAGE objContext:ValidateCredentials("TestUser","TestPasssword1") VIEW-AS ALERT-BOX.

Continue reading...
 
Status
Not open for further replies.
Top