|
| __construct ($configObj=null) |
|
| __destruct () |
|
| connect () |
|
| close () |
|
| setDn ($username, $nosub=0) |
|
| getDn () |
|
| anonymous_bind () |
|
| bind ($username=null, $password=null, $nosub=0) |
|
| unbind () |
|
| simple_search ($search) |
|
| search (array $filters, $dnoverride=null, array $attributes=array()) |
|
| replace ($dn, $attribute) |
|
| modify ($dn, $attribute) |
|
| remove ($dn, $attribute) |
|
| compare ($dn, $attribute, $value) |
|
| read ($dn) |
|
| delete ($dn) |
|
| create ($dn, array $entries) |
|
| add ($dn, array $entry) |
|
| rename ($dn, $newdn, $newparent, $deleteolddn) |
|
| escape ($value, $ignore='', $flags=0) |
|
| getErrorMsg () |
|
| isConnected () |
|
LDAP client class
- Depuis
- 1.0
- Obsolète:
- The joomla/ldap package is deprecated
◆ __construct()
__construct |
( |
|
$configObj = null | ) |
|
Constructor
- Paramètres
-
object | $configObj | An object of configuration variables |
- Depuis
- 1.0
Références $this.
◆ __destruct()
◆ add()
add |
( |
|
$dn, |
|
|
array |
$entry |
|
) |
| |
Add attribute values to current attributes
- Paramètres
-
string | $dn | The DN of the entry to add the attribute |
array | $entry | An array of arrays with attributes to add |
- Renvoie
- boolean
- Depuis
- 1.0
Références LdapClient\$dn, et LdapClient\isConnected().
◆ anonymous_bind()
◆ bind()
bind |
( |
|
$username = null , |
|
|
|
$password = null , |
|
|
|
$nosub = 0 |
|
) |
| |
◆ close()
◆ compare()
compare |
( |
|
$dn, |
|
|
|
$attribute, |
|
|
|
$value |
|
) |
| |
Compare value of attribute found in entry specified with DN
- Paramètres
-
string | $dn | The DN which contains the attribute you want to compare |
string | $attribute | The attribute whose value you want to compare |
string | $value | The value you want to check against the LDAP attribute |
- Renvoie
- boolean|integer Boolean result of the comparison or -1 on error
- Depuis
- 1.0
Références LdapClient\$dn, $value, et LdapClient\isConnected().
◆ connect()
◆ create()
create |
( |
|
$dn, |
|
|
array |
$entries |
|
) |
| |
Add entries to LDAP directory
- Paramètres
-
string | $dn | The DN where you want to put the object |
array | $entries | An array of arrays describing the object to add |
- Renvoie
- boolean
- Depuis
- 1.0
Références LdapClient\$dn, et LdapClient\isConnected().
◆ delete()
◆ escape()
escape |
( |
|
$value, |
|
|
|
$ignore = '' , |
|
|
|
$flags = 0 |
|
) |
| |
Escape a string
- Paramètres
-
string | $value | The subject string |
string | $ignore | Characters to ignore when escaping. |
integer | $flags | The context the escaped string will be used in LDAP_ESCAPE_FILTER or LDAP_ESCAPE_DN |
- Renvoie
- string
- Depuis
- 1.2.0
Références $value.
◆ generatePassword()
static generatePassword |
( |
|
$password, |
|
|
|
$type = 'md5' |
|
) |
| |
|
static |
Generates a LDAP compatible password
- Paramètres
-
string | $password | Clear text password to encrypt |
string | $type | Type of password hash, either md5 or SHA |
- Renvoie
- string
- Depuis
- 1.0
Références LdapClient\$password, et $type.
◆ getDn()
◆ getErrorMsg()
◆ ipToNetAddress()
static ipToNetAddress |
( |
|
$ip | ) |
|
|
static |
Converts a dot notation IP address to net address (e.g. for Netware, etc)
- Paramètres
-
string | $ip | IP Address (e.g. xxx.xxx.xxx.xxx) |
- Renvoie
- string
- Depuis
- 1.0
Références $parts, et $tmp.
◆ isConnected()
Check if the connection is established
- Renvoie
- boolean
- Depuis
- 1.3.0
Référencé par LdapClient\add(), LdapClient\anonymous_bind(), LdapClient\bind(), LdapClient\close(), LdapClient\compare(), LdapClient\create(), LdapClient\delete(), LdapClient\getErrorMsg(), LdapClient\modify(), LdapClient\read(), LdapClient\remove(), LdapClient\rename(), LdapClient\replace(), et LdapClient\search().
◆ ldapNetAddr()
static ldapNetAddr |
( |
|
$networkaddress | ) |
|
|
static |
Extract readable network address from the LDAP encoded networkAddress attribute.
Please keep this document block and author attribution in place.
Novell Docs, see: http://developer.novell.com/ndk/doc/ndslib/schm_enu/data/sdk5624.html#sdk5624 for Address types: http://developer.novell.com/ndk/doc/ndslib/index.html?page=/ndk/doc/ndslib/schm_enu/data/sdk4170.html LDAP Format, String: taggedData = uint32String "#" octetstring byte 0 = uint32String = Address Type: 0= IPX Address; 1 = IP Address byte 1 = char = "#" - separator byte 2+ = octetstring - the ordinal value of the address Note: with eDirectory 8.6.2, the IP address (type 1) returns correctly, however, an IPX address does not seem to. eDir 8.7 may correct this. Enhancement made by Merijn van de Schoot: If addresstype is 8 (UDP) or 9 (TCP) do some additional parsing like still returning the IP address
- Paramètres
-
string | $networkaddress | The network address |
- Renvoie
- array
- Auteur
- Jay Burrell, Systems & Networks, Mississippi State University
- Depuis
- 1.0
Références $i.
◆ modify()
modify |
( |
|
$dn, |
|
|
|
$attribute |
|
) |
| |
Modify an LDAP entry
- Paramètres
-
string | $dn | The DN which contains the attribute you want to modify |
string | $attribute | The attribute values you want to modify |
- Renvoie
- boolean
- Depuis
- 1.0
Références LdapClient\$dn, et LdapClient\isConnected().
◆ read()
Read attributes of a given DN
- Paramètres
-
string | $dn | The DN of the object you want to read |
- Renvoie
- array|boolean Array of attributes for the given DN or boolean false on failure
- Depuis
- 1.0
Références $base, LdapClient\$dn, $result, et LdapClient\isConnected().
◆ remove()
remove |
( |
|
$dn, |
|
|
|
$attribute |
|
) |
| |
Delete attribute values from current attributes
- Paramètres
-
string | $dn | The DN which contains the attribute you want to remove |
string | $attribute | The attribute values you want to remove |
- Renvoie
- boolean
- Depuis
- 1.0
Références LdapClient\$dn, et LdapClient\isConnected().
◆ rename()
rename |
( |
|
$dn, |
|
|
|
$newdn, |
|
|
|
$newparent, |
|
|
|
$deleteolddn |
|
) |
| |
Modify the name of an entry
- Paramètres
-
string | $dn | The DN of the entry at the moment |
string | $newdn | The DN of the entry should be (only cn=newvalue) |
string | $newparent | The full DN of the parent (null by default) |
boolean | $deleteolddn | Delete the old values (default) |
- Renvoie
- boolean
- Depuis
- 1.0
Références LdapClient\$dn, et LdapClient\isConnected().
◆ replace()
replace |
( |
|
$dn, |
|
|
|
$attribute |
|
) |
| |
Replace attribute values with new ones
- Paramètres
-
string | $dn | The DN which contains the attribute you want to replace |
string | $attribute | The attribute values you want to replace |
- Renvoie
- boolean
- Depuis
- 1.0
Références LdapClient\$dn, et LdapClient\isConnected().
◆ search()
search |
( |
array |
$filters, |
|
|
|
$dnoverride = null , |
|
|
array |
$attributes = array() |
|
) |
| |
◆ setDn()
setDn |
( |
|
$username, |
|
|
|
$nosub = 0 |
|
) |
| |
◆ simple_search()
Perform an LDAP search using comma separated search strings
- Paramètres
-
string | $search | search string of search values |
- Renvoie
- array Search results
- Depuis
- 1.0
Références $key, $result, $results, et LdapClient\search().
◆ unbind()
Unbinds from the LDAP directory
- Renvoie
- boolean
- Depuis
- 1.3.0
Référencé par LdapClient\close().
◆ $auth_method
◆ $base_dn
◆ $dn
Référencé par LdapClient\add(), LdapClient\compare(), LdapClient\create(), LdapClient\delete(), LdapClient\getDn(), LdapClient\modify(), LdapClient\read(), LdapClient\remove(), LdapClient\rename(), LdapClient\replace(), et LdapClient\search().
◆ $host
◆ $isBound
◆ $negotiate_tls
◆ $no_referrals
◆ $password
◆ $port
◆ $resource
◆ $search_string
◆ $use_ldapV3
◆ $username
◆ $users_dn
La documentation de cette classe a été générée à partir du fichier suivant :