Welcome to Clarion Community Sign in | Join | Faq

Clarion Language and Runtime Library

Started by bgreerlandmark at 06-26-2008 2:05 PM. Topic has 1 replies.

Print Search
Sort Posts:    
   06-26-2008, 2:05 PM
bgreerlandmark is not online. Last active: 6/27/2008 2:03:16 AM bgreerlandmark

Top 500 Posts
Joined on 06-27-2008
Posts 1
active directory authentication
Reply Quote
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 is not online. Last active: 11/14/2008 4:04:22 PM Shankar

Top 10 Posts
Joined on 10-24-2005
Dubai, UAE
Posts 219
Re: active directory authentication
Reply Quote
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 
Clarion Communi... » Clarion » Clarion Languag... » active directory authentication

Powered by Community Server, by Telligent Systems