[Asterisk-Users] LDAP search application for Asterisk

Juan Jose Comellas juanjo at comellas.com.ar
Sat Jul 2 16:51:51 MST 2005


I'm sending an Asterisk module I've written to see if anybody finds it useful 
or wants to provide some feedback. The name of the module is app_ldap and the 
application it provides is named LDAPSearch.

LDAPSearch allows any kind of searches on an LDAP directory from the Asterisk 
dialplan. It returns its results using channel variables and it was 
specifically designed to be able to dial by name (users, contacts from an 
addressbook, etc.). One of its most interesting features is the extension it 
adds to the LDAP filter syntax (#= operator) to be able to match LDAP entries 
against a series of digits using the standard touch tone phone key mapping to 
make its comparisons.

The syntax used by the application is the following:

LDAPSearch(filter,[attr_1[:attr_2[:...]]][,max entries[,sort attr[,base 
DN[,scope]]]])

The documentation explaining its configuration and usage is included in 
doc/html/app_ldap.html.

The only strange thing needed to build it is SCons (http://www.scons.org), 
which btw is an excellent build tool. You'll also need an LDAP client library 
and an LDAP server to test it. Everything has been tested using the OpenLDAP 
client library against both the OpenLDAP server and Microsoft Active 
Directory 2000.

You can download it from:

http://comellas.com.ar/app_ldap/app_ldap-0.1.0.tar.bz2

You'll need some knowledge of LDAP to be able to use this application 
successfully.

Please report any problems you may have with it.

-- 
Juan Jose Comellas
(juanjo at comellas.com.ar)



More information about the asterisk-users mailing list