Re:

From: Date: Tue, 11 May 2004 13:36:59 +0000
Subject: Re:
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-185911@lists.php.net to get a copy of this message
Hi All, I am working on one Document Management System which I am running on linux. I have added this system to win2000 Active Directory server. Now, I want to authenticate my all users for DMS through this Win2k server and search on directory server. So, I am trying to connect to Active Directory server using php-ldap function, but every time it says that my password is not correct. I am using the example given at the site: |function checkNTUser ($username,$password) { $ldapserver = 'Your Server'; $ds=ldap_connect($ldapserver); if ($ds) {
     $dn="cn=$username,cn=Users, DC=[sitename], DC=[sitesuffix]";
     $r=@ldap_bind($ds,$dn,$password);       if ($r) { return true;
     } else {
         return false;
     }
} } I am really in crisis. Can somebody on list help me.Thanks in advance. With Regards, Kuldeep Singh Daniel Clark wrote:
You need to name your session variables, but no name for session_start().
It is necessary to always name your sessions?....or is session_start() sufficient? Thanks, Eddie
     
-- Kuldeep Singh Tomar Open Source Specialist VCLABS

« previous php.general (#185911) next »