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

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)
 

Public Attributes

 $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'
 

Additional Inherited Members

- Protected Attributes inherited from Xoops\Auth\AuthAbstract
 $auth_method
 
 $dao
 
 $errors
 

Detailed Description

Definition at line 27 of file Ldap.php.

Constructor & Destructor Documentation

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

Authentication Service constructor

Parameters
Connection | null$daodatabse

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

Here is the call graph for this function:

Member Function Documentation

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

Parameters
string$unameUsername
string$pwdPassword
Returns
bool

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

Here is the call graph for this function:

Xoops\Auth\Ldap::getFilter (   $uname)

Load user from XOOPS Database

Parameters
string$unameusername
Returns
mixed|string

Definition at line 222 of file Ldap.php.

References $filter, and $uname.

Referenced by Xoops\Auth\Ldap\getUserDN().

Here is the caller graph for this function:

Xoops\Auth\Ldap::getUserDN (   $uname)

Compose the user DN with the configuration.

Parameters
string$unameusername
Returns
bool|string userDN or false

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

Here is the call graph for this function:

Here is the caller graph for this function:

Xoops\Auth\Ldap::loadXoopsUser (   $userdn,
  $uname,
  $pwd = null 
)

loadXoopsUser

Parameters
string$userdnbase DN for the directory
string$unameusername
string$pwdpasword
Returns
bool|XoopsUser

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

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Xoops\Auth\Ldap::$ds

Definition at line 93 of file Ldap.php.

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

Xoops\Auth\Ldap::$ldap_filter_person

Definition at line 108 of file Ldap.php.

Xoops\Auth\Ldap::$ldap_givenname_attr

Definition at line 78 of file Ldap.php.

Xoops\Auth\Ldap::$ldap_loginldap_attr

Definition at line 58 of file Ldap.php.

Xoops\Auth\Ldap::$ldap_loginname_asdn

Definition at line 53 of file Ldap.php.

Xoops\Auth\Ldap::$ldap_mail_attr

Definition at line 63 of file Ldap.php.

Xoops\Auth\Ldap::$ldap_manager_dn

Definition at line 83 of file Ldap.php.

Xoops\Auth\Ldap::$ldap_manager_pass

Definition at line 88 of file Ldap.php.

Xoops\Auth\Ldap::$ldap_name_attr

Definition at line 68 of file Ldap.php.

Xoops\Auth\Ldap::$ldap_port = '389'

Definition at line 39 of file Ldap.php.

Xoops\Auth\Ldap::$ldap_server

Definition at line 33 of file Ldap.php.

Xoops\Auth\Ldap::$ldap_surname_attr

Definition at line 73 of file Ldap.php.

Xoops\Auth\Ldap::$ldap_use_TLS

Definition at line 98 of file Ldap.php.

Xoops\Auth\Ldap::$ldap_version = '3'

Definition at line 43 of file Ldap.php.


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