Difference between revisions of "JLDAP"
From Joomla! Documentation
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | =={{JVer|11.1}} JLDAP== | ||
+ | ===Description=== | ||
+ | {{Description:JLDAP}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JLDAP|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JLDAP|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
+ | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::__construct/11.1|__construct]] | |[[JLDAP::__construct/11.1|__construct]] | ||
|Constructor. | |Constructor. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::add/11.1|add]] | |[[JLDAP::add/11.1|add]] | ||
|Add an attribute to the given DN Note: DN has to exist already. | |Add an attribute to the given DN Note: DN has to exist already. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::anonymous_bind/11.1|anonymous_bind]] | |[[JLDAP::anonymous_bind/11.1|anonymous_bind]] | ||
|Anonymously binds to LDAP directory. | |Anonymously binds to LDAP directory. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::bind/11.1|bind]] | |[[JLDAP::bind/11.1|bind]] | ||
|Binds to the LDAP directory. | |Binds to the LDAP directory. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::close/11.1|close]] | |[[JLDAP::close/11.1|close]] | ||
|Close the connection. | |Close the connection. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::compare/11.1|compare]] | |[[JLDAP::compare/11.1|compare]] | ||
|Compare an entry and return a true or false result. | |Compare an entry and return a true or false result. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::connect/11.1|connect]] | |[[JLDAP::connect/11.1|connect]] | ||
|Connect to server. | |Connect to server. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::create/11.1|create]] | |[[JLDAP::create/11.1|create]] | ||
|Create a new DN. | |Create a new DN. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::delete/11.1|delete]] | |[[JLDAP::delete/11.1|delete]] | ||
|Deletes a given DN from the tree. | |Deletes a given DN from the tree. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::generatePassword/11.1|generatePassword]] | |[[JLDAP::generatePassword/11.1|generatePassword]] | ||
|Generates a LDAP compatible password. | |Generates a LDAP compatible password. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::getDN/11.1|getDN]] | |[[JLDAP::getDN/11.1|getDN]] | ||
| | | | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::getErrorMsg/11.1|getErrorMsg]] | |[[JLDAP::getErrorMsg/11.1|getErrorMsg]] | ||
|Returns the error message. | |Returns the error message. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::ipToNetAddress/11.1|ipToNetAddress]] | |[[JLDAP::ipToNetAddress/11.1|ipToNetAddress]] | ||
|Converts a dot notation IP address to net address (e.g. | |Converts a dot notation IP address to net address (e.g. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::LDAPNetAddr/11.1|LDAPNetAddr]] | |[[JLDAP::LDAPNetAddr/11.1|LDAPNetAddr]] | ||
|extract readable network address from the LDAP encoded networkAddress attribute. | |extract readable network address from the LDAP encoded networkAddress attribute. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::modify/11.1|modify]] | |[[JLDAP::modify/11.1|modify]] | ||
|Modifies an entry and return a true or false result. | |Modifies an entry and return a true or false result. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::read/11.1|read]] | |[[JLDAP::read/11.1|read]] | ||
|Read all or specified attributes of given dn. | |Read all or specified attributes of given dn. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::remove/11.1|remove]] | |[[JLDAP::remove/11.1|remove]] | ||
|Removes attribute value from given dn and return a true or false result. | |Removes attribute value from given dn and return a true or false result. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::rename/11.1|rename]] | |[[JLDAP::rename/11.1|rename]] | ||
|Rename the entry. | |Rename the entry. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::replace/11.1|replace]] | |[[JLDAP::replace/11.1|replace]] | ||
|Replace an entry and return a true or false result. | |Replace an entry and return a true or false result. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::search/11.1|search]] | |[[JLDAP::search/11.1|search]] | ||
|Perform an LDAP search. | |Perform an LDAP search. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::setDN/11.1|setDN]] | |[[JLDAP::setDN/11.1|setDN]] | ||
|Sets the DN with some template replacements. | |Sets the DN with some template replacements. | ||
|- | |- | ||
+ | |public | ||
|[[JLDAP::simple_search/11.1|simple_search]] | |[[JLDAP::simple_search/11.1|simple_search]] | ||
|Perform an LDAP search using comma seperated search strings. | |Perform an LDAP search using comma seperated search strings. | ||
|- | |- | ||
|} | |} | ||
+ | * '''Defined in''' libraries/joomla/client/ldap.php | ||
+ | * '''Extends''' [[JObject/11.1|JObject]] | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.client.ldap' );</source> | <source lang="php">jimport( 'joomla.client.ldap' );</source> | ||
===See also=== | ===See also=== | ||
− | * JLDAP source code | + | * {{JVer|11.1}} '''JLDAP source code''' on [[jplatform:client/ldap.php|BitBucket]] |
− | * [[JLDAP|Other versions of | + | * {{JVer|11.1}} Subpackage [[Subpackage Client/11.1|Client]] |
+ | * [[JLDAP|Other versions of JLDAP]] | ||
{{SeeAlso:JLDAP}} | {{SeeAlso:JLDAP}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JLDAP|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JLDAP|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | === | + | ===User contributed notes=== |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 102: | Line 122: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JLDAP]]</noinclude> | <noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JLDAP]]</noinclude> |
Revision as of 18:05, 27 April 2011
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JLDAP[edit]
Description[edit]
Template:Description:JLDAP [Edit Descripton]
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public | __construct | Constructor. |
public | add | Add an attribute to the given DN Note: DN has to exist already. |
public | anonymous_bind | Anonymously binds to LDAP directory. |
public | bind | Binds to the LDAP directory. |
public | close | Close the connection. |
public | compare | Compare an entry and return a true or false result. |
public | connect | Connect to server. |
public | create | Create a new DN. |
public | delete | Deletes a given DN from the tree. |
public | generatePassword | Generates a LDAP compatible password. |
public | getDN | |
public | getErrorMsg | Returns the error message. |
public | ipToNetAddress | Converts a dot notation IP address to net address (e.g. |
public | LDAPNetAddr | extract readable network address from the LDAP encoded networkAddress attribute. |
public | modify | Modifies an entry and return a true or false result. |
public | read | Read all or specified attributes of given dn. |
public | remove | Removes attribute value from given dn and return a true or false result. |
public | rename | Rename the entry. |
public | replace | Replace an entry and return a true or false result. |
public | search | Perform an LDAP search. |
public | setDN | Sets the DN with some template replacements. |
public | simple_search | Perform an LDAP search using comma seperated search strings. |
- Defined in libraries/joomla/client/ldap.php
- Extends JObject
Importing[edit]
jimport( 'joomla.client.ldap' );
See also[edit]
- JLDAP source code on BitBucket
- Subpackage Client
- Other versions of JLDAP
Template:SeeAlso:JLDAP [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />