Page 1 of 1

use Active Directory Account

Posted: Thu May 27, 2010 9:47 pm
by nicolaus
Hello all,

At one of my projects i must protect the software with a user login. For this login i must use the Active Directory accounts from the employes of the company.
Now is my question how i can use the AD accounts so that the user can login into the software and have any one of you a example for PB?

Thanks,
Nico

Re: use Active Directory Account

Posted: Fri May 28, 2010 7:28 am
by flaith
Hi,

i made that for getting user group and info from the AD : http://www.purebasic.fr/english/viewtop ... 12&t=39780

you can check if the user (from environment variable "USERNAME") is in the AD or not

hope it'll help :wink:

Re: use Active Directory Account

Posted: Mon May 31, 2010 6:47 am
by nicolaus
Thx but i need a example how i can authendicate against the active directory.
I need it for a programm what i build for my company and the security level say thet every software must login the user via AD account.

If i use your example i cant get the value in "USER_INFO_3\password".

Can any one help me to authendicate a user against the active directory with PB?

Re: use Active Directory Account

Posted: Wed Jun 09, 2010 2:59 pm
by Blackskyliner
Maybe you could use this: http://www.openldap.org/

But I actually don't know how to use it, you need to go through the documentation.
Hope this helps you.