Public Method Details |
Ldap |
public void Ldap( [ string $binddn, string $bindpw, string $hostname ] )
|
|
Class constructor
|
Parameter |
|
string |
$binddn |
= >>""<< |
|
dn for the bind (kind of username) |
|
|
string |
$bindpw |
= >>""<< |
|
passwd used for the bind |
|
|
string |
$hostname |
= >>""<< |
|
hostname of the LDAP server |
|
Returns |
void |
|
setLDAPHost |
public void setLDAPHost( string $hostname )
|
|
Sets hostname of LDAP server, never used
|
Parameter |
|
|
Returns |
void |
|
getLDAPHost |
public string getLDAPHost( string $hostname )
|
|
Returns hostname of LDAP server, never used
|
Parameter |
|
string |
$hostname |
|
|
an accessor????? |
|
Returns |
string |
|
setBindDN |
public void setBindDN( string $binddn )
|
|
sets distinguished name for the bind
|
Parameter |
|
|
Returns |
void |
|
getBindDN |
public string getBindDN( string $binddn )
|
|
Returns distinguished name for the bind
|
Parameter |
|
string |
$binddn |
|
|
an accessor????? |
|
Returns |
string |
|
setBaseDN |
public void setBaseDN( string $basedn )
|
|
Sets base distinguished name
|
Parameter |
|
|
Returns |
void |
|
getBaseDN |
public string getBaseDN( string $basedn )
|
|
Returns base distinguished name
|
Parameter |
|
string |
$basedn |
|
|
an accessor????? |
|
Returns |
string |
|
setBindPassword |
public void setBindPassword( string $bindpw )
|
|
Sets bind password
|
Parameter |
|
|
Returns |
void |
|
getBindPassword |
public string getBindPassword( string $bindpw )
|
|
Returns bind password
|
Parameter |
|
string |
$bindpw |
|
|
an accessor????? |
|
Returns |
string |
|
cd |
public void cd( string $dir )
|
|
Sets current directory to $dir
|
Parameter |
|
|
Returns |
void |
|
getParentDir |
public string getParentDir( [ string $basedn ] )
|
|
Returns the name of the parent level in LDAP hierarchy.
|
Parameter |
|
string |
$basedn |
= >>""<< |
|
to compute parent. |
|
Returns |
string |
|
disconnect |
public void disconnect( )
|
|
Closes the connexion to the LDAP server, never used?!
|
Returns |
void |
|
search |
public integer search( string $filter )
|
|
Performs a search in the directory.
This is quite poorly written...
|
Parameter |
|
string |
$filter |
|
|
filter for the search |
|
Returns |
integer a search result identifier or 0 on failure. |
|
ls |
public void ls( [ string $filter, string $basedn ] )
|
|
Lists all objects at the current level of LDAP hierarchy., never used
|
Parameter |
|
string |
$filter |
= >>"(objectclass=*)"<< |
|
filter for the search |
|
|
string |
$basedn |
= >>""<< |
|
base dn to use, if not the current one. |
|
Returns |
void |
|
cat |
public integer cat( string $dn )
|
|
Read an entry in the directory, never used
|
Parameter |
|
string |
$dn |
|
|
dn of the object |
|
Returns |
integer a search result identifier or 0 on error. |
|
fetch |
public array fetch( )
|
|
Fetches an entry in the current result set.
|
Returns |
array the attributes of the entry |
|
resetResult |
public void resetResult( )
|
|
resets the array of results
|
Returns |
void |
|
getDN |
public string getDN( )
|
|
Gets dn of current result entry
|
Returns |
string |
|
count |
public void count( )
|
|
Counts the number of entries in result set
|
Returns |
void |
|
mkdir |
public boolean mkdir( string $attrname, string $dirname, [ string $basedn ] )
|
|
Add a new entry in directory of objectClass top
|
Parameter |
|
string |
$attrname |
|
|
of the attribute (for the DN) |
|
|
string |
$dirname |
|
|
of the entry (for the DN) |
|
|
string |
$basedn |
= >>""<< |
|
where to add entry |
|
Returns |
boolean true on success |
|
rm |
public boolean rm( [ mixed $attrs, string $dn ] )
|
|
Deletes attributes of entry
|
Parameter |
|
mixed |
$attrs |
= >>""<< |
|
or empty string |
|
|
string |
$dn |
= >>""<< |
|
entry (default: current entry) |
|
Returns |
boolean true on success |
|
rename |
public boolean rename( array $attrs, [ string $dn ] )
|
|
Replaces attributes for specified DN
Wrapper for ldap_mod_replace
|
Parameter |
|
array |
$attrs |
|
|
arrtibutes to set |
|
|
string |
$dn |
= >>""<< |
|
dn; current one if empty. |
|
Returns |
boolean true on success |
|
rmdir |
public boolean rmdir( string $deletedn )
|
|
Deletes an entry form directory
|
Parameter |
|
string |
$deletedn |
|
|
to delete. NO DEFAULT |
|
Returns |
boolean true on success |
|
modify |
public boolean modify( string $attrs )
|
|
Modifies the current entry
|
Parameter |
|
|
Returns |
boolean true on success |
|