Skip to content

icms_auth_method_Ldap

Raimondas Rimkevičius edited this page Mar 9, 2020 · 1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!

icms_auth_method_Ldap

Authentication class for standard LDAP Server V2 or V3

Properties

$cp1252_map

public mixed $cp1252_map = array(
� => €,
/* EURO SIGN */
� => ‚,
/* SINGLE LOW-9 QUOTATION MARK */
� => ƒ,
/* LATIN SMALL LETTER F WITH HOOK */
� => „,
/* DOUBLE LOW-9 QUOTATION MARK */
� => …,
/* HORIZONTAL ELLIPSIS */
� => †,
/* DAGGER */
� => ‡,
/* DOUBLE DAGGER */
� => ˆ,
/* MODIFIER LETTER CIRCUMFLEX ACCENT */
� => ‰,
/* PER MILLE SIGN */
� => Š,
/* LATIN CAPITAL LETTER S WITH CARON */
� => ‹,
/* SINGLE LEFT-POINTING ANGLE QUOTATION */
� => Œ,
/* LATIN CAPITAL LIGATURE OE */
� => Ž,
/* LATIN CAPITAL LETTER Z WITH CARON */
� => ‘,
/* LEFT SINGLE QUOTATION MARK */
� => ’,
/* RIGHT SINGLE QUOTATION MARK */
� => “,
/* LEFT DOUBLE QUOTATION MARK */
� => ”,
/* RIGHT DOUBLE QUOTATION MARK */
� => •,
/* BULLET */
� => –,
/* EN DASH */
� => —,
/* EM DASH */
� => ˜,
/* SMALL TILDE */
� => ™,
/* TRADE MARK SIGN */
� => š,
/* LATIN SMALL LETTER S WITH CARON */
� => ›,
/* SINGLE RIGHT-POINTING ANGLE QUOTATION*/
� => œ,
/* LATIN SMALL LIGATURE OE */
� => ž,
/* LATIN SMALL LETTER Z WITH CARON */
� => Ÿ,

)

  • Visibility: public

$ldap_server

public mixed $ldap_server
  • Visibility: public

$ldap_port

public mixed $ldap_port = 389
  • Visibility: public

$ldap_version

public mixed $ldap_version = 3
  • Visibility: public

$ldap_base_dn

public mixed $ldap_base_dn
  • Visibility: public

$ldap_loginname_asdn

public mixed $ldap_loginname_asdn
  • Visibility: public

$ldap_loginldap_attr

public mixed $ldap_loginldap_attr
  • Visibility: public

$ldap_mail_attr

public mixed $ldap_mail_attr
  • Visibility: public

$ldap_name_attr

public mixed $ldap_name_attr
  • Visibility: public

$ldap_surname_attr

public mixed $ldap_surname_attr
  • Visibility: public

$ldap_givenname_attr

public mixed $ldap_givenname_attr
  • Visibility: public

$ldap_manager_dn

public mixed $ldap_manager_dn
  • Visibility: public

$ldap_manager_pass

public mixed $ldap_manager_pass
  • Visibility: public

$_ds

public mixed $_ds
  • Visibility: public

$_errors

private mixed $_errors
  • Visibility: private

Methods

__construct

mixed icms_auth_Object::__construct()

Authentication Service constructor

cp1252_to_utf8

mixed icms_auth_method_Ldap::cp1252_to_utf8(mixed str)
  • Visibility: public

Arguments

  • str mixed

authenticate

bool icms_auth_Object::authenticate(mixed uname, mixed pwd)

authenticate

Arguments

  • uname mixed
  • pwd mixed

getUserDN

\userDN icms_auth_method_Ldap::getUserDN(string uname)

Compose the user DN with the configuration.

  • Visibility: public

Arguments

  • uname string - <p>UserName</p>

getFilter

\icms_member_user_Object icms_auth_method_Ldap::getFilter(string uname)

Load user from ImpressCMS Database

  • Visibility: public

Arguments

  • uname string - <p>UserName</p>

getMember

\icms_member_user_Object icms_auth_method_Ldap::getMember(string userdn, string uname, string pwd)

Loads user

  • Visibility: public

Arguments

  • userdn string
  • uname string - <p>Username</p>
  • pwd string - <p>Password</p>

setErrors

mixed icms_auth_Object::setErrors(mixed err_no, mixed err_str)

add an error

Arguments

  • err_no mixed
  • err_str mixed

getErrors

array icms_auth_Object::getErrors()

return the errors for this object as an array

getHtmlErrors

string icms_auth_Object::getHtmlErrors()

return the errors for this object as html

Clone this wiki locally