Summary: | ASTERISK-11271: LDAP RealTime driver loaded. Segmentation fault | ||
Reporter: | sasikala (sasikala) | Labels: | |
Date Opened: | 2008-01-21 05:49:36.000-0600 | Date Closed: | 2011-06-07 14:02:37 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | . I did not set the category correctly. |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | Hi, I am sasikala. I am using asterisk version 1.4.17. As of now I am having the number of Sip users which is configured through the sip.conf. This process is working fine. Now I want to get the authentication for the Sip users through the LDAP. I have gone through some posting in this group and I have done the following steps. I dont know whether it is correct or not. I will just tell what I have done. svn co http://svn.digium.com/svn/asterisk/team/group/res_config_ldap - went through fine. then given make. - went through fine. make install - went through fine. - then I executed the following command asterisk -cvvvv It showed the following error. Asterisk Dynamic Loader Starting: [Jan 21 16:53:24] NOTICE[20203]: loader.c:858 load_modules: 1 modules will be loaded. [Jan 21 16:53:24] WARNING[20203]: config.c:1056 process_text_line: No '=' (equal sign) in line 11 of /etc/asterisk/res_ldap.conf [Jan 21 16:53:24] WARNING[20203]: config.c:1056 process_text_line: No '=' (equal sign) in line 12 of /etc/asterisk/res_ldap.conf [Jan 21 16:53:24] WARNING[20203]: config.c:1056 process_text_line: No '=' (equal sign) in line 13 of /etc/asterisk/res_ldap.conf [Jan 21 16:53:24] WARNING[20203]: config.c:1056 process_text_line: No '=' (equal sign) in line 14 of /etc/asterisk/res_ldap.conf [Jan 21 16:53:24] WARNING[20203]: config.c:1056 process_text_line: No '=' (equal sign) in line 15 of /etc/asterisk/res_ldap.conf [Jan 21 16:53:24] WARNING[20203]: config.c:1056 process_text_line: No '=' (equal sign) in line 16 of /etc/asterisk/res_ldap.conf [Jan 21 16:53:24] WARNING[20203]: config.c:1056 process_text_line: No '=' (equal sign) in line 17 of /etc/asterisk/res_ldap.conf [Jan 21 16:53:24] WARNING[20203]: config.c:1056 process_text_line: No '=' (equal sign) in line 19 of /etc/asterisk/res_ldap.conf [Jan 21 16:53:24] WARNING[20203]: config.c:1056 process_text_line: No '=' (equal sign) in line 31 of /etc/asterisk/res_ldap.conf [Jan 21 16:53:24] WARNING[20203]: config.c:1056 process_text_line: No '=' (equal sign) in line 53 of /etc/asterisk/res_ldap.conf [Jan 21 16:53:24] WARNING[20203]: res_config_ldap.c:1394 parse_config: No directory user found, anonymous binding as default. [Jan 21 16:53:24] WARNING[20203]: res_config_ldap.c:1400 parse_config: No directory password found, using 'asterisk' as default. [Jan 21 16:53:24] ERROR[20203]: res_config_ldap.c:1406 parse_config: No directory host found. [Jan 21 16:53:24] ERROR[20203]: res_config_ldap.c:1414 parse_config: No LDAP base dn found, using 'asterisk' as default. [Jan 21 16:53:24] WARNING[20203]: res_config_ldap.c:1420 parse_config: No directory port found, using 389 as default. [Jan 21 16:53:24] ERROR[20203]: res_config_ldap.c:1478 ldap_reconnect: Failed to init ldap connection to :389. Check debug for more info. [Jan 21 16:53:24] WARNING[20203]: res_config_ldap.c:1321 load_module: Couldn't establish connection. Check debug. [Jan 21 16:53:24] NOTICE[20203]: config.c:1830 ast_config_engine_register: Registered Config Engine ldap LDAP RealTime driver loaded. Segmentation fault This is what the problem I am having I think many people have done the ldap authentication , Please any one help me to retrieve the username,telephone number and password from the LDAP database to register the soft phone user. Thanks in advance. sasikala. | ||
Comments: | By: Joshua C. Colp (jcolp) 2008-01-21 09:43:37.000-0600 The branch is now back up to date and confirmed handles this scenario fine once again. Please update and try again, and report back on the branch's issue. By: sasikala (sasikala) 2008-03-12 07:02:15 Now If I tried to check out from svn co http://svn.digium.com/svn/asterisk/team/group/res_config_ldap it is saying this site does not exist. what should i do now? Please give me some to get it done with ldap. Thanks in advance. By: sasikala (sasikala) 2008-03-12 07:02:29 Now If I tried to check out from svn co http://svn.digium.com/svn/asterisk/team/group/res_config_ldap it is saying this site does not exist. what should i do now? Please give me some to get it done with ldap. Thanks in advance. By: Joshua C. Colp (jcolp) 2008-03-12 09:28:47 This has been merged into trunk, thus the branch no longer exists, By: sasikala (sasikala) 2008-03-13 03:39:40 shall I checkout the source in http://svn.digium.com/svn/asterisk/trunk/ ? will it work for the ldap authentication. Please clarify me. By: Jason Parker (jparker) 2008-03-13 14:50:57 Yes. svn trunk. By: sasikala (sasikala) 2008-03-14 00:11:05 I downloaded the asterisk from svn trunk and installed. my ldap details : ----------------- dn: uid=mbalakrishnan,ou=People,dc=bksys,dc=co,dc=in uid: mbalakrishnan cn: mbalakrishnan sn: mbalakrishnan mail: mbalakrishnan@bksys.co.in objectClass: posixAccount objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: top objectClass: shadowAccount loginShell: /bin/bash gidNumber: 100 homeDirectory: /home/mbalakrishnan uidNumber: 602 userPassword:: e2NyeXB0fS93QkxDRUg3TjdMV2s= shadowLastChange: 13866 telephoneNumber: 43902740 The res_ldap.conf as follows, ----------------------------- [_general] host=192.168.1.36; protocol=3 ; Version of the LDAP protocol to use default is 3. basedn="ou=People,dc=bksys,dc=co,dc=in" pass=guest user="uid=guest,ou=People,dc=bksys,dc=co,dc=in" ; Configuration Table [config] ; addtional filter additionalFilter=(objectClass=inetOrgPerson) ; oxyPBXConfig) ; Extensions Table [extensions] additionalFilter=(objectClass=inetOrgPerson) ; oxyPBXExtension) ; Sip Users Table [sip1] attribute = name => uid attribute = username => telephoneNumber attribute = md5secret => userPassword attribute = context => internal additionalFilter=(objectClass=inetOrgPerson) extconfig.conf as follows, -------------------------- sipusers => ldap,"dc=bksys,dc=co,dc=in",sip1 sippeers => ldap,"dc=bksys,dc=co,dc=in",sip1 extensions => ldap,"dc=bksys,dc=co,dc=in",extensions sip.conf => ldap,"dc=bksys,dc=co,dc=in",config I restarted the asterisk process, the module got loaded successfully(CLI>module show like ldap). But in the log file(/var/log/asterisk/full) it says the error following error, [Mar 13 19:48:38] WARNING[4823] res_config_ldap.c: No directory port found, using 389 as default. [Mar 13 19:48:38] WARNING[4823] res_config_ldap.c: bind failed: Invalid DN syntax [Mar 13 19:48:38] WARNING[4823] res_config_ldap.c: Couldn't establish connection. Check debug. --- What should i correct in the res_ldap.conf file???? Thanks. By: Jason Parker (jparker) 2008-03-14 08:38:30 Closing. Configuration issue. By: sasikala (sasikala) 2008-03-14 09:49:18 Please check the configuration information given in 083935 comments. and check whether the configuration is correct? it is saying error as [Mar 13 19:48:38] WARNING[4823] res_config_ldap.c: No directory port found, using 389 as default. [Mar 13 19:48:38] WARNING[4823] res_config_ldap.c: bind failed: Invalid DN syntax [Mar 13 19:48:38] WARNING[4823] res_config_ldap.c: Couldn't establish connection. Check debug Please help to resolve this issue. Thanks in advance. By: Jason Parker (jparker) 2008-03-14 09:55:52 This *IS NOT* a bug. This is not the place to discuss configuration issues. Please discuss this elsewhere, such as the asterisk-users mailing list. If this report is opened again, it will be locked. |