diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2015-03-09 18:13:13 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2015-03-10 14:35:22 +0100 |
commit | 25400cb17e2e531266e0e1c7149800c3fa0609dd (patch) | |
tree | 23d813c1daa7c004e0456c8e132dac03dbf007c5 /lualdap/doc/us | |
parent | Link to version 1.0 (diff) | |
download | lualdap-25400cb17e2e531266e0e1c7149800c3fa0609dd.tar.xz lualdap-25400cb17e2e531266e0e1c7149800c3fa0609dd.zip |
Modernize project1.2.0
Diffstat (limited to 'lualdap/doc/us')
-rwxr-xr-x | lualdap/doc/us/index.html | 140 | ||||
-rwxr-xr-x | lualdap/doc/us/license.html | 122 | ||||
-rwxr-xr-x | lualdap/doc/us/lualdap.png | bin | 7868 -> 0 bytes | |||
-rwxr-xr-x | lualdap/doc/us/manual.html | 352 |
4 files changed, 0 insertions, 614 deletions
diff --git a/lualdap/doc/us/index.html b/lualdap/doc/us/index.html deleted file mode 100755 index f8bce95..0000000 --- a/lualdap/doc/us/index.html +++ /dev/null @@ -1,140 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -
-<head>
- <title>LuaLDAP: A Lua interface to an LDAP library</title>
- <link rel="stylesheet" href="http://www.keplerproject.org/doc.css" type="text/css"/>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-</head>
-
-<body>
-
-<div id="container">
-
-<div id="product">
- <div id="product_logo">
- <a href="http://www.keplerproject.org">
- <img alt="LuaLDAP logo" width="128" height="128" src="lualdap.png"/>
- </a>
- </div>
- <div id="product_name"><big><strong>LuaLDAP</strong></big></div>
- <div id="product_description">A Lua interface to an LDAP library</div>
-</div> <!-- id="product" -->
-
-<div id="main">
-
-<div id="navigation">
-<h1>LuaLDAP</h1>
- <ul>
- <li><strong>Home</strong>
- <ul>
- <li><a href="index.html#over">Overview</a></li>
- <li><a href="index.html#status">Status</a></li>
- <li><a href="index.html#download">Download</a></li>
- <li><a href="index.html#history">History</a></li>
- <li><a href="index.html#credits">Credits</a></li>
- <li><a href="index.html#contact">Contact us</a></li>
- </ul>
- </li>
- <li><a href="manual.html">Manual</a>
- <ul>
- <li><a href="manual.html#introduction">Introduction</a></li>
- <li><a href="manual.html#building">Building</a></li>
- <li><a href="manual.html#installation">Installation</a></li>
- <li><a href="manual.html#attributes">Attributes</a></li>
- <li><a href="manual.html#dn">DN</a></li>
- <li><a href="manual.html#initialization">Initialization</a></li>
- <li><a href="manual.html#connection">Connection</a></li>
- <li><a href="manual.html#examples">Examples</a></li>
- </ul>
- </li>
- <li><a href="http://luaforge.net/projects/lualdap/">Project</a>
- <ul>
- <li><a href="http://luaforge.net/tracker/?group_id=14">Bug Tracker</a></li>
- <li><a href="http://luaforge.net/scm/?group_id=14">CVS</a></li>
- </ul>
- </li>
- <li><a href="license.html">License</a></li>
- </ul>
-</div> <!-- id="navigation" -->
-
-<div id="content">
-
-<h2><a name="over"></a>Overview</h2>
-
-<p>LuaLDAP is a simple interface from Lua to an LDAP client, in
-fact it is a bind to
-<a href="http://www.openldap.org">OpenLDAP</a> or to <a href="http://msdn2.microsoft.com/en-us/library/aa772161.aspx">ADSI</a>. It enables a Lua program to:</p>
-
-<ul>
- <li>Connect to an LDAP server;</li>
- <li>Execute any operation (search, add, compare, delete, modify and
- rename);</li>
- <li>Retrieve entries and references of the search result.</li>
-</ul>
-
-<p>LuaLDAP is free software and uses the same
-<a href="license.html">license</a> as Lua 5.1.</p>
-
-<h2><a name="status"></a>Status</h2>
-
-<p>Current version is 1.1. It was developed for both Lua 5.0 and Lua 5.1, and both
-<a href="http://www.openldap.org">OpenLDAP</a> 2.1 or newer and <a href="http://msdn2.microsoft.com/en-us/library/aa772161.aspx">ADSI</a>.</p>
-
-<h2><a name="download"></a>Download</h2>
-
-<p>LuaLDAP can be downloaded in source code from the
-<a href="http://luaforge.net/projects/lualdap/files">LuaForge</a>
-page. If you are using <a href="http://luabinaries.luaforge.net">LuaBinaries</a> a Windows binary -version of LuaLDAP can be found at the same LuaForge page.</p>
-
-<h2><a name="history"></a>History</h2>
-
-<dl class="history">
- <dt><strong>Version 1.1</strong> [14/Dec/2007]</dt>
- <dd>Adapted to work on both Lua 5.0 and Lua 5.1 and to work with ADSI (WinLDAP). Thanks to Mark Edgar.</dd>
-
- <dt><strong><a href="http://www.keplerproject.org/lualdap/1.0/">Version 1.0.1</a></strong> [04/Apr/2006]</dt>
- <dd>Compatible with Compat-5.1 R5.</dd>
-
- <dt><strong>Version 1.0</strong> [10/Jun/2005]</dt>
- <dd />
-
- <dt><strong>Version 1.0 Alpha</strong> [10/Dec/2003]</dt>
- <dd />
-</dl>
-
-<h2><a name="credits"></a>Credits</h2>
-
-<p>LuaLDAP was designed by Roberto Ierusalimschy, André
-Carregal and Tomás Guisasola as part of the
-<a href="http://www.keplerproject.org">Kepler Project</a>
-which holds its copyright. It was implemented by Tomás Guisasola and Leonardo Godinho with contributions by Mark Edgar.</p>
-
-<p>LuaLDAP development was sponsored by
-<a href="http://www.fabricadigital.com.br">Fábrica Digital</a> and FINEP.</p>
-
-<h2><a name="contact"></a>Contact us</h2>
-
-<p>For further information please <a href=
-"mailto:info-NO-SPAM-THANKS@keplerproject.org">contact us</a>.
-Comments are welcome!</p>
-
-<p>You can also reach other Kepler developers and users on the Kepler Project
-<a href="http://luaforge.net/mail/?group_id=104">mailing list</a>.</p>
-
-</div> <!-- id="content" -->
-
-</div> <!-- id="main" -->
-
-<div id="about">
- <p><a href="http://validator.w3.org/check?uri=referer">
- <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p>
- <p><small>$Id: index.html,v 1.37 2007-12-14 17:06:57 carregal Exp $</small></p>
-</div> <!-- id="about" -->
-
-</div> <!-- id="container" -->
-</body>
-</html>
-
diff --git a/lualdap/doc/us/license.html b/lualdap/doc/us/license.html deleted file mode 100755 index 5b9ea9f..0000000 --- a/lualdap/doc/us/license.html +++ /dev/null @@ -1,122 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -
-<head>
- <title>LuaLDAP: license</title>
- <link rel="stylesheet" href="http://www.keplerproject.org/doc.css" type="text/css"/>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-</head>
-
-<body>
-
-<div id="container">
-
-<div id="product">
- <div id="product_logo"><a href="http://www.keplerproject.org">
- <img alt="LuaLDAP logo" width="128" height="128" src="lualdap.png"/>
- </a></div>
- <div id="product_name"><big><strong>LuaLDAP</strong></big></div>
- <div id="product_description">A Lua interface to the OpenLDAP library</div>
-</div> <!-- id="product" -->
-
-<div id="main">
-
-<div id="navigation">
-<h1>LuaLDAP</h1>
- <ul>
- <li><a href="index.html">Home</a>
- <ul>
- <li><a href="index.html#over">Overview</a></li>
- <li><a href="index.html#status">Status</a></li>
- <li><a href="index.html#download">Download</a></li>
- <li><a href="index.html#history">History</a></li>
- <li><a href="index.html#credits">Credits</a></li>
- <li><a href="index.html#contact">Contact us</a></li>
- </ul>
- </li>
- <li><a href="manual.html">Manual</a>
- <ul>
- <li><a href="manual.html#introduction">Introduction</a></li>
- <li><a href="manual.html#installation">Installation</a></li>
- <li><a href="manual.html#attributes">Attributes</a></li>
- <li><a href="manual.html#dn">DN</a></li>
- <li><a href="manual.html#initialization">Initialization</a></li>
- <li><a href="manual.html#connection">Connection</a></li>
- <li><a href="manual.html#examples">Examples</a></li>
- </ul>
- </li>
- <li><a href="http://luaforge.net/projects/lualdap/">Project</a>
- <ul>
- <li><a href="http://luaforge.net/tracker/?group_id=14">Bug Tracker</a></li>
- <li><a href="http://luaforge.net/scm/?group_id=14">CVS</a></li>
- </ul>
- </li>
- <li><strong>License</strong></li>
- </ul>
-</div> <!-- id="navigation" -->
-
-<div id="content">
-
-<h1>License</h1>
-
-<p>LuaLDAP is free software: it can be used for both academic and
-commercial purposes at absolutely no cost. There are no royalties
-or GNU-like "copyleft" restrictions. LuaLDAP qualifies as <a href=
-"http://www.opensource.org/docs/definition.html">Open Source</a>
-software. Its licenses are compatible with <a href=
-"http://www.gnu.org/licenses/gpl.html">GPL</a>. LuaLDAP is not in
-the public domain and the
-<a href="http://www.keplerproject.org">Kepler Project</a>
-keep its copyright. The legal details are below.</p>
-
-<p>The spirit of the license is that you are free to use LuaLDAP
-for any purpose at no cost without having to ask us. The only
-requirement is that if you do use LuaLDAP, then you should give us
-credit by including the appropriate copyright notice somewhere in
-your product or its documentation.</p>
-
-<p>The LuaLDAP library is designed and implemented by Roberto
-Ierusalimschy, André Carregal and Tomás Guisasola.
-The implementation is not derived from licensed software.</p>
-
-<!-- ===================================================================== -->
-
-<hr />
-Copyright © 2003-2007 The Kepler Project.
-
-<p>Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use, copy,
-modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:</p>
-
-<p>The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.</p>
-
-<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
-BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
-ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.</p>
-
-</div> <!-- id="content" -->
-
-</div> <!-- id="main" -->
-
-<div id="about">
- <p><a href="http://validator.w3.org/check?uri=referer">
- <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p>
- <p><small>$Id: license.html,v 1.11 2007-12-14 16:46:15 carregal Exp $</small></p>
-</div> <!-- id="about" -->
-
-</div> <!-- id="container" -->
-
-</body>
-</html>
-
diff --git a/lualdap/doc/us/lualdap.png b/lualdap/doc/us/lualdap.png Binary files differdeleted file mode 100755 index 8a45d88..0000000 --- a/lualdap/doc/us/lualdap.png +++ /dev/null diff --git a/lualdap/doc/us/manual.html b/lualdap/doc/us/manual.html deleted file mode 100755 index a9abd59..0000000 --- a/lualdap/doc/us/manual.html +++ /dev/null @@ -1,352 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> - -<head> - <title>LuaLDAP: A Lua interface to an LDAP library</title> - <link rel="stylesheet" href="http://www.keplerproject.org/doc.css" type="text/css"/> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> -</head> - -<body> - -<div id="container"> - -<div id="product"> - <div id="product_logo"><a href="http://www.keplerproject.org"> - <img alt="LuaLDAP logo" width="128" height="128" src="lualdap.png"/> - </a></div> - <div id="product_name"><big><strong>LuaLDAP</strong></big></div> - <div id="product_description">A Lua interface to an LDAP library</div> -</div> <!-- id="product" --> - -<div id="main"> - -<div id="navigation"> -<h1>LuaLDAP</h1> - <ul> - <li><a href="index.html">Home</a> - <ul> - <li><a href="index.html#over">Overview</a></li> - <li><a href="index.html#status">Status</a></li> - <li><a href="index.html#download">Download</a></li> - <li><a href="index.html#history">History</a></li> - <li><a href="index.html#credits">Credits</a></li> - <li><a href="index.html#contact">Contact us</a></li> - </ul> - </li> - <li><strong>Manual</strong> - <ul> - <li><a href="manual.html#introduction">Introduction</a></li> - <li><a href="manual.html#building">Building</a></li> - <li><a href="manual.html#installation">Installation</a></li> - <li><a href="manual.html#attributes">Attributes</a></li> - <li><a href="manual.html#dn">DN</a></li> - <li><a href="manual.html#initialization">Initialization</a></li> - <li><a href="manual.html#connection">Connection</a></li> - <li><a href="manual.html#examples">Examples</a></li> - </ul> - </li> - <li><a href="http://luaforge.net/projects/lualdap/">Project</a> - <ul> - <li><a href="http://luaforge.net/tracker/?group_id=14">Bug Tracker</a></li> - <li><a href="http://luaforge.net/scm/?group_id=14">CVS</a></li> - </ul> - </li> - <li><a href="license.html">License</a></li> - </ul> -</div> <!-- id="navigation" --> - -<div id="content"> - -<h2><a name="introduction"></a>Introduction</h2> - -<p>LuaLDAP is a simple interface from Lua to an LDAP client, in -fact it is a bind to <a href="http://www.openldap.org">OpenLDAP</a> -client or <a href="http://msdn2.microsoft.com/en-us/library/aa772161.aspx">ADSI</a> client</p> - -<p>LuaLDAP defines one single global variable: a table called -<code>lualdap</code>. This table holds the functions used to create an -LDAP connection object.</p> - -<p>A connection object offers methods to perform any operation on -the directory such as comparing values, adding new entries, -modifying attributes on existing entries, removing entries, and the -most common of all: searching. Entries are represented as Lua -tables; attributes are its fields. The attribute values can be -strings or tables of strings (used to represent multiple -values).</p> - -<p>LuaLDAP is a bind to the -<a href="http://www.openldap.org">OpenLDAP</a> library or to <a href="http://msdn2.microsoft.com/en-us/library/aa772161.aspx">ADSI</a> library and it -depends on a previous installation of any of this libraries. You can -download OpenLDAP from the -<a href="http://www.openldap.org/software/download">OpenLDAP download</a> -page. ADSI is included on Windows 2000 or newer. Windows NT/Me/98/95 -requires an <a href="http://msdn2.microsoft.com/en-us/library/aa772161.aspx">Active Directory Client Extension</a></p> -<h2><a name="building"></a>Building</h2> - -<p> -LuaLDAP could be built to Lua 5.0 or to Lua 5.1. -In both cases, -the language library and headers files for the target version -must be installed properly. -</p> -<p> -LuaLDAP offers a Makefile and a separate configuration file, -<code>config</code>, -which should be edited to suit your installation before runnig -<code>make</code>. -The file has some definitions like paths to the external libraries, -compiler options and the like. -One important definition is the version of Lua language, -which is not obtained from the installed software. -</p> - -<h2><a name="installation"></a>Installation</h2> - -<p>The LuaLDAP compiled binary should be copied to a directory in your -<a href="http://www.lua.org/manual/5.1/manual.html#pdf-package.cpath">C path</a>. -Lua 5.0 users should install <a href="http://www.keplerproject.org/compat">Compat-5.1</a> also.</p> - -<p>Windows users of ADSI can use the binary versions of LuaLDAP -(<code>lualdap.dll</code>) available at -<a href="http://luaforge.net/projects/lualdap/files">LuaForge</a>.</p> - -<h2><a name="attributes"></a>Representing attributes</h2> - -<p>Many LDAP operations manage sets of attributes and values. -LuaLDAP provides a uniform way of representing them by using Lua -tables. The table attributes can be Lua string, a binary string (a string of -bits), or table of <em>n</em> values indexed from 1 to <em>n</em>. -Some operations have different approaches that will be explained as necessary.</p> - -<p>Here is a simple example:</p> - -<pre class="example"> -entry = { - an_attribute = "a value", - other_attribute = { - "first value of other attribute", - "another value of other attribute", - }, -} -</pre> - -Attribute names cannot contain the <code>'\0'</code> character. - -<h2><a name="dn"></a>Distinguished names</h2> - -<p>The distinguished name (DN) is the term used to identify an -entry on the directory information tree. It is formed by the -relative distinguished name (RDN) of the entry and the -distinguished name of its parent. LuaLDAP will always use a string -to represent the DN of any entry.</p> - -<p>A more precise definition can be found on the LDAP -documentation. A list of some of these files can be found in -<a href="#related_docs">Related documentation</a> section.</p> - -<h2><a name="initialization"></a>Initialization functions</h2> - -<p>LuaLDAP provides a single way to connect to an LDAP server:</p> - -<dl> - <dt><strong><code>lualdap.open_simple (hostname, who, password, - usetls)</code></strong></dt> - <dd>Initializes a session with an LDAP server. This function requires a - hostname, accordingly to the <a href="#related_docs">C LDAP API</a> - definition (<em>"hostname contains a space-separated list of - hostnames or dotted strings representing the IP address of hosts - running an LDAP server to connect to. Each hostname in the list MAY - include a port number which is separated from the host itself with - a colon (:) character."</em>). The argument <code>who</code> should be - the <a href="#dn">distinguished name</a> of the entry that has the - password to be checked against the third argument, - <code>password</code>. The optional argument <code>usetls</code> is a - Boolean flag indicating if Transport Layer Security (TLS) should be - used.<br/> - Returns a connection object if the operation was successful. In case of - error it returns <code>nil</code> followed by an error string.</dd> -</dl> - -<h2><a name="connection"></a>Connection objects</h2> - -<p>A connection object offers methods which implement LDAP -operations. Almost all of them need a -<a href="#dn">distinguished name</a> to identify the entry on which the -operation will be executed.</p> - -<p>These methods execute asynchronous operations and return a -function that should be called to obtain the results. The called -functions will return <code>true</code> indicating the success of the -operation. The only exception is the <code>compare</code> function -which can return either <code>true</code> or <code>false</code> -(as the result of the comparison) on a successful operation.</p> - -<p>There are two types of errors: <em>API errors</em>, such as -wrong parameters, absent connection etc.; and <em>LDAP errors</em>, -such as malformed DN, unknown attribute etc. API errors will raise -a Lua error, while LDAP errors will be reported by the -function/method returning <code>nil</code> plus the error -message provided by the OpenLDAP client.</p> - -<p>A connection object can be created by calling the <a href= -"#initialization">Initialization function</a>.</p> - -<h4>Methods</h4> - -<dl> - <dt><strong><code>conn:add (distinguished_name, - table_of_attributes)</code></strong></dt> - <dd>Adds a new entry to the directory with the given attributes and - values. <a name="conn_close"></a></dd> - - <dt><strong><code>conn:close()</code></strong></dt> - <dd>Closes the connection <code>conn</code>.</dd> - - <dt><strong><code>conn:compare (distinguished_name, attribute, - value)</code></strong></dt> - <dd>Compares a value to an entry.</dd> - - <dt><strong><code>conn:delete (distinguished_name)</code></strong></dt> - <dd>Deletes an entry from the directory.</dd> - - <dt><strong><code>conn:modify (distinguished_name, - table_of_operations*)</code></strong></dt> - <dd>Changes the values of attributes in the given entry. The tables of - operations are <a href="#attributes">tables of attributes</a> - with the value on index <code>1</code> indicating the operation to be - performed. The valid operations are: - <ul> - <li><strong><code>'+'</code></strong> to add the values to the attributes</li> - <li><strong><code>'-'</code></strong> to delete the values of the attributes</li> - <li><strong><code>'='</code></strong> to replace the values of the attributes</li> - </ul> - Any number of tables of operations will be used in a single LDAP modify - operation.</dd> - - <dt><strong><code>conn:rename (distinguished_name, new_relative_dn, - new_parent)</code></strong></dt> - <dd>Changes an entry name (i.e. change its <a href="#dn">distinguished name</a>).</dd> - - <dt><strong><code>conn:search (table_of_search_parameters)</code></strong></dt> - <dd>Performs a search operation on the directory. The parameters are - described below:<br/><br/> - <dl> - <dt><strong><code>attrs</code></strong></dt> - <dd>a string or a list of attribute names to - be retrieved (default is to retrieve all attributes).</dd> - - <dt><strong><code>attrsonly</code></strong></dt> - <dd>a Boolean value that must be either - <em>false</em> (default) if both attribute names and values are to be - retrieved, or <em>true</em> if only names are wanted.</dd> - - <dt><strong><code>base</code></strong></dt> - <dd>The <a href="#dn">distinguished name</a> - of the entry at which to start the search.</dd> - - <dt><strong><code>filter</code></strong></dt> - <dd>A string representing the search filter - as described in <a href="http://www.ietf.org/rfc/rfc2254.txt">The - String Representation of LDAP Search Filters (RFC 2254)</a>.</dd> - - <dt><strong><code>scope</code></strong></dt> - <dd>A string indicating the scope of the - search. The valid strings are: "base", "onelevel" and "subtree". - The empty string ("") and <code>nil</code> will be treated as the - default scope.</dd> - - <dt><strong><code>sizelimit</code></strong></dt> - <dd>The maximum number of entries to - return (default is no limit).</dd> - - <dt><strong><code>timeout</code></strong></dt> - <dd>The timeout in seconds (default is no - timeout). The precision is microseconds.</dd> - </dl> - <br/> - The search method will return a <em>search iterator</em> which is a - function that requires no arguments. The search iterator is used to - get the search result and will return a string representing the <a - href="#dn">distinguished name</a> and a <a href="#attributes">table - of attributes</a> as returned by the search request.</dd> -</dl> - -<h2><a name="examples"></a>Example</h2> - -<p>here is a some sample code that demonstrate the basic use of the library.</p> - -<pre class="example"> -require "lualdap" - -ld = assert (lualdap.open_simple ("ldap.server", - "mydn=manoeljoaquim,ou=people,dc=ldap,dc=world", - "mysecurepassword")) - -for dn, attribs in ld:search { base = "ou=people,dc=ldap,dc=world" } do - io.write (string.format ("\t[%s]\n", dn)) - for name, values in pairs (attribs) do - io.write ("["..name.."] : ") - if type (values) == "string" then - io.write (values) - elseif type (values) == "table" then - local n = table.getn(values) - for i = 1, (n-1) do - io.write (values[i]..",") - end - io.write (values[n]) - end - io.write ("\n") - end -end - -ld:add ("mydn=newuser,ou=people,dc=ldap,dc=world", { - objectClass = { "", "", }, - mydn = "newuser", - abc = "qwerty", - tel = { "123456758", "98765432", }, - givenName = "New User", -})() - -ld:modify {"mydn=newuser,ou=people,dc=ldp,dc=world", - { '=', givenName = "New", cn = "New", sn = "User", }, - { '+', o = { "University", "College", }, - mail = "newuser@university.edu", }, - { '-', abc = true, tel = "123456758", }, - { '+', tel = "13579113", }, -}() - -ld:delete ("mydn=newuser,ou=people,dc=ldp,dc=world")() - -</pre> - -<h2><a name="related_docs"></a>Related documentation</h2> - -<ul> - <li><a href="http://www.ietf.org/rfc/rfc2251.txt">Lightweight - Directory Access Protocol (v3)</a></li> - <li><a href="http://www.ietf.org/rfc/rfc3377.txt">LDAPv3 Technical - Specification</a></li> - <li><a href="http://www.ietf.org/rfc/rfc2254.txt">The String - Representation of LDAP Search Filters (RFC 2254)</a></li> - <li><a href= - "http://www.ietf.org/proceedings/01aug/I-D/draft-ietf-ldapext-ldap-c-api-05.txt"> - The C LDAP Application Program Interface</a></li> -</ul> - -</div> <!-- id="content" --> - -</div> <!-- id="main" --> - -<div id="about"> - <p><a href="http://validator.w3.org/check?uri=referer"> - <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p> - <p><small>$Id: manual.html,v 1.34 2007-12-14 16:46:15 carregal Exp $</small></p> -</div> <!-- id="about" --> - -</div> <!-- id="container" --> -</body> -</html> - |