Hi, 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, http://svn.digium.com/svn/asterisk/trunk. [^] 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 sasikala. ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Please check this updated Link: http://www.voip-info.org/wiki/view/LDAP Quoting sasikala kala <sasi_jeyalakshmi at yahoo.com>:> Hi, > 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, > http://svn.digium.com/svn/asterisk/trunk. [^] > 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 > sasikala. > > > > ____________________________________________________________________________________ > Never miss a thing. Make Yahoo your home page. > http://www.yahoo.com/r/hs > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >-- Faraz R Khan Chief Architect Emergen Consulting Pvt Ltd www.emergen.biz