XOOPS  2.6.0
Xoops\Auth\Ads Class Reference
Inheritance diagram for Xoops\Auth\Ads:
Inheritance graph

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
 

Detailed Description

Definition at line 27 of file Ads.php.

Constructor & Destructor Documentation

Xoops\Auth\Ads::__construct ( Connection  $dao = null)

Authentication Service constructor

Parameters
Connection | null$daodatabase
Returns
void

Definition at line 36 of file Ads.php.

References Xoops\Auth\AuthAbstract\$dao.

Member Function Documentation

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

Parameters
string$unameUsername
string$pwdPassword
Returns
bool

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().

Here is the call graph for this function:

Xoops\Auth\Ads::getUPN (   $uname)

Return the UPN = userPrincipalName (Active Directory) userPrincipalName = guyt@.nosp@m.CP.c.nosp@m.om 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.

Parameters
string$unameusername
Returns
string userDN

Definition at line 107 of file Ads.php.

References Xoops\Auth\Ldap\$ldap_domain_name, and $uname.

Referenced by Xoops\Auth\Ads\authenticate().

Here is the caller graph for this function:


The documentation for this class was generated from the following file: