|
XOOPS
2.6.0
|

Public Member Functions | |
| __construct (Connection $dao=null) | |
| authenticate ($uname, $pwd=null) | |
| getFilter ($uname) | |
| getUserDN ($uname) | |
| loadXoopsUser ($userdn, $uname, $pwd=null) | |
Public Member Functions inherited from Xoops\Auth\AuthAbstract | |
| __construct ($dao) | |
| authenticate ($uname, $pwd=null) | |
| getErrors () | |
| getHtmlErrors () | |
| setErrors ($err_no, $err_str) | |
Additional Inherited Members | |
Protected Attributes inherited from Xoops\Auth\AuthAbstract | |
| $auth_method | |
| $dao | |
| $errors | |
| Xoops\Auth\Ldap::__construct | ( | Connection | $dao = null | ) |
Authentication Service constructor
| Connection | null | $dao | databse |
Definition at line 115 of file Ldap.php.
References $configs, Xoops\Auth\AuthAbstract\$dao, $xoops, XoopsLocaleEn_US\F_EXTENSION_PHP_NOT_LOADED, and Xoops\getInstance().

| Xoops\Auth\Ldap::authenticate | ( | $uname, | |
$pwd = null |
|||
| ) |
Authenticate user again LDAP directory (Bind) 2 options : Authenticate directly with uname in the DN Authenticate with manager, search the dn
| string | $uname | Username |
| string | $pwd | Password |
Definition at line 142 of file Ldap.php.
References $uname, XoopsLocaleEn_US\E_CANNOT_CONNECT_TO_SERVER, XoopsLocaleEn_US\E_TLS_CONNECTION_NOT_OPENED, Xoops\Auth\Ldap\getUserDN(), Xoops\Auth\Ldap\loadXoopsUser(), and Xoops\Auth\AuthAbstract\setErrors().

| Xoops\Auth\Ldap::getFilter | ( | $uname | ) |
| Xoops\Auth\Ldap::getUserDN | ( | $uname | ) |
Compose the user DN with the configuration.
| string | $uname | username |
Definition at line 182 of file Ldap.php.
References $filter, $info, Xoops\Auth\Ldap\$ldap_base_dn, $uname, XoopsLocaleEn_US\EF_USER_NOT_FOUND_IN_DIRECTORY_SERVER, Xoops\Auth\Ldap\getFilter(), and Xoops\Auth\AuthAbstract\setErrors().
Referenced by Xoops\Auth\Ads\authenticate(), and Xoops\Auth\Ldap\authenticate().


| Xoops\Auth\Ldap::loadXoopsUser | ( | $userdn, | |
| $uname, | |||
$pwd = null |
|||
| ) |
loadXoopsUser
| string | $userdn | base DN for the directory |
| string | $uname | username |
| string | $pwd | pasword |
Definition at line 242 of file Ldap.php.
References $uname, $xoopsUser, XoopsLocaleEn_US\EF_ENTRY_NOT_READ, Xoops\Auth\Provisioning\getInstance(), and Xoops\Auth\AuthAbstract\setErrors().
Referenced by Xoops\Auth\Ads\authenticate(), and Xoops\Auth\Ldap\authenticate().


| Xoops\Auth\Ldap::$ldap_base_dn |
Definition at line 48 of file Ldap.php.
Referenced by Xoops\Auth\Ldap\getUserDN().
| Xoops\Auth\Ldap::$ldap_domain_name |
Definition at line 103 of file Ldap.php.
Referenced by Xoops\Auth\Ads\getUPN().