PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Could not bind to LDAP server: Need help with Authparameters

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Authentication
View previous topic :: View next topic  
Author Message
Chaos77



Joined: 13 May 2008
Posts: 1

PostPosted: Tue May 13, 2008 2:50 pm    Post subject: Could not bind to LDAP server: Need help with Authparameters Reply with quote

Hi!

I try to connect via Pear Auth 1.6.1 on a Microsoft Windows 2003 Active Directory Service Server with the latest service packs but all I get is this fucked up error.
Could somebody of you help me with the parameters which I have to insert in the line "$auth = new Auth(...)"?
The domainname is daa.local. In this domain there are 2 groups: "DAAFreelancer" and "DAAgruppe" which extend users like "Freelancer" or "John". Here is my code:

[code]
<?php
require_once "Auth/Auth.php";

error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once 'PEAR.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);

$auth = new Auth("LDAP", array( "host" => "192.9.100.11", "port" => "389", "version" => 3, "basedn" => "dc=daa,dc=local", "userattr" => "samAccountName", "binddn" => "cn=Freelancer,dc=daa,dc=local,ou=DAAFreelancer", "bindpw" => "DAA3D"));
$auth ->start();

if ($auth->checkAuth()) {
echo "Logged in";
} else {
echo "Doesn't work";
}
print_r($auth->getStatus());
?>
[/code]

Btw: How can I get all Users and all Groups that are on this server available?

I would be very thankful if somebody could help me.
I'm new to this stuff so it would be great if you could explain it in an easy way. Smile

Bye
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Authentication All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software