Authenticate_LDAP application module for asterisk (www.asterisk.org) Copyright (C) 2005, IonIdea Michael Vyazovsky <michael.vyazovsky@ionidea.com> This program is free software, distributed under the terms of the GNU General Public License Version: 0.1.3 Authenticate_LDAP is an asterisk application testing the availability of a parameter in LDAP database. The clue to search of this parameter is a chain of numbers entered from the telephone. If the clue has been found the return value is saved as cdr line in ‘userfield’ field, and the process goes on in normal conditions. If the search has happened to be abortive and the priority n+101 exists, processing will jump to n+101 and 0 will be returned. Otherwise voice message "vm-goodbye" is sent to the channel and -1 is returned. The clue can be entered not more than 3 times. Note: It is necessary to provide the uniqueness of the clue in LDAP database. Additional Requirements ----------------------- This module utilizes LDAPget function from app_ldap module. Author Sven Slezak <sunny@mezzo.net> LDAPget realization known to me can be found here: http://www.mezzo.net/asterisk/app_ldap.html Examples: for extensions.conf ------------------- exten => 123,1,Authenticate_LDAP(LDAP_UID=LongDistanceAccessCode/%s) exten => 123,2,Dial(Zap/11/${EXTEN},15) exten => 123,102,Hangup for ldap.conf ------------- [LongDistanceAccessCode] host = 10.10.0.1 port = 389 base = o=orgname.com filter = (LongDistanceAccessCode=%s) attribute = uid HOW TO COMPILE? Unpack the package tar -xzf app_authenticate_ldap-0.1.3.tgz copy app_authenticate_ldap.c into the apps directory of your asterisk distribution. Add app_authenticate_ldap to the targets in asterisk/apps/Makefile like: APPS += app_authenticate_ldap.so Finally execute in the asterisk directory: make install Restart asterisk or load the application with: load app_authenticate_ldap.so you're done. 'show application Authenticate_LDAP' should print the description.