[asterisk-bugs] [Asterisk 0013725]: [patch] ERROR[7387]: res_config_ldap.c:1292 update_ldap: Couldn't modify dn:cn=1001, dc=xxx, dc=xxx because Invalid syntax

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Aug 12 11:16:33 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=13725 
====================================================================== 
Reported By:                macogeek
Assigned To:                suretec
====================================================================== 
Project:                    Asterisk
Issue ID:                   13725
Category:                   Resources/res_config_ldap
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-10-17 04:25 CDT
Last Modified:              2009-08-12 11:16 CDT
====================================================================== 
Summary:                    [patch] ERROR[7387]: res_config_ldap.c:1292
update_ldap: Couldn't modify dn:cn=1001,dc=xxx,dc=xxx because Invalid syntax
Description: 
When my softphone register, I've got a error, as you can see. After that,
I've got other warning :
 ERROR[7387]: res_config_ldap.c:1292 update_ldap: Couldn't modify
dn:cn=1001,dc=xxx,dc=xxx because Invalid syntax    -- Registered SIP '1001'
at 192.168.50.124 port 25880 expires 3600
[Oct 17 11:18:45] NOTICE[7387]: chan_sip.c:9809
__set_address_from_contact: '' is not a valid SIP contact (missing sip:)
trying to use anyway
[Oct 17 11:18:45] WARNING[7387]: chan_sip.c:9817
__set_address_from_contact: Invalid host name in Contact: (can't resolve in
DNS) : '-'
So the softphone register successfully but can't call another phone.
I captured the package ldap.modifyRequest and ldap.modifyResponse with
wireshark and i can see that :

LDAPMessage modifyRequest(95) "cn=1001,dc=xxx,dc=xxx"
modification AstAccountFullContact
modification AstAccountIpaddr
...(6 items)

LDAPMessage modifyResponse(95) invalidAttributeSyntax
(AstAccountFullContact: value https://issues.asterisk.org/view.php?id=0 invalid
per syntax)
and another modifyresponse is success because the request doesn't concern
AstAccountFullContact :

LDAPMessage modifyRequest(97) "cn=1001,dc=xxx,dc=xxx"
modification AstAccountIpaddr
modification AstAccountPort
...(4 items)

LDAPMessage modifyResponse(97) success

I can't see what res_config_ldap.c try to insert into the
AstAccountFullContact field


thanks for your help

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

---------------------------------------------------------------------- 
 (0108952) svnbot (reporter) - 2009-08-12 11:16
 https://issues.asterisk.org/view.php?id=13725#c108952 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 211768

_U  branches/1.6.0/
U   branches/1.6.0/contrib/scripts/asterisk.ldap-schema
U   branches/1.6.0/contrib/scripts/asterisk.ldif
U   branches/1.6.0/res/res_config_ldap.c

------------------------------------------------------------------------
r211768 | ghenry | 2009-08-12 11:16:31 -0500 (Wed, 12 Aug 2009) | 38 lines

Merged revisions 211767 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r211767 | ghenry | 2009-08-12 17:00:46 +0100 (Wed, 12 Aug 2009) | 33
lines
  
  Added three new attributes and applied a patch to res_config_ldap.c
  
  attributetype ( AstAccountSubscribeContext
          NAME 'AstAccountSubscribeContext'
          DESC 'Asterisk subscribe context'
          EQUALITY caseIgnoreMatch
          SUBSTR caseIgnoreSubstringsMatch
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.15)
  
  attributetype ( AstAccountIpAddr
          NAME 'AstAccountIpAddr'
          DESC 'Asterisk aaccount IP address'
          EQUALITY caseIgnoreMatch
          SUBSTR caseIgnoreSubstringsMatch
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.15)
  
  attributetype ( AstAccountUserAgent
          NAME 'AstAccountUserAgent'
          DESC 'Asterisk account user context'
          EQUALITY caseIgnoreMatch
          SUBSTR caseIgnoreSubstringsMatch
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.15)
  
  and patch fix_empty_attributes_1.6.1.4_v2.patch 
  
  (closes issue https://issues.asterisk.org/view.php?id=13725)
  Reported by: macogeek
  Patches:
        fix_empty_attributes_1.6.1.4_v2.patch uploaded by xvisor (license
863)
  Tested by: suretec
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=211768 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-12 11:16 svnbot         Checkin                                      
2009-08-12 11:16 svnbot         Note Added: 0108952                          
======================================================================




More information about the asterisk-bugs mailing list