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

Class: DftkLdapConnection

Source Location: /ldap/dftk_ldap_connection.php

Class Overview

DftkLdapBase
   |
   --DftkLdapConnection

DFTK LDAP Connection Handling Class


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 45]
DFTK LDAP Connection Handling Class



Tags:

access:  public
author:  Duck <mailto:duck@DuckCorp.org>


[ Top ]


Class Methods


constructor DftkLdapConnection [line 149]

DftkLdapConnection DftkLdapConnection( object DftkDaTraceManager &$tracemgr)

Constructor



Tags:

access:  public


Parameters:

object DftkDaTraceManager   &$tracemgr   Trace Manager

[ Top ]

method add [line 473]

object DftkDaTrace &add( string $object, object DftkLdapEntries &$entries, integer $i)

Add an LDAP Object



Tags:

return:  Trace
access:  public


Parameters:

string   $object   DN of the Object
object DftkLdapEntries   &$entries   Object data
integer   $i   Number of the entry to Replace

[ Top ]

method bind [line 259]

object DftkDaTrace &bind( string $bind_dn, string $bind_passwd)

Log into an ldap server



Tags:

return:  Trace
access:  public


Parameters:

string   $bind_dn   dn of the user
string   $bind_passwd   password for the user

[ Top ]

method connect [line 199]

object DftkDaTrace &connect( string $server, [boolean $checkv3 = true])

Connect to an LDAP server



Tags:

return:  Trace
access:  public


Parameters:

string   $server   Server Name
boolean   $checkv3   Protocol version 3 needed ?

[ Top ]

method delete [line 490]

object DftkDaTrace &delete( string $object)

Delete an LDAP Object



Tags:

return:  Trace
access:  public


Parameters:

string   $object   DN of the Object

[ Top ]

method disconnect [line 234]

object DftkDaTrace &disconnect( )

Disconnect from an LDAP server



Tags:

return:  Trace
access:  public


[ Top ]

method get_user_type [line 357]

object DftkDaTrace &get_user_type( )

Give the user type (Admin/Common/Service)



Tags:

return:  Trace
access:  public


[ Top ]

method modify [line 444]

object DftkDaTrace &modify( string $object, object DftkLdapEntries &$entries, integer $i, [array $attr_list = array()])

Modify an LDAP Object



Tags:

return:  Trace
access:  public


Parameters:

string   $object   DN of the Object
object DftkLdapEntries   &$entries   Object data
integer   $i   Number of the entry to Replace
array   $attr_list   List of Attributes to Replace

[ Top ]

method rename [line 513]

object DftkDaTrace &rename( string $object, string $new_object)

Rename an LDAP Object



Tags:

return:  Trace
access:  public


Parameters:

string   $object   DN of the Object
string   $new_object   New DN of the Object

[ Top ]

method search [line 378]

object DftkDaTrace &search( string $base, string $search, object DftkLdapEntries &$entries, [array $attr = array()], [boolean $subtree = true])

Search in the LDAP Database



Tags:

return:  Trace
access:  public


Parameters:

string   $base   DN where to begin the search
string   $search   Search pattern
object DftkLdapEntries   &$entries   Object where to put results
array   $attr   Array of attribut keys to fetch
boolean   $subtree   Search in subtrees ?

[ Top ]

method set_wrapping_parameter [line 290]

object DftkDaTrace &set_wrapping_parameter( string $base_dn, string $user_part_dn, string $commonuser_part_dn, string $adminuser_part_dn, string $serviceuser_part_dn)

Set helping parameters



Tags:

return:  Trace
access:  public


Parameters:

string   $base_dn   DN of the root node of LDAP
string   $user_part_dn   Part of the DN to add to find all the users
string   $commonuser_part_dn   Part of the DN to add to find the common users
string   $adminuser_part_dn   Part of the DN to add to find the admin users
string   $serviceuser_part_dn   Part of the DN to add to find the service users

[ Top ]

method w_bind [line 312]

object DftkDaTrace &w_bind( string $bind_user, string $bind_passwd)

Log into an ldap server



Tags:

return:  Trace
access:  public


Parameters:

string   $bind_user   UID for the user
string   $bind_passwd   password for the user

[ Top ]

method w_search [line 422]

object DftkDaTrace &w_search( string $search, object DftkLdapEntries &$entries, [array $attr = array()], [boolean $subtree = true])

Search in all the LDAP Database



Tags:

return:  Trace
access:  public


Parameters:

string   $search   Search pattern
object DftkLdapEntries   &$entries   Object where to put results
array   $attr   Array of attribut keys to fetch
boolean   $subtree   Search in subtrees ?

[ Top ]


Documentation generated on Sat, 6 Dec 2003 13:47:39 +0100 by phpDocumentor 1.2.3