[asterisk-bugs] [Asterisk 0015805]: [patch] LDAP error while unregister UA
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Nov 10 08:03:39 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:03 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.
======================================================================
----------------------------------------------------------------------
(0113529) Dmitry Demchenko (reporter) - 2009-11-10 08:03
https://issues.asterisk.org/view.php?id=15805#c113529
----------------------------------------------------------------------
Ok, now it's clear. OpenLDAP 2.3.43 seems to be not completely standard
compatible. RFC notes (http://www.ietf.org/rfc/rfc2251.txt, p.32)
replace: replace all existing values of the given attribute
with the new values listed, creating the attribute if it
did not already exist. A replace with no value will delete
the entire attribute if it exists, and is ignored if the
attribute does not exist.
This issue might be closed without resolution.
Sorry for fakereport.
Issue History
Date Modified Username Field Change
======================================================================
2009-11-10 08:03 Dmitry DemchenkoNote Added: 0113529
======================================================================
More information about the asterisk-bugs
mailing list