Loading...
 
Skip to main content

Architecture / Installation


You are viewing a reply to LDAP auth

Re: LDAP auth

Thanks robm873. I am waiting for my IT services folks to tell me if there is any requirements in the iPlanet setup to return "dn" or something else.. When I tried to use your settings for returning "dn", I was still receiving the invalid username/password page.

I tried this experiment: In ldap.php I edited the starting of the function fetchdata

function fetchData($username, $password)
{
if($this->debug)
{
// send some error-checking info
$msg = "User: $username\nPwd: $password\n";
foreach($this->options as $key=>$val)
$msg .= "$key: $val\n";
// why that hardcoded value in auth ?
// I feel like it's a very very nasty thing !!!
// mail("da...@mc...", "test in auth_ldap", $msg);
return PEAR::raiseError("Auth_Container_LDAP: ".$msg, 41, PEAR_ERROR_DIE);
$msg = "";
}


The additional line is in bold above. (I also set the debug variable to be 'true' in line 97 in this ldap.php file)

This causes the tikiwiki to display all the variables it has obtained from tiki, and prints it on the browser, before contacting the ldap server. The text on the browser is

Auth_Container_LDAP: User: myuserid Pwd: host: ldapserver port: 389 scope: sub basedn: dc=domain,dc=com userdn: userattr: uid useroc: person usercn: dn groupdn: groupattr: cn groupoc: groupOfUniqueNames memberattr: uniqueMember memberisdn: adminuser: adminpass: membersisdn:

As seen, the value of Pwd: is empty string. Is this correct? If not, why is the string I entered as password do not appear here?

Thanks