Summary:ASTERISK-11646: Authentication for the SIP client through LDAP
Reporter:sasikala (sasikala)Labels:
Date Opened:2008-03-15 04:42:46Date Closed:2011-06-07 14:00:55
Versions:Frequency of
 I had asterisk 1.4.17 with the extensions which is configured in the sip.conf it was working fine.
 Now I am having the requirement to authenticate the SIP users through the OpenLDAP not through the sip.conf.
Steps I have done :
Did a check out by using the following command,
then given configure, make , make install. and taken the sample ldap configuration file and changed host and dn configuration.
then in the /etc/asterisk/modules.conf file  given load => res_config_ldap.so
then executed asterisk.
*CLI> module show like ldap
Module                         Description                              Use Count
res_config_ldap.so             LDAP realtime interface                  0
1 modules loaded

then I gave a command ,
*CLI> realtime ldap status
Command 'realtime ldap status' failed.

In the log file the information is available is ,
[Mar 15 14:12:41] VERBOSE[15306] logger.c:   == Parsing '/etc/asterisk/res_ldap.conf': [Mar 15 14:1
2:41] VERBOSE[15306] logger.c:   == Found
[Mar 15 14:12:41] WARNING[15306] res_config_ldap.c: No directory port found, using 389 as default.
[Mar 15 14:12:41] WARNING[15306] res_config_ldap.c: bind failed: Invalid DN syntax
[Mar 15 14:12:41] WARNING[15306] res_config_ldap.c: Couldn't establish connection. Check debug.
[Mar 15 14:12:41] NOTICE[15306] config.c: Registered Config Engine ldap
[Mar 15 14:12:41] VERBOSE[15306] logger.c:  LDAP RealTime driver loaded.
[Mar 15 14:12:41] VERBOSE[15306] logger.c:  res_config_ldap.so => (LDAP realtime interface )

when i put telnet to the ldap server ip to the port number 389 it is connecting.

Please tell me the steps I have done .. is it right?
I think many people made this to work...
If you give some way to go about do this , it would be very helpful for me..

Thanks in advance

Comments:By: Russell Bryant (russell) 2008-03-15 12:55:56

The bug tracker is not a support forum ...