Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Michael Schffer
January 8, 2007, 8:01 am
rate this thread
my english is not so good.
I want to use the users of our active directory in the intranet for a portal
i dont know how to authenticate?
$server = "xxx-xx.de.xx.com";
$connectid = @ldap_connect($server);
$binding = @ldap_bind($connectid) or die("Error");
is still ok.
if i use my username an password i get Error
$binding = @ldap_bind($connectid,$username,$password) or die("Error");
i dont understand this $basedn thing, for example in the search funtion.
$search = @ldap_search($connectid,$basedn,$filter);
$basedn = "ou=User,dc=ho,dc=de";
where can i finde the values for ou= dc= an c= and so on.
Re: authentification on Active Directory with LDAP
What OS is the web server running? If Linux, look into PHP's "PAM"
functions, and PAM's SAMBA module. I've successfully authenticated
against an NT domain that way with PHP before.
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
- » Why does is_dir($_SERVER['DOCUMENT_ROOT']) produce false in Windows XP?
- — Previous thread in » PHP Scripting Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum