View Issue Details

IDProjectCategoryView StatusLast Update
1487RackTablesdefaultpublic2019-01-08 11:47
Reporterjelle Assigned Toinfrastation  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
OSCentosOS Version6 
Product Version0.20.10 
Target Version0.20.11Fixed in Version0.20.11 
Summary1487: success_server not set in queryLDAPServer when using TLS
DescriptionWhen using TLS, queryLDAPServer will always returns 'CAN' because $success_server is not set.
        if (!isset ($success_server))
                return array ('result' => 'CAN');
Steps To Reproduceindex 6e30a94..e14d98f 100644
--- a/auth_old.php
$LDAP_options = array
(
        'server' => 'ldap://dc01.example.com ldap://dc02.example.com',
        'search_attr' => 'uid',
        'search_dn' => 'ou=users,ou=test,dc=example,dc=com',
        'displayname_attrs' => 'cn',
        'cache_refresh' => 300,
        'cache_retry' => 15,
        'cache_expiry' => 600,
// Uncomment line below to work around ActiveDirectory+PHP problem to perform
// search right in the base DN (not in one of OUs/CNs below).
# 'options' => array (LDAP_OPT_PROTOCOL_VERSION => 3, LDAP_OPT_REFERRALS => 0),
        'options' => array (LDAP_OPT_PROTOCOL_VERSION => 3),
        'use_tls' => 2,
);

Additional Information+++ b/auth.php
@@ -505,6 +505,7 @@ function queryLDAPServer ($username, $password)
                                else
                                        throw new RackTablesError ('LDAP misconfiguration: LDAP TLS required but not successfully negotiated.', RackTablesError::MISCONFIGURED);
                        }
+ $success_server = $server;
                }
                else
                {
TagsNo tags attached.

Activities

infrastation

infrastation

2015-07-22 12:10

administrator   ~0002901

The 0.20.11 release will incorporate your bugfix, thank you!

Issue History

Date Modified Username Field Change
2015-07-09 13:06 jelle New Issue
2015-07-22 12:10 infrastation Note Added: 0002901
2015-07-22 12:10 infrastation Assigned To => infrastation
2015-07-22 12:10 infrastation Status new => closed
2015-07-22 12:10 infrastation Resolution open => fixed
2015-07-22 12:10 infrastation Fixed in Version => 0.20.11
2015-07-22 12:10 infrastation Target Version => 0.20.11
2015-07-22 12:10 infrastation Additional Information Updated
2019-01-08 11:47 infrastation Source_changeset_attached => RackTables master 3207ebb0