Re: PEAR::Auth - trying to add my own storange container
| From: | bertrand Gugger | Date: | Tue, 07 Jun 2005 16:17:38 +0000 |
| Subject: | Re: PEAR::Auth - trying to add my own storange container | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19503@lists.php.net to get a copy of this message | ||
Hi
Lucas Brasilino wrote:
<?php include_once ("Auth/Container.php"); class MyLDAPAuth extends Auth_Container { public $MyAuth_ldapconn; public $MyAuth_binddn; public $MyAuth_basedn; public $MyAuth_userattr; function AuthContainerDatabase ($params)you want perhaps a constructor ? MyLDAPAuth($params) or *__construct* ($params)
function fetchData ($username, $password) {and use your connection: $ldapbind = ldap_bind ($this->MyAuth_ldapconn, $binddn, $password); à+ -- bertrand Gugger http://toggg.com/$binddn = $MyAuth_serattr."=".$username.",".$MyAuth_basedn;/* line 23: */$ldapbind = ldap_bind ($MyAuth_ldapconn, $binddn, $password);