Class: XoopsAuthLdap

Source Location: /class/auth/auth_ldap.php

Class XoopsAuthLdap

Descendants
Child Class Description
XoopsAuthAds Authentification base class

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From XoopsAuth

XoopsAuth::$_dao
XoopsAuth::$_errors

Inherited From XoopsAuth

XoopsAuth::XoopsAuth()
Authentication Service constructor
XoopsAuth::authenticate()
XoopsAuth::getErrors()
return the errors for this object as an array
XoopsAuth::getHtmlErrors()
return the errors for this object as html
XoopsAuth::setErrors()
add an error

[ Top ]
Property Summary
mixed   $cp1252_map  
mixed   $ldap_base_dn  
mixed   $ldap_givenname_attr  
mixed   $ldap_loginldap_attr  
mixed   $ldap_loginname_asdn  
mixed   $ldap_mail_attr  
mixed   $ldap_manager_dn  
mixed   $ldap_manager_pass  
mixed   $ldap_name_attr  
mixed   $ldap_port  
mixed   $ldap_server  
mixed   $ldap_surname_attr  
mixed   $ldap_version  
mixed   $_ds  

[ Top ]
Method Summary
XoopsAuthLdap   XoopsAuthLdap()   Authentication Service constructor
bool   authenticate()   Authenticate user again LDAP directory (Bind)
void   cp1252_to_utf8()  
XoopsUser   getFilter()   Load user from ImpressCMS Database
userDN   getUserDN()   Compose the user DN with the configuration.
object {@link   loadXoopsUser()   Loads Xoops user

[ Top ]
Properties
mixed   $cp1252_map = array (
"\xc2\x80" => "\xe2\x82\xac", /* EURO SIGN */
"\xc2\x82" => "\xe2\x80\x9a", /* SINGLE LOW-9 QUOTATION MARK */
"\xc2\x83" => "\xc6\x92", /* LATIN SMALL LETTER F WITH HOOK */
"\xc2\x84" => "\xe2\x80\x9e", /* DOUBLE LOW-9 QUOTATION MARK */
"\xc2\x85" => "\xe2\x80\xa6", /* HORIZONTAL ELLIPSIS */
"\xc2\x86" => "\xe2\x80\xa0", /* DAGGER */
"\xc2\x87" => "\xe2\x80\xa1", /* DOUBLE DAGGER */
"\xc2\x88" => "\xcb\x86", /* MODIFIER LETTER CIRCUMFLEX ACCENT */
"\xc2\x89" => "\xe2\x80\xb0", /* PER MILLE SIGN */
"\xc2\x8a" => "\xc5\xa0", /* LATIN CAPITAL LETTER S WITH CARON */
"\xc2\x8b" => "\xe2\x80\xb9", /* SINGLE LEFT-POINTING ANGLE QUOTATION */
"\xc2\x8c" => "\xc5\x92", /* LATIN CAPITAL LIGATURE OE */
"\xc2\x8e" => "\xc5\xbd", /* LATIN CAPITAL LETTER Z WITH CARON */
"\xc2\x91" => "\xe2\x80\x98", /* LEFT SINGLE QUOTATION MARK */
"\xc2\x92" => "\xe2\x80\x99", /* RIGHT SINGLE QUOTATION MARK */
"\xc2\x93" => "\xe2\x80\x9c", /* LEFT DOUBLE QUOTATION MARK */
"\xc2\x94" => "\xe2\x80\x9d", /* RIGHT DOUBLE QUOTATION MARK */
"\xc2\x95" => "\xe2\x80\xa2", /* BULLET */
"\xc2\x96" => "\xe2\x80\x93", /* EN DASH */
"\xc2\x97" => "\xe2\x80\x94", /* EM DASH */
"\xc2\x98" => "\xcb\x9c", /* SMALL TILDE */
"\xc2\x99" => "\xe2\x84\xa2", /* TRADE MARK SIGN */
"\xc2\x9a" => "\xc5\xa1", /* LATIN SMALL LETTER S WITH CARON */
"\xc2\x9b" => "\xe2\x80\xba", /* SINGLE RIGHT-POINTING ANGLE QUOTATION*/
"\xc2\x9c" => "\xc5\x93", /* LATIN SMALL LIGATURE OE */
"\xc2\x9e" => "\xc5\xbe", /* LATIN SMALL LETTER Z WITH CARON */
"\xc2\x9f" => "\xc5\xb8" /* LATIN CAPITAL LETTER Y WITH DIAERESIS*/
)
[line 41]

[ Top ]
mixed   $ldap_base_dn [line 74]

[ Top ]
mixed   $ldap_givenname_attr [line 80]

[ Top ]
mixed   $ldap_loginldap_attr [line 76]

[ Top ]
mixed   $ldap_loginname_asdn [line 75]

[ Top ]
mixed   $ldap_mail_attr [line 77]

[ Top ]
mixed   $ldap_manager_dn [line 81]

[ Top ]
mixed   $ldap_manager_pass [line 82]

[ Top ]
mixed   $ldap_name_attr [line 78]

[ Top ]
mixed   $ldap_port = '389' [line 72]

[ Top ]
mixed   $ldap_server [line 71]

[ Top ]
mixed   $ldap_surname_attr [line 79]

[ Top ]
mixed   $ldap_version = '3' [line 73]

[ Top ]
mixed   $_ds [line 83]

[ Top ]
Methods
Constructor XoopsAuthLdap  [line 88]

  XoopsAuthLdap XoopsAuthLdap( &$dao  )

Authentication Service constructor

Parameters:
   &$dao: 


[ Top ]
authenticate  [line 114]

  bool authenticate( string $uname, [string $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   $uname:  Username
string   $pwd:  Password


Redefinition of:
XoopsAuth::authenticate()

Redefined in descendants as:

[ Top ]
cp1252_to_utf8  [line 99]

  void cp1252_to_utf8( $str  )

Parameters:
   $str: 


[ Top ]
getFilter  [line 177]

  XoopsUser getFilter( $uname  )

Load user from ImpressCMS Database

Parameters:
   $uname: 

API Tags:
Return:  object


[ Top ]
getUserDN  [line 151]

  userDN getUserDN( $uname  )

Compose the user DN with the configuration.

Parameters:
   $uname: 

API Tags:
Return:  or false


[ Top ]
loadXoopsUser  [line 195]

  object {@link loadXoopsUser( string $userdn, string $uname, [string $pwd = null]  )

Loads Xoops user

Parameters:
string   $userdn: 
string   $uname:  Username
string   $pwd:  Password

API Tags:
Return:  XoopsUser}


[ Top ]

Documentation generated on Sat, 15 Nov 2008 14:09:21 -0600 by phpDocumentor 1.4.1