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

Public Member Functions

 authenticate ($uname, $pwd=null)
 
 getUPN ($uname)
 
 XoopsAuthAds (&$dao)
 
- Public Member Functions inherited from XoopsAuthLdap
 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)
 

Additional Inherited Members

- Public Attributes inherited from XoopsAuthLdap
 $_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'
 

Detailed Description

Definition at line 42 of file auth_ads.php.

Member Function Documentation

XoopsAuthAds::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 62 of file auth_ads.php.

References $uname, _AUTH_LDAP_EXTENSION_NOT_LOAD, _AUTH_LDAP_SERVER_NOT_FOUND, and _AUTH_LDAP_START_TLS_FAILED.

XoopsAuthAds::getUPN (   $uname)

Return the UPN = userPrincipalName (Active Directory) userPrincipalName = guyt@.nosp@m.CP.c.nosp@m.om Often abbreviated to UPN, and looks like an email address. Very useful for logging on especially in a large Forest. Note UPN must be unique in the forest.

Returns
userDN or false

Definition at line 112 of file auth_ads.php.

References $uname.

XoopsAuthAds::XoopsAuthAds ( $dao)

Authentication Service constructor

Definition at line 47 of file auth_ads.php.


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