2006-11-15 17:12:15 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Docs For Class Ldap</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../media/style.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
|
|
|
|
<tr>
|
|
|
|
<td class="header_top">LDAP</td>
|
|
|
|
</tr>
|
|
|
|
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
|
|
|
|
<tr>
|
|
|
|
<td class="header_menu">
|
2007-11-04 11:19:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
[ <a href="../classtrees_LDAP.html" class="menu">class tree: LDAP</a> ]
|
2006-11-15 17:12:15 +00:00
|
|
|
[ <a href="../elementindex_LDAP.html" class="menu">index: LDAP</a> ]
|
2007-11-04 11:19:11 +00:00
|
|
|
[ <a href="../elementindex.html" class="menu">all elements</a> ]
|
2006-11-15 17:12:15 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="200" class="menu">
|
|
|
|
<div id="ric">
|
|
|
|
<p><a href="../ric_INSTALL.html">INSTALL</a></p>
|
2007-11-04 11:19:11 +00:00
|
|
|
<p><a href="../ric_README.html">README</a></p>
|
2006-11-15 17:12:15 +00:00
|
|
|
</div>
|
|
|
|
<b>Packages:</b><br />
|
|
|
|
<a href="../li_configuration.html">configuration</a><br />
|
|
|
|
<a href="../li_Help.html">Help</a><br />
|
|
|
|
<a href="../li_LDAP.html">LDAP</a><br />
|
|
|
|
<a href="../li_lib.html">lib</a><br />
|
|
|
|
<a href="../li_lists.html">lists</a><br />
|
|
|
|
<a href="../li_main.html">main</a><br />
|
|
|
|
<a href="../li_modules.html">modules</a><br />
|
|
|
|
<a href="../li_PDF.html">PDF</a><br />
|
|
|
|
<a href="../li_profiles.html">profiles</a><br />
|
|
|
|
<a href="../li_selfService.html">selfService</a><br />
|
|
|
|
<a href="../li_tests.html">tests</a><br />
|
|
|
|
<a href="../li_tools.html">tools</a><br />
|
|
|
|
<a href="../li_types.html">types</a><br />
|
|
|
|
<br /><br />
|
|
|
|
<b>Files:</b><br />
|
|
|
|
<div class="package">
|
2007-11-04 11:19:11 +00:00
|
|
|
<a href="../LDAP/_lib---ldap.inc.html"> ldap.inc
|
2006-11-15 17:12:15 +00:00
|
|
|
</a><br>
|
|
|
|
</div><br />
|
2007-11-04 11:19:11 +00:00
|
|
|
|
2006-11-15 17:12:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
<b>Classes:</b><br />
|
|
|
|
<div class="package">
|
|
|
|
<a href="../LDAP/Ldap.html">Ldap</a><br />
|
|
|
|
</div>
|
2007-11-04 11:19:11 +00:00
|
|
|
|
2006-11-15 17:12:15 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
|
|
|
|
|
|
|
|
<h1>Class: Ldap</h1>
|
|
|
|
Source Location: /lib/ldap.inc<br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
<table width="100%" border="0">
|
|
|
|
<tr><td valign="top">
|
|
|
|
|
|
|
|
<h3><a href="#class_details">Class Overview</a></h3>
|
|
|
|
<pre></pre><br />
|
|
|
|
<div class="description">Ldap manages connection to LDAP and includes several helper functions.</div><br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td valign="top">
|
|
|
|
<h3><a href="#class_vars">Variables</a></h3>
|
|
|
|
<ul>
|
|
|
|
<li><a href="../LDAP/Ldap.html#var$supports_unix_hosts">$supports_unix_hosts</a></li>
|
|
|
|
</ul>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td valign="top">
|
|
|
|
<h3><a href="#class_methods">Methods</a></h3>
|
|
|
|
<ul>
|
|
|
|
<li><a href="../LDAP/Ldap.html#methodLdap">Ldap</a></li>
|
|
|
|
<li><a href="../LDAP/Ldap.html#methodclose">close</a></li>
|
|
|
|
<li><a href="../LDAP/Ldap.html#methodcmp_array">cmp_array</a></li>
|
|
|
|
<li><a href="../LDAP/Ldap.html#methodconnect">connect</a></li>
|
|
|
|
<li><a href="../LDAP/Ldap.html#methoddecrypt">decrypt</a></li>
|
|
|
|
<li><a href="../LDAP/Ldap.html#methoddecrypt_login">decrypt_login</a></li>
|
|
|
|
<li><a href="../LDAP/Ldap.html#methoddestroy">destroy</a></li>
|
|
|
|
<li><a href="../LDAP/Ldap.html#methodencrypt">encrypt</a></li>
|
|
|
|
<li><a href="../LDAP/Ldap.html#methodencrypt_login">encrypt_login</a></li>
|
|
|
|
<li><a href="../LDAP/Ldap.html#methodnew_rand">new_rand</a></li>
|
|
|
|
<li><a href="../LDAP/Ldap.html#methodsearch_units">search_units</a></li>
|
|
|
|
<li><a href="../LDAP/Ldap.html#methodserver">server</a></li>
|
|
|
|
<li><a href="../LDAP/Ldap.html#methodupdateCapabilities">updateCapabilities</a></li>
|
|
|
|
<li><a href="../LDAP/Ldap.html#methodupdateClasses">updateClasses</a></li>
|
|
|
|
<li><a href="../LDAP/Ldap.html#method__sleep">__sleep</a></li>
|
|
|
|
<li><a href="../LDAP/Ldap.html#method__wakeup">__wakeup</a></li>
|
|
|
|
</ul>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr></table>
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
<table width="100%" border="0"><tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</tr></table>
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
<a name="class_details"></a>
|
|
|
|
<h3>Class Details</h3>
|
|
|
|
<div class="tags">
|
|
|
|
[line 52]<br />
|
|
|
|
Ldap manages connection to LDAP and includes several helper functions.<br /><br /></div><br /><br />
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div><br />
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
<a name="class_vars"></a>
|
|
|
|
<h3>Class Variables</h3>
|
|
|
|
<div class="tags">
|
|
|
|
<a name="var$supports_unix_hosts"></a>
|
|
|
|
<p></p>
|
|
|
|
<h4>$supports_unix_hosts = <span class="value"> false</span></h4>
|
2007-11-04 11:19:11 +00:00
|
|
|
<p>[line 74]</p>
|
|
|
|
Host attribute in inetOrgPerson<br /><br /><br /><br />
|
|
|
|
<h4>Tags:</h4>
|
|
|
|
<div class="tags">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td><b>access:</b> </td><td>public</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2006-11-15 17:12:15 +00:00
|
|
|
<br />
|
|
|
|
<div class="tags">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td><b>Type:</b> </td>
|
|
|
|
<td>mixed</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div><br /><br />
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div><br />
|
|
|
|
</div><br />
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
<a name="class_methods"></a>
|
|
|
|
<h3>Class Methods</h3>
|
|
|
|
<div class="tags">
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
<a name="methodLdap"></a>
|
2007-11-04 11:19:11 +00:00
|
|
|
<h3>constructor Ldap <span class="smalllinenumber">[line 82]</span></h3>
|
2006-11-15 17:12:15 +00:00
|
|
|
<div class="function">
|
|
|
|
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
|
<code>Ldap Ldap(
|
|
|
|
object
|
|
|
|
$config)</code>
|
|
|
|
</td></tr></table>
|
|
|
|
</td></tr></table><br />
|
|
|
|
|
|
|
|
<br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
<h4>Parameters:</h4>
|
|
|
|
<div class="tags">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td class="type">object </td>
|
|
|
|
<td><b>$config</b> </td>
|
|
|
|
<td>an object of class Config</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div><br />
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<a name="methodclose"></a>
|
2007-11-04 11:19:11 +00:00
|
|
|
<h3>method close <span class="smalllinenumber">[line 144]</span></h3>
|
2006-11-15 17:12:15 +00:00
|
|
|
<div class="function">
|
|
|
|
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
|
<code>void close(
|
|
|
|
)</code>
|
|
|
|
</td></tr></table>
|
|
|
|
</td></tr></table><br />
|
|
|
|
|
|
|
|
Closes connection to server<br /><br /><br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<a name="methodcmp_array"></a>
|
2007-11-04 11:19:11 +00:00
|
|
|
<h3>method cmp_array <span class="smalllinenumber">[line 440]</span></h3>
|
2006-11-15 17:12:15 +00:00
|
|
|
<div class="function">
|
|
|
|
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
|
<code>integer cmp_array(
|
|
|
|
string
|
|
|
|
$a, string
|
|
|
|
$b)</code>
|
|
|
|
</td></tr></table>
|
|
|
|
</td></tr></table><br />
|
|
|
|
|
|
|
|
Helper function to sort the unit DNs<br /><br /><br /><br />
|
|
|
|
<h4>Tags:</h4>
|
|
|
|
<div class="tags">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td><b>return:</b> </td><td>0 if equal, 1 if $a is greater, -1 if $b is greater</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
<h4>Parameters:</h4>
|
|
|
|
<div class="tags">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td class="type">string </td>
|
|
|
|
<td><b>$a</b> </td>
|
|
|
|
<td>first argument to compare</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="type">string </td>
|
|
|
|
<td><b>$b</b> </td>
|
|
|
|
<td>second argument to compare</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div><br />
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<a name="methodconnect"></a>
|
2007-11-04 11:19:11 +00:00
|
|
|
<h3>method connect <span class="smalllinenumber">[line 98]</span></h3>
|
2006-11-15 17:12:15 +00:00
|
|
|
<div class="function">
|
|
|
|
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
|
<code>mixed connect(
|
|
|
|
string
|
|
|
|
$user, string
|
|
|
|
$passwd)</code>
|
|
|
|
</td></tr></table>
|
|
|
|
</td></tr></table><br />
|
|
|
|
|
|
|
|
Connects to the server using the given username and password<br /><br /><br /><br />
|
|
|
|
<h4>Tags:</h4>
|
|
|
|
<div class="tags">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td><b>return:</b> </td><td>if connect succeeds the server handle is returned, else false</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
<h4>Parameters:</h4>
|
|
|
|
<div class="tags">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td class="type">string </td>
|
|
|
|
<td><b>$user</b> </td>
|
|
|
|
<td>user name</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="type">string </td>
|
|
|
|
<td><b>$passwd</b> </td>
|
|
|
|
<td>password</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div><br />
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<a name="methoddecrypt"></a>
|
2007-11-04 11:19:11 +00:00
|
|
|
<h3>method decrypt <span class="smalllinenumber">[line 381]</span></h3>
|
2006-11-15 17:12:15 +00:00
|
|
|
<div class="function">
|
|
|
|
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
|
<code>string decrypt(
|
|
|
|
object
|
|
|
|
$data)</code>
|
|
|
|
</td></tr></table>
|
|
|
|
</td></tr></table><br />
|
|
|
|
|
|
|
|
Decrypts a string<br /><br /><br /><br />
|
|
|
|
<h4>Tags:</h4>
|
|
|
|
<div class="tags">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td><b>return:</b> </td><td>decrypted string</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
<h4>Parameters:</h4>
|
|
|
|
<div class="tags">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td class="type">object </td>
|
|
|
|
<td><b>$data</b> </td>
|
|
|
|
<td>string to decrypt</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div><br />
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<a name="methoddecrypt_login"></a>
|
2007-11-04 11:19:11 +00:00
|
|
|
<h3>method decrypt_login <span class="smalllinenumber">[line 417]</span></h3>
|
2006-11-15 17:12:15 +00:00
|
|
|
<div class="function">
|
|
|
|
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
|
<code>array decrypt_login(
|
|
|
|
)</code>
|
|
|
|
</td></tr></table>
|
|
|
|
</td></tr></table><br />
|
|
|
|
|
|
|
|
Decrypts username and password<br /><br /><br /><br />
|
|
|
|
<h4>Tags:</h4>
|
|
|
|
<div class="tags">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td><b>return:</b> </td><td>array(user name, password)</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<a name="methoddestroy"></a>
|
2007-11-04 11:19:11 +00:00
|
|
|
<h3>method destroy <span class="smalllinenumber">[line 426]</span></h3>
|
2006-11-15 17:12:15 +00:00
|
|
|
<div class="function">
|
|
|
|
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
|
<code>void destroy(
|
|
|
|
)</code>
|
|
|
|
</td></tr></table>
|
|
|
|
</td></tr></table><br />
|
|
|
|
|
|
|
|
Closes connection to LDAP server and deletes encrypted username/password<br /><br /><br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<a name="methodencrypt"></a>
|
2007-11-04 11:19:11 +00:00
|
|
|
<h3>method encrypt <span class="smalllinenumber">[line 358]</span></h3>
|
2006-11-15 17:12:15 +00:00
|
|
|
<div class="function">
|
|
|
|
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
|
<code>object encrypted encrypt(
|
|
|
|
string
|
|
|
|
$data)</code>
|
|
|
|
</td></tr></table>
|
|
|
|
</td></tr></table><br />
|
|
|
|
|
|
|
|
Encrypts a string<br /><br /><br /><br />
|
|
|
|
<h4>Tags:</h4>
|
|
|
|
<div class="tags">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td><b>return:</b> </td><td>string</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
<h4>Parameters:</h4>
|
|
|
|
<div class="tags">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td class="type">string </td>
|
|
|
|
<td><b>$data</b> </td>
|
|
|
|
<td>string to encrypt</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div><br />
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<a name="methodencrypt_login"></a>
|
2007-11-04 11:19:11 +00:00
|
|
|
<h3>method encrypt_login <span class="smalllinenumber">[line 406]</span></h3>
|
2006-11-15 17:12:15 +00:00
|
|
|
<div class="function">
|
|
|
|
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
|
<code>void encrypt_login(
|
|
|
|
string
|
|
|
|
$username, string
|
|
|
|
$password)</code>
|
|
|
|
</td></tr></table>
|
|
|
|
</td></tr></table><br />
|
|
|
|
|
|
|
|
Encrypts username and password<br /><br /><br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
<h4>Parameters:</h4>
|
|
|
|
<div class="tags">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td class="type">string </td>
|
|
|
|
<td><b>$username</b> </td>
|
|
|
|
<td>LDAP user name</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="type">string </td>
|
|
|
|
<td><b>$password</b> </td>
|
|
|
|
<td>LDAP password</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div><br />
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<a name="methodnew_rand"></a>
|
2007-11-04 11:19:11 +00:00
|
|
|
<h3>method new_rand <span class="smalllinenumber">[line 344]</span></h3>
|
2006-11-15 17:12:15 +00:00
|
|
|
<div class="function">
|
|
|
|
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
|
<code>int new_rand(
|
|
|
|
)</code>
|
|
|
|
</td></tr></table>
|
|
|
|
</td></tr></table><br />
|
|
|
|
|
|
|
|
Calculates a new value for rand<br /><br /><br /><br />
|
|
|
|
<h4>Tags:</h4>
|
|
|
|
<div class="tags">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td><b>return:</b> </td><td>New random value</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<a name="methodsearch_units"></a>
|
2007-11-04 11:19:11 +00:00
|
|
|
<h3>method search_units <span class="smalllinenumber">[line 154]</span></h3>
|
2006-11-15 17:12:15 +00:00
|
|
|
<div class="function">
|
|
|
|
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
|
<code>array search_units(
|
|
|
|
string
|
|
|
|
$suffix)</code>
|
|
|
|
</td></tr></table>
|
|
|
|
</td></tr></table><br />
|
|
|
|
|
|
|
|
Returns an array with all organizational units under the given suffix<br /><br /><br /><br />
|
|
|
|
<h4>Tags:</h4>
|
|
|
|
<div class="tags">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td><b>return:</b> </td><td>DNs of organizational units</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
<h4>Parameters:</h4>
|
|
|
|
<div class="tags">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td class="type">string </td>
|
|
|
|
<td><b>$suffix</b> </td>
|
|
|
|
<td>search suffix</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div><br />
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<a name="methodserver"></a>
|
2007-11-04 11:19:11 +00:00
|
|
|
<h3>method server <span class="smalllinenumber">[line 297]</span></h3>
|
2006-11-15 17:12:15 +00:00
|
|
|
<div class="function">
|
|
|
|
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
|
<code>object connection server(
|
|
|
|
)</code>
|
|
|
|
</td></tr></table>
|
|
|
|
</td></tr></table><br />
|
|
|
|
|
|
|
|
Returns the LDAP connection handle<br /><br /><br /><br />
|
|
|
|
<h4>Tags:</h4>
|
|
|
|
<div class="tags">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td><b>return:</b> </td><td>handle</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<a name="methodupdateCapabilities"></a>
|
2007-11-04 11:19:11 +00:00
|
|
|
<h3>method updateCapabilities <span class="smalllinenumber">[line 284]</span></h3>
|
2006-11-15 17:12:15 +00:00
|
|
|
<div class="function">
|
|
|
|
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
|
<code>void updateCapabilities(
|
|
|
|
)</code>
|
|
|
|
</td></tr></table>
|
|
|
|
</td></tr></table><br />
|
|
|
|
|
|
|
|
Updates the capabilities values (var $supports_*)<br /><br /><br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<a name="methodupdateClasses"></a>
|
2007-11-04 11:19:11 +00:00
|
|
|
<h3>method updateClasses <span class="smalllinenumber">[line 181]</span></h3>
|
2006-11-15 17:12:15 +00:00
|
|
|
<div class="function">
|
|
|
|
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
|
<code>void updateClasses(
|
|
|
|
)</code>
|
|
|
|
</td></tr></table>
|
|
|
|
</td></tr></table><br />
|
|
|
|
|
|
|
|
Reads the array of objectClasses from the LDAP server<br /><br /><br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<a name="method__sleep"></a>
|
2007-11-04 11:19:11 +00:00
|
|
|
<h3>method __sleep <span class="smalllinenumber">[line 307]</span></h3>
|
2006-11-15 17:12:15 +00:00
|
|
|
<div class="function">
|
|
|
|
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
|
<code>void __sleep(
|
|
|
|
)</code>
|
|
|
|
</td></tr></table>
|
|
|
|
</td></tr></table><br />
|
|
|
|
|
|
|
|
Closes connection to LDAP server before serialization<br /><br /><br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<a name="method__wakeup"></a>
|
2007-11-04 11:19:11 +00:00
|
|
|
<h3>method __wakeup <span class="smalllinenumber">[line 315]</span></h3>
|
2006-11-15 17:12:15 +00:00
|
|
|
<div class="function">
|
|
|
|
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
|
<code>void __wakeup(
|
|
|
|
)</code>
|
|
|
|
</td></tr></table>
|
|
|
|
</td></tr></table><br />
|
|
|
|
|
|
|
|
Reconnects to LDAP server when deserialized<br /><br /><br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
|
</div>
|
|
|
|
</div><br />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="credit">
|
|
|
|
<hr />
|
2007-11-04 11:19:11 +00:00
|
|
|
Documentation generated on Sun, 04 Nov 2007 12:10:54 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.0</a>
|
2006-11-15 17:12:15 +00:00
|
|
|
</div>
|
|
|
|
</td></tr></table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|