[asterisk-bugs] [Asterisk 0012523]: res_ldap (or chan_sip?) produces SegFault

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Apr 28 01:53:39 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12523 
====================================================================== 
Reported By:                blacktux
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12523
Category:                   Resources/res_config_ldap
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.0 
SVN Revision (number only!): 114638 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             04-25-2008 06:25 CDT
Last Modified:              04-28-2008 01:53 CDT
====================================================================== 
Summary:                    res_ldap (or chan_sip?) produces SegFault
Description: 
Hello,

I've got a Problem with res_config_ldap. :-(

I configured extconfig.conf and  res_ldap.conf for my LDAP Database and
when I try to authenticate the Phone, Asterisk crashed with a segfault. 

I'm not sure if res_config_ldap causes the seg fault, because the last
Message looks like chan_sip:

Asterisk Ready.
  == Parsing '/etc/asterisk/cli.conf':   == Found
*CLI> [Apr 25 12:23:42] NOTICE[14301]: chan_sip.c:19867 build_peer: The
'username' field for sip peers has been deprecated in favor of the term
'defaultuser'
    -- Registered SIP 'alehmann' at 10.0.111.100 port 2048 expires 3600
       > Saved useragent "snom360/7.1.30" for peer alehmann
Segmentation fault

My settings are very small and only for testing the LDAP Connect. Maybe
the Problem is, that something missing??

What I've done:

- Testing 1.6.0 Branch
- Testing cvs Branc
- Testing 1.6.0-beta8
- Testing with Snom-360 Phone and Kphone 
- Testing on Gentoo and Debian 4.0 (both AMD64)

When I try to authenticate with a wrong Password, the Message says "wrong
Password", the SegFault only occured with the right Password. 

Any Help would be great





====================================================================== 

---------------------------------------------------------------------- 
 blacktux - 04-28-08 01:53  
---------------------------------------------------------------------- 
Good Morning,

I've played a long Time  ;-) and found the Problem with the modify
Command. 

My LDAP Server used the wrong Schema. I've checked the LDAP Commands with
wireshark, now the SIP Phone's register successfully. :-)

It would be very nice, If the ldap Commands could be logged, maybe with an
config Option? 

There's an other Problem with the Password Authentification, the Phone's
haven't Passwords. 
Now I test the Password Authentification on the other Machine with a fresh
Debian. 

Which Version should I try? 1.6 beta8 ? From subversion? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-28-08 01:53  blacktux       Note Added: 0086080                          
======================================================================




More information about the asterisk-bugs mailing list