LuaLDAP is a simple interface from Lua to an LDAP client, in fact it is a bind to OpenLDAP client or ADSI.

It enables a Lua program to:

  • Connect to an LDAP server;
  • Execute any operation (search, add, compare, delete, modify and rename);
  • Retrieve entries and references of the search result.


It's developed for Lua 5.1, 5.2, 5.3 & 5.4, and OpenLDAP 2.3 or newer.


The sources are hosted on Github.


LuaLDAP is available via LuaRocks:

luarocks install lualdap

Debian packages are available on Debian or Ubuntu.

RPM packages are available on Fedora.