JLDAP/bind: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Binds to the LDAP directory
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>... |
m removing red link to edit, no existant pages |
||
| Line 3: | Line 3: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Syntax=== | ===Syntax=== | ||
| Line 56: | Line 56: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Examples=== | ===Examples=== | ||
| Line 71: | Line 71: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
[[Category:Archived pages API16]] | |||
Revision as of 03:04, 14 May 2013
Description
Binds to the LDAP directory
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
bind($username=null, $password=null, $nosub=0)
| Parameter Name | Default Value | Description |
|---|---|---|
| $username | null | The username |
| $password | null | The password |
| $nosub | 0 |
Returns
boolean Result public
Defined in
libraries/joomla/client/ldap.php
Importing
jimport( 'joomla.client.ldap' );
Source Body
function bind($username = null, $password = null, $nosub = 0)
{
if (is_null($username)) {
$username = $this->username;
}
if (is_null($password)) {
$password = $this->password;
}
$this->setDN($username,$nosub);
//if (strlen($this->getDN()))
$bindResult = @ldap_bind($this->_resource, $this->getDN(), $password);
return $bindResult;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />