XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
XoopsAuthLdap Class Reference
Inheritance diagram for XoopsAuthLdap:
Inheritance graph

Public Member Functions

 authenticate ($uname, $pwd=null)
 
 cp1252_to_utf8 ($str)
 
 getFilter ($uname)
 
 getUserDN ($uname)
 
 loadXoopsUser ($userdn, $uname, $pwd=null)
 
 XoopsAuthLdap (&$dao)
 
- Public Member Functions inherited from XoopsAuth
 authenticate ()
 
 getErrors ()
 
 getHtmlErrors ()
 
 setErrors ($err_no, $err_str)
 
 XoopsAuth (&$dao)
 

Public Attributes

 $_ds
 
 $cp1252_map
 
 $ldap_base_dn
 
 $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_version = '3'
 
- Public Attributes inherited from XoopsAuth
 $_dao
 
 $_errors
 

Detailed Description

Definition at line 48 of file auth_ldap.php.

Member Function Documentation

XoopsAuthLdap::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 183 of file auth_ldap.php.

References $uname, _AUTH_LDAP_EXTENSION_NOT_LOAD, _AUTH_LDAP_SERVER_NOT_FOUND, _AUTH_LDAP_START_TLS_FAILED, getUserDN(), loadXoopsUser(), and XoopsAuth\setErrors().

Here is the call graph for this function:

XoopsAuthLdap::cp1252_to_utf8 (   $str)

XoopsAuthLdap::cp1252_to_utf8()

Parameters
mixed$str
Returns

Definition at line 168 of file auth_ldap.php.

XoopsAuthLdap::getFilter (   $uname)

Load user from XOOPS Database

Returns
XoopsUser object

Definition at line 252 of file auth_ldap.php.

References $filter, and $uname.

Referenced by getUserDN().

Here is the caller graph for this function:

XoopsAuthLdap::getUserDN (   $uname)

Compose the user DN with the configuration.

Returns
userDN or false

Definition at line 224 of file auth_ldap.php.

References $filter, $ldap_base_dn, $uname, _AUTH_LDAP_USER_NOT_FOUND, getFilter(), and XoopsAuth\setErrors().

Referenced by authenticate().

Here is the call graph for this function:

Here is the caller graph for this function:

XoopsAuthLdap::loadXoopsUser (   $userdn,
  $uname,
  $pwd = null 
)

XoopsAuthLdap::loadXoopsUser()

Parameters
mixed$userdn
mixed$uname
mixed$pwd
Returns

Definition at line 271 of file auth_ldap.php.

References $uname, $xoopsUser, _AUTH_LDAP_CANT_READ_ENTRY, XoopsAuthProvisionning\getInstance(), and XoopsAuth\setErrors().

Referenced by authenticate().

Here is the call graph for this function:

Here is the caller graph for this function:

XoopsAuthLdap::XoopsAuthLdap ( $dao)

Authentication Service constructor

Definition at line 150 of file auth_ldap.php.

References $config, $config_handler, XOOPS_CONF_AUTH, and xoops_gethandler().

Here is the call graph for this function:

Member Data Documentation

XoopsAuthLdap::$_ds

Definition at line 145 of file auth_ldap.php.

XoopsAuthLdap::$cp1252_map
Initial value:
= array("\xc2\x80" => "\xe2\x82\xac" ,
"\xc2\x82" => "\xe2\x80\x9a" ,
"\xc2\x83" => "\xc6\x92" ,
"\xc2\x84" => "\xe2\x80\x9e" ,
"\xc2\x85" => "\xe2\x80\xa6" ,
"\xc2\x86" => "\xe2\x80\xa0" ,
"\xc2\x87" => "\xe2\x80\xa1" ,
"\xc2\x88" => "\xcb\x86" ,
"\xc2\x89" => "\xe2\x80\xb0" ,
"\xc2\x8a" => "\xc5\xa0" ,
"\xc2\x8b" => "\xe2\x80\xb9" ,
"\xc2\x8c" => "\xc5\x92" ,
"\xc2\x8e" => "\xc5\xbd" ,
"\xc2\x91" => "\xe2\x80\x98" ,
"\xc2\x92" => "\xe2\x80\x99" ,
"\xc2\x93" => "\xe2\x80\x9c" ,
"\xc2\x94" => "\xe2\x80\x9d" ,
"\xc2\x95" => "\xe2\x80\xa2" ,
"\xc2\x96" => "\xe2\x80\x93" ,
"\xc2\x97" => "\xe2\x80\x94" ,
"\xc2\x98" => "\xcb\x9c" ,
"\xc2\x99" => "\xe2\x84\xa2" ,
"\xc2\x9a" => "\xc5\xa1" ,
"\xc2\x9b" => "\xe2\x80\xba" ,
"\xc2\x9c" => "\xc5\x93" ,
"\xc2\x9e" => "\xc5\xbe" ,
"\xc2\x9f" => "\xc5\xb8")

Definition at line 50 of file auth_ldap.php.

XoopsAuthLdap::$ldap_base_dn

Definition at line 136 of file auth_ldap.php.

Referenced by getUserDN().

XoopsAuthLdap::$ldap_givenname_attr

Definition at line 142 of file auth_ldap.php.

XoopsAuthLdap::$ldap_loginldap_attr

Definition at line 138 of file auth_ldap.php.

XoopsAuthLdap::$ldap_loginname_asdn

Definition at line 137 of file auth_ldap.php.

XoopsAuthLdap::$ldap_mail_attr

Definition at line 139 of file auth_ldap.php.

XoopsAuthLdap::$ldap_manager_dn

Definition at line 143 of file auth_ldap.php.

XoopsAuthLdap::$ldap_manager_pass

Definition at line 144 of file auth_ldap.php.

XoopsAuthLdap::$ldap_name_attr

Definition at line 140 of file auth_ldap.php.

XoopsAuthLdap::$ldap_port = '389'

Definition at line 134 of file auth_ldap.php.

XoopsAuthLdap::$ldap_server

LATIN CAPITAL LETTER Y WITH DIAERESIS

Definition at line 133 of file auth_ldap.php.

XoopsAuthLdap::$ldap_surname_attr

Definition at line 141 of file auth_ldap.php.

XoopsAuthLdap::$ldap_version = '3'

Definition at line 135 of file auth_ldap.php.


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