Overview

Namespaces

  • None
  • Xmf
    • Database
    • Module
      • Helper
    • Template
  • Xoops
    • Auth
    • Core
      • Cache
      • Database
        • Logging
        • Schema
      • Exception
      • Handler
        • Scheme
      • Kernel
        • Dtype
        • Handlers
        • Model
      • Lists
      • Locale
        • Punic
      • Service
        • Contract
      • Session
      • Text
        • Sanitizer
          • Extensions
      • Theme
        • Plugins
    • Form
    • Html
    • Locale
    • Module
      • Helper
      • Plugin

Classes

  • Ads
  • AuthAbstract
  • Factory
  • Ldap
  • Provisioning
  • Xoops
  • Overview
  • Namespace
  • Class
  • Tree

Class Ldap

Authentication class for standard LDAP Server V3

Xoops\Auth\AuthAbstract
Extended by Xoops\Auth\Ldap

Direct known subclasses

Xoops\Auth\Ads
Namespace: Xoops\Auth
Package: Ldap
Category: Xoops\Auth
Copyright: 2000-2014 XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Pierre-Eric MENUET pemphp@free.fr
Since: 2.0
Link: http://xoops.org
Located at oops_lib/Xoops/Auth/Ldap.php
Methods summary
public
# __construct( Xoops\Core\Database\Connection $dao = null )

Authentication Service constructor

Authentication Service constructor

Parameters

$dao
databse

Overrides

Xoops\Auth\AuthAbstract::__construct()
public boolean
# 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

Authenticate user again LDAP directory (Bind) 2 options : Authenticate directly with uname in the DN Authenticate with manager, search the dn

Parameters

$uname
Username
$pwd
Password

Returns

boolean
public boolean|string
# getUserDN( string $uname )

Compose the user DN with the configuration.

Compose the user DN with the configuration.

Parameters

$uname
username

Returns

boolean|string
userDN or false
public mixed|string
# getFilter( string $uname )

Load user from XOOPS Database

Load user from XOOPS Database

Parameters

$uname
username

Returns

mixed|string
public boolean|XoopsUser
# loadXoopsUser( string $userdn, string $uname, string $pwd = null )

loadXoopsUser

loadXoopsUser

Parameters

$userdn
base DN for the directory
$uname
username
$pwd
pasword

Returns

boolean|XoopsUser
Methods inherited from Xoops\Auth\AuthAbstract
getErrors(), getHtmlErrors(), setErrors()
Properties summary
public $ldap_server
#
public string $ldap_port
# '389'
public string $ldap_version
# '3'
public $ldap_base_dn
#
public $ldap_loginname_asdn
#
public $ldap_loginldap_attr
#
public $ldap_mail_attr
#
public $ldap_name_attr
#
public $ldap_surname_attr
#
public $ldap_givenname_attr
#
public $ldap_manager_dn
#
public $ldap_manager_pass
#
public $ds
#
public $ldap_use_TLS
#
public $ldap_domain_name
#
public $ldap_filter_person
#
Properties inherited from Xoops\Auth\AuthAbstract
$auth_method, $dao, $errors
API documentation generated by ApiGen