From d2baf844908d8d657d9bd3e1e5847343d7f91d38 Mon Sep 17 00:00:00 2001 From: Tomas Guisasola Date: Mon, 31 May 2004 11:00:13 +0000 Subject: Correcao de bug no retorno de entradas que sao referencias. Melhoria no ingles da documentacao. --- lualdap/doc/us/index.html | 35 ++++++++------- lualdap/doc/us/manual.html | 107 +++++++++++++++++++++++---------------------- lualdap/src/lualdap.c | 6 ++- lualdap/tests/test.lua | 6 +-- 4 files changed, 79 insertions(+), 75 deletions(-) (limited to 'lualdap') diff --git a/lualdap/doc/us/index.html b/lualdap/doc/us/index.html index 8930946..6548b04 100755 --- a/lualdap/doc/us/index.html +++ b/lualdap/doc/us/index.html @@ -32,8 +32,8 @@ interface to the OpenLDAP library installation · manual · license · -history · -contact +credits · +contact us

@@ -57,7 +57,8 @@ interface to the OpenLDAP library

  • Examples
  • Copyright & License -
  • History +
  • Credits +
  • Contact us

    @@ -66,7 +67,7 @@ interface to the OpenLDAP library

    Overview

    LuaLDAP is a simple interface from Lua to an LDAP client -(in fact it's a bind to OpenLDAP client). +(in fact it is a bind to OpenLDAP). It enables a Lua program to:

    @@ -321,7 +322,7 @@ of LDAP Search Filters (RFC 2254)
    -$Id: manual.html,v 1.14 2004-04-28 14:43:54 tomas Exp $ +$Id: manual.html,v 1.15 2004-05-31 11:00:13 tomas Exp $ diff --git a/lualdap/src/lualdap.c b/lualdap/src/lualdap.c index 0de04a9..505750e 100755 --- a/lualdap/src/lualdap.c +++ b/lualdap/src/lualdap.c @@ -1,7 +1,7 @@ /* ** LuaLDAP ** See Copyright Notice in license.html -** $Id: lualdap.c,v 1.26 2003-12-02 14:25:09 tomas Exp $ +** $Id: lualdap.c,v 1.27 2004-05-31 11:00:13 tomas Exp $ */ #include @@ -676,6 +676,7 @@ static int next_message (lua_State *L) { LDAPMessage *ref = ldap_first_reference (conn->ld, msg); push_dn (L, conn->ld, ref); /* is this supposed to work? */ lua_pushnil (L); + ret = 2; /* two return values */ break; } case LDAP_RES_SEARCH_RESULT: @@ -905,6 +906,7 @@ static int lualdap_createmeta (lua_State *L) { ** @param #1 String with hostname. ** @param #2 String with username. ** @param #3 String with password. +** @param #4 Boolean indicating if TLS must be used. ** @return #1 Userdata with connection structure. */ static int lualdap_open_simple (lua_State *L) { @@ -953,5 +955,5 @@ int lualdap_libopen (lua_State *L) { lua_rawset (L, -3); lua_setglobal (L, LUALDAP_TABLENAME); - return 0; + return 1; } diff --git a/lualdap/tests/test.lua b/lualdap/tests/test.lua index 82b2fce..738b101 100755 --- a/lualdap/tests/test.lua +++ b/lualdap/tests/test.lua @@ -6,7 +6,7 @@ -- renamed and deleted at the end. -- -- See Copyright Notice in license.html --- $Id: test.lua,v 1.10 2004-01-15 13:30:15 tomas Exp $ +-- $Id: test.lua,v 1.11 2004-05-31 11:00:13 tomas Exp $ --------------------------------------------------------------------- DN_PAT = "^([^,=]+)%=([^,]+)%,(.*)$" @@ -49,7 +49,7 @@ end --------------------------------------------------------------------- --- checks for a value and throw an error if it's not the expected. +-- checks for a value and throw an error if it is not the expected. --------------------------------------------------------------------- function assert2 (expected, value, msg) io.write('.') @@ -101,7 +101,7 @@ function basic_test () local _,_,rdn_name,rdn_value = string.find (BASE, DN_PAT) assert2 (false, pcall (ld.compare, ld, BASE, rdn_name, rdn_value), "permitting the use of a closed connection") - -- it's ok to close a closed object, but nil is returned instead of 1. + -- it is ok to close a closed object, but nil is returned instead of 1. assert2 (nil, ld:close()) -- trying to connect to an invalid host. assert2 (nil, lualdap.open_simple ("unknown-server"), "this should be an error") -- cgit v1.2.3-59-g8ed1b