DB_ldap3
[ class tree: DB_ldap3 ] [ index: DB_ldap3 ] [ all elements ]

Class: DB_ldap3

Source Location: /DB_ldap2-0.5.1/ldap3.php

Class Overview

DB_common
   |
   --DB_ldap2
      |
      --DB_ldap3

LDAP3 DB interface class


Author(s):

Version:

  • $Revision: 255993 $

Methods


Inherited Variables

Inherited Methods

Class: DB_ldap2

DB_ldap2::DB_ldap2()
Constructor, calls DB_common constructor
DB_ldap2::affectedRows()
Gets the number of rows affected by the last query.
DB_ldap2::base()
DB_ldap2::connect()
Connect and bind to LDAPv2 server with either anonymous or authenticated bind depending on dsn info
DB_ldap2::createSequence()
Create the sequence
DB_ldap2::disconnect()
Unbinds from LDAP server
DB_ldap2::dropSequence()
Drop a sequence
DB_ldap2::errorNative()
Get the native error code of the last error (if any) that occured on the current connection.
DB_ldap2::executeEmulateQuery()
Emulates the execute statement.
DB_ldap2::fetchInto()
Fetch a row and insert the data into an existing array.
DB_ldap2::fetchRow()
Fetch and return a row of data (it uses fetchInto for that)
DB_ldap2::freeResult()
Free the internal resources associated with $result.
DB_ldap2::getListOf()
Returns the query needed to get some backend info. This function is used only for compatibility reasons.
DB_ldap2::getTables()
DB_ldap2::isManip()
Tell whether an action is a data manipulation action (add, compare, delete, modify, mod_add, mod_del, mod_replace, rename)
DB_ldap2::ldapExplodeDN()
Splits the DN and breaks it up into its component parts.
DB_ldap2::ldapGetOption()
Gets the current value for given option.
DB_ldap2::ldapGetParam()
Gets the default parameters for query.
DB_ldap2::ldapRaiseError()
Generate error message for LDAP errors.
DB_ldap2::ldapSetAction()
DB_ldap2::ldapSetBaseDN()
DB_ldap2::ldapSetOption()
Sets the value of the given option.
DB_ldap2::ldapSetParam()
Sets the default parameters for query.
DB_ldap2::nextId()
Get the next value in a sequence.
DB_ldap2::nextResult()
Move the internal ldap result pointer to the next available result
DB_ldap2::numCols()
Get the number of columns in a result set. This function is used only for compatibility reasons.
DB_ldap2::numRows()
Get the number of rows in a result set.
DB_ldap2::prepare()
Prepares a query for multiple execution with execute().
DB_ldap2::quote()
Quote the given string so it can be safely used within string delimiters in a query.
DB_ldap2::simpleQuery()
Performs a request against the LDAP server

Class Details

[line 39]
LDAP3 DB interface class

DB_ldap3 extends DB_ldap2 to provide DB compliant access to LDAP servers with protocol version 3.



[ Top ]


Method Detail

connect   [line 60]

int connect( $dsn $dsninfo, [boolean $persistent = false])

Connect and bind to LDAPv3 server with either anonymous or authenticated bind depending on dsn info

The format of the supplied DSN:

ldap3://binddn:bindpw@host:port/basedn

I.e.:

ldap3://uid=dexter,ou=People,dc=example,dc=net:secret@127.0.0.1/dc=example,dc=net

  • Return: DB_OK if successfully connected. A DB error code is returned on failure.

Overrides DB_ldap2::connect() (Connect and bind to LDAPv2 server with either anonymous or authenticated bind depending on dsn info)

Parameters:

boolean   $persistent   —  kept for interface compatibility
$dsn   $dsninfo   —  the data source name (see DB::parseDSN for syntax)

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:41:27 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.