[asterisk-bugs] [Asterisk 0015805]: [patch] LDAP error while unregister UA

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Aug 31 16:02:18 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15805 
====================================================================== 
Reported By:                Dmitry Demchenko
Assigned To:                suretec
====================================================================== 
Project:                    Asterisk
Issue ID:                   15805
Category:                   Resources/res_config_ldap
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.1.5 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 215064 
Request Review:              
====================================================================== 
Date Submitted:             2009-08-31 15:50 CDT
Last Modified:              2009-08-31 16:02 CDT
====================================================================== 
Summary:                    [patch] LDAP error while unregister UA
Description: 
Hi, 

While unregistering peer the following message appers:
================
*CLI> [Aug 31 23:25:20] ERROR[13092]: res_config_ldap.c:1331 update_ldap:
Couldn't modify dn:cn=????? ????????,ou=???? ??????,ou=??????????????
??????????,l=??????,o=??????-??????,c=UA,c=Global because No such attribute
   -- Unregistered SIP 'vtutov'
================

It's trying to LDAP_MOD_DELETE some atributes regardless of their
existance, and when are absent throws "No such attribute"

Please take in consideration that modifications are applied to set of
entries from ldap_search in turn, so there is no way to detect presence of
attributes before etry is actually processed.

Suggestion: need to check existance of attributes and delete only actual
ones. 

Corresponding patch supplied.


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

---------------------------------------------------------------------- 
 (0109871) suretec (developer) - 2009-08-31 16:02
 https://issues.asterisk.org/view.php?id=15805#c109871 
---------------------------------------------------------------------- 
Thanks! Will look when your license gets approved. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-31 16:02 suretec        Note Added: 0109871                          
======================================================================




More information about the asterisk-bugs mailing list