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

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Oct 21 08:19:24 CDT 2010


The following issue has been CLOSED 
====================================================================== 
https://issues.asterisk.org/view.php?id=15805 
====================================================================== 
Reported By:                Dmitry Demchenko
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15805
Category:                   Resources/res_config_ldap
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.1.5 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 215064 
Request Review:              
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-08-31 15:50 CDT
Last Modified:              2010-10-21 08:19 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.


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

---------------------------------------------------------------------- 
 (0128280) lmadsen (administrator) - 2010-10-21 08:19
 https://issues.asterisk.org/view.php?id=15805#c128280 
---------------------------------------------------------------------- 
Closed due to lack of feedback. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-10-21 08:19 lmadsen        Note Added: 0128280                          
2010-10-21 08:19 lmadsen        Status                   assigned => closed  
======================================================================




More information about the asterisk-bugs mailing list