use Active Directory Account

Windows specific forum
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

use Active Directory Account

Post 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
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Re: use Active Directory Account

Post 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:
“Fear is a reaction. Courage is a decision.” - WC
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Re: use Active Directory Account

Post 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?
Blackskyliner
New User
New User
Posts: 4
Joined: Thu Sep 22, 2005 7:35 pm
Location: Germany

Re: use Active Directory Account

Post 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.
Every post I do is not finally. It could be possible that I change the text right after posting it to avoid dobule-posting.
_________________
Purebasic Windows 7 x64 & Linux (Ubuntu 10.04LTS) 4.50[x64|x86] User
_________________
Projects: -None-
Post Reply