XOOPS Docs - kernel
[ class tree: kernel ] [ index: kernel ] [ all elements ]

Class: XoopsAuthLdap

Source Location: /class/auth/auth_ldap.php

Class Overview

XoopsAuth
   |
   --XoopsAuthLdap



Author(s):

Copyright:

  • copyright (c) 2000-2003 XOOPS.org

Variables

Methods


Child classes:

Inherited Variables

Inherited Methods

Class: 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

Class Details

[line 37]


Tags:

author:  Pierre-Eric MENUET <pemphp@free.fr>
copyright:  copyright (c) 2000-2003 XOOPS.org


[ Top ]


Class Variables

$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 39]


Type:   mixed


[ Top ]

$ldap_base_dn =

[line 72]


Type:   mixed


[ Top ]

$ldap_givenname_attr =

[line 78]


Type:   mixed


[ Top ]

$ldap_loginldap_attr =

[line 74]


Type:   mixed


[ Top ]

$ldap_loginname_asdn =

[line 73]


Type:   mixed


[ Top ]

$ldap_mail_attr =

[line 75]


Type:   mixed


[ Top ]

$ldap_manager_dn =

[line 79]


Type:   mixed


[ Top ]

$ldap_manager_pass =

[line 80]


Type:   mixed


[ Top ]

$ldap_name_attr =

[line 76]


Type:   mixed


[ Top ]

$ldap_port =  '389'

[line 70]


Type:   mixed


[ Top ]

$ldap_server =

[line 69]


Type:   mixed


[ Top ]

$ldap_surname_attr =

[line 77]


Type:   mixed


[ Top ]

$ldap_version =  '3'

[line 71]


Type:   mixed


[ Top ]

$_ds =

[line 81]


Type:   mixed


[ Top ]



Class Methods


constructor XoopsAuthLdap [line 86]

XoopsAuthLdap XoopsAuthLdap( &$dao)

Authentication Service constructor



Parameters:

   &$dao  

[ Top ]

method authenticate [line 113]

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




Overridden in child classes as:

XoopsAuthAds::authenticate()
Authenticate user again LDAP directory (Bind)

Overrides XoopsAuth::authenticate() (parent method not documented)

Parameters:

string   $uname   Username
string   $pwd   Password

[ Top ]

method cp1252_to_utf8 [line 98]

void cp1252_to_utf8( $str)



Parameters:

   $str  

[ Top ]

method getFilter [line 178]

XoopsUser getFilter( $uname)

Load user from XOOPS Database



Tags:

return:  object


Parameters:

   $uname  

[ Top ]

method getUserDN [line 151]

userDN getUserDN( $uname)

Compose the user DN with the configuration.



Tags:

return:  or false


Parameters:

   $uname  

[ Top ]

method loadXoopsUser [line 190]

void loadXoopsUser( $userdn, $uname, [ $pwd = null])



Parameters:

   $userdn  
   $uname  
   $pwd  

[ Top ]


XOOPS Docs generated by phpDocumentor