]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_config_ldap: Fix configuration inheritance from _general 05/5005/1
authorSean Bright <sean.bright@gmail.com>
Mon, 20 Feb 2017 11:30:31 +0000 (06:30 -0500)
committerSean Bright <sean.bright@gmail.com>
Mon, 20 Feb 2017 11:30:31 +0000 (06:30 -0500)
commitb2836dde7ef9f1c14ccd721f2d94ec8f3683433b
tree923c7fa6ebcf21794338b3aa8c56e5179568b109
parent6d5e9993b22f10d14cd221e32ac64f72430aa7c7
res_config_ldap: Fix configuration inheritance from _general

The "_general" configuration section allows administrators to provide
both general configuration options (host, port, url, etc.) as well as a
global realtime-to-LDAP-attribute mapping that is a fallback if one of
the later sections do not override it. This neglected to exclude the
general configuration options from the mapping. As an example, during
my testing, chan_sip requested 'port' from realtime, and because I did
not have it defined, it pulled in the 'port' configuration option from
"_general." We now filter those out explicitly.

Change-Id: I1fc61560bf96b8ba623063cfb7e0a49c4690d778
res/res_config_ldap.c