]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_config_ldap: Don't try to delete non-existent attributes 08/5008/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 11:53:47 +0000 (06:53 -0500)
commitd8972f50f4b3c47a2271e6db52604eee1796fd80
tree75e03a11b07d03908342f3bb78d9abd2f87fd24b
parentb980cae1f7a0d392e5b25eaa6676687583fbd3c4
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