 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
Chaos77
Joined: 13 May 2008 Posts: 1
|
Posted: Tue May 13, 2008 2:50 pm Post subject: Could not bind to LDAP server: Need help with Authparameters |
|
|
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.
Bye |
|
| Back to top |
|
 |
|
|
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
|
|