2008年10月2日星期四

[fw-auth] What does this error mean?

I'm getting the following error:

0x1: Failed to retrieve DN for account: 0x51: Can't contact LDAP server:
error:14090086:SSL routines:func(144):reason(134): ldaps://bluepages.ibm.com

I do have good ldap ssl connectivity with the ldapsearch command line
program.

Here's my config ini:
; IBM LDAP settings
ldap.server1.useSsl = true
ldap.server1.host = "bluepages.ibm.com"
ldap.server1.accountCanonicalForm = 4
ldap.server1.accountDomainName= us.ibm.com
ldap.server1.accountFilterFormat = "(&(mail=%s)(objectclass=ibmPerson))"
ldap.server1.baseDn = "OU=bluepages,O=ibm.com"
ldap.server1.bindRequiresDn = true

and here's my class:
class UserController extends Zend_Controller_Action
{
private $auth;
private $config;
private $log_path;
private $options;

public function init() {
// Pull auth and config out of registry
$this->auth = Zend_Registry::getInstance()->auth;
$this->config = Zend_Registry::getInstance()->configuration;

// Get LDAP options from config
$this->log_path = $this->config->ldap->log_path;
$this->options = $this->config->ldap->toArray();
unset($this->options['log_path']);

}

public function loginAction() {
$filter = new Zend_Filter_StripTags();
$username = $filter->filter($this->_request->getPost('username'));
$password =
md5($filter->filter($this->_request->getPost('password')));
$username="tsawyer@us.ibm.com";
$password="hiddenpassword";

print "<pre>Options:\n"; print_r($this->options); print "</pre>";

$adapter = new Zend_Auth_Adapter_Ldap($this->options, $username,
$password);
$result = $this->auth->authenticate($adapter);

$messages = $result->getMessages();

print "<pre>"; print_r($messages); print "</pre>";
}
}
--
View this message in context: http://www.nabble.com/What-does-this-error-mean--tp19778658p19778658.html
Sent from the Zend Auth mailing list archive at Nabble.com.

没有评论: