(on Thursday, 02 October 2008, 05:52 AM -0700):
>
> 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.
Regardless, PHP is unable to contact the LDAP server -- that's what the
message above indicates.
Make sure that the configuraiton settings you have for the application
match those you're using with ldapsearch; additionally, google for the
various error codes listed in the message to see if you can find
something -- it may be related to issues in the SSL and LDAP extensions
in your PHP binary.
> 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.
>
--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/
没有评论:
发表评论