|
|
Clarion Language and Runtime Library
Started by bgreerlandmark at 06-26-2008 2:05 PM. Topic has 1 replies.
 
 
|
|
Sort Posts:
|
|
|
|
06-26-2008, 2:05 PM
|
bgreerlandmark
Joined on 06-27-2008
Posts 1
|
active directory authentication
|
|
|
|
|
Does someone have some sample code that they would share on how I can have my application authenticate against active directory?
|
|
|
|
|
Report
|
|
|
|
06-27-2008, 11:35 PM
|
Shankar
Joined on 10-24-2005
Dubai, UAE
Posts 219
|
Re: active directory authentication
|
|
|
|
|
Hi!
If you have a ClarionMag subscription, there is a recent article on that. The key is to use ADO and query the Active Directory OR use the Windows API's in netapi32.dll. The ones to use would be ::
1. NetGetDCName() to get the domail controller
2. NetUserEnum() to get the Users
3. NetApiBufferFree() to free the resources
I have not tried this but this was some information I saved from somebody'd posting. You can find more information on these API's from MSDN.
Regards
Shankar
|
|
|
|
|
Report
|
|
|
|
|
|