[asterisk-bugs] [Asterisk 0015805]: [patch] LDAP error while unregister UA
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Nov 10 08:07:09 CST 2009
A NOTE has been added to this issue.
======================================================================
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: assigned
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:
======================================================================
Date Submitted: 2009-08-31 15:50 CDT
Last Modified: 2009-11-10 08:07 CST
======================================================================
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.
======================================================================
----------------------------------------------------------------------
(0113530) suretec (developer) - 2009-11-10 08:07
https://issues.asterisk.org/view.php?id=15805#c113530
----------------------------------------------------------------------
OpenLDAP is standards compliant. Can you double check the code in Asterisk.
Issue History
Date Modified Username Field Change
======================================================================
2009-11-10 08:07 suretec Note Added: 0113530
======================================================================
More information about the asterisk-bugs
mailing list