XOOPS
2.6.0
|
Public Member Functions | |
__construct (Connection $dao=null) | |
authenticate ($uname, $pwd=null) | |
getUPN ($uname) | |
Public Member Functions inherited from Xoops\Auth\Ldap | |
__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 | |
Public Attributes inherited from Xoops\Auth\Ldap | |
$ds | |
$ldap_base_dn | |
$ldap_domain_name | |
$ldap_filter_person | |
$ldap_givenname_attr | |
$ldap_loginldap_attr | |
$ldap_loginname_asdn | |
$ldap_mail_attr | |
$ldap_manager_dn | |
$ldap_manager_pass | |
$ldap_name_attr | |
$ldap_port = '389' | |
$ldap_server | |
$ldap_surname_attr | |
$ldap_use_TLS | |
$ldap_version = '3' | |
Protected Attributes inherited from Xoops\Auth\AuthAbstract | |
$auth_method | |
$dao | |
$errors | |
Xoops\Auth\Ads::__construct | ( | Connection | $dao = null | ) |
Authentication Service constructor
Connection | null | $dao | database |
Definition at line 36 of file Ads.php.
References Xoops\Auth\AuthAbstract\$dao.
Xoops\Auth\Ads::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 52 of file Ads.php.
References $uname, XoopsLocaleEn_US\E_CANNOT_CONNECT_TO_SERVER, XoopsLocaleEn_US\E_EXTENSION_PHP_LDAP_NOT_LOADED, XoopsLocaleEn_US\E_TLS_CONNECTION_NOT_OPENED, Xoops\Auth\Ads\getUPN(), Xoops\Auth\Ldap\getUserDN(), Xoops\Auth\Ldap\loadXoopsUser(), and Xoops\Auth\AuthAbstract\setErrors().
Xoops\Auth\Ads::getUPN | ( | $uname | ) |
Return the UPN = userPrincipalName (Active Directory) userPrincipalName = guyt@ Often abbreviated to UPN, and looks like an email address. Very useful for logging on especially in a large Forest. Note UPN must be unique in the forest. CP.c om
string | $uname | username |
Definition at line 107 of file Ads.php.
References Xoops\Auth\Ldap\$ldap_domain_name, and $uname.
Referenced by Xoops\Auth\Ads\authenticate().