Fix issue #571: adhere to authsource referrals-setting#587
Conversation
|
It would be great if @tsmgeek could test this |
| $authconfig['ldap.port'] = @$authsource['port']; | ||
| $authconfig['ldap.timeout'] = @$authsource['timeout']; | ||
| $authconfig['ldap.debug'] = @$authsource['debug']; | ||
| $authconfig['ldap.referrals'] = (@$authsource['referrals'] ? @$authsource['referrals'] : false); |
There was a problem hiding this comment.
I think this should default to true since SimpleSAML_Auth_LDAP::__construct does.
| $port = $this->config->getInteger('ldap.port', 389); | ||
| $enable_tls = $this->config->getBoolean('ldap.enable_tls', false); | ||
| $debug = $this->config->getBoolean('ldap.debug', false); | ||
| $referrals = $this->config->getBoolean('ldap.referrals', false); |
|
Unfortunately I'm not able to easily test this since I don't have access to an LDAP server where turning off referrals would change anything. However, I'd be okay with pulling in the changes anyway. We're simply providing a method to access the already existing argument in |
|
I agree with you @mschwager that this is good to merge. However, it seems the branch has lost some content now. And @mschwager has IMO a valid comment. @tvdijen Can you look into that? |
|
@thijskh What are you missing? |
|
I was mistaken, indeed it looks fine otherwise. |
|
I just set the default value to true.. Tests are running |
|
@tvdijen Do you think this option needs to be added to the documentation? |
|
Nope, this was an actual bug, not something new.. If you specify an authsource for the authproc-filter to use, you'd expect it to take over the settings defined in that authsource. Paragraph 3:
Same text is also in the doc-file of the ldap-module. |
Fixes issue #571