]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_config_ldap: Don't try to delete non-existent attributes 15/5015/1
authorSean Bright <sean.bright@gmail.com>
Mon, 20 Feb 2017 11:53:47 +0000 (06:53 -0500)
committerSean Bright <sean.bright@gmail.com>
Mon, 20 Feb 2017 12:02:07 +0000 (07:02 -0500)
commit93d86c1002dc95eec38237bdf4106d8aed5b6013
treefe867cfecf22b33e1fb3771d5a39efa486dae54c
parentc501c38cf9e41cb151c7d7179ee6c63b08b2cdeb
res_config_ldap: Don't try to delete non-existent attributes

OpenLDAP will raise an error when we try to delete an LDAP attribute
that doesn't exist. We need to filter out LDAP_MOD_DELETE requests
based on which attributes the current LDAP entry actually has. There
is of course a small window of opportunity for this to still fail,
but it is much less likely now.

Change-Id: I3fe1b04472733e43151563aaf9f8b49980273e6b
res/res_config_ldap.c