API - XOOPS 2.5.11 Beta 2
By monxoops.fr
XoopsAuthAds Class Reference
Inheritance diagram for XoopsAuthAds:
Collaboration diagram for XoopsAuthAds:

Public Member Functions

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

Additional Inherited Members

- Data Fields inherited from XoopsAuthLdap
 $cp1252_map
 
 $ldap_server
 
 $ldap_port = '389'
 
 $ldap_version = '3'
 
 $ldap_base_dn
 
 $ldap_loginname_asdn
 
 $ldap_loginldap_attr
 
 $ldap_mail_attr
 
 $ldap_name_attr
 
 $ldap_surname_attr
 
 $ldap_givenname_attr
 
 $ldap_manager_dn
 
 $ldap_manager_pass
 
 $_ds
 
- Data Fields inherited from XoopsAuth
 $_dao
 
 $_errors
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( XoopsDatabase  $dao = null)

Authentication Service constructor

Parameters
XoopsDatabase$dao

Reimplemented from XoopsAuthLdap.

Member Function Documentation

◆ authenticate()

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

Reimplemented from XoopsAuthLdap.

Here is the call graph for this function:

◆ getUPN()

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.

Parameters
$uname
Returns
userDN or false
Here is the caller graph for this function:

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