1
0

Support the "url" param on Ldap_User by returning a null value for now.

This commit is contained in:
Bharat Mediratta 2009-10-30 15:55:44 -07:00
parent 413125cbd9
commit ef715a9261

View File

@ -83,7 +83,6 @@ class IdentityProvider_Ldap_Driver implements IdentityProvider_Driver {
$result = ldap_search(self::$_connection, self::$_params["user_domain"], "uidNumber=$id");
$entries = ldap_get_entries(self::$_connection, $result);
if ($entries["count"] > 0) {
$cn_entry = ldap_get_values(self::$_connection, $entry_id, "cn");
return new Ldap_User($entries[0]);
}
return null;
@ -248,6 +247,9 @@ class Ldap_User implements User_Definition {
case "dn":
return $this->ldap_entry["dn"];
case "url": // @todo
return null;
default:
throw new Exception("@todo UNKNOWN_KEY ($key)");
}