Skip to content
Snippets Groups Projects
Commit ac3510e6 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Merge pull request #270 from tvdijen/master

Update Negotiate.php
parents 2d06c575 b1d17c3c
No related branches found
No related tags found
No related merge requests found
...@@ -37,11 +37,13 @@ class sspmod_negotiate_Auth_Source_Negotiate extends SimpleSAML_Auth_Source { ...@@ -37,11 +37,13 @@ class sspmod_negotiate_Auth_Source_Negotiate extends SimpleSAML_Auth_Source {
$this->backend = $config->getString('fallback'); $this->backend = $config->getString('fallback');
$this->hostname = $config->getString('hostname'); $this->hostname = $config->getString('hostname');
$this->port = $config->getInteger('port', 389);
$this->referrals = $config->getBoolean('referrals', TRUE);
$this->enableTLS = $config->getBoolean('enable_tls', FALSE); $this->enableTLS = $config->getBoolean('enable_tls', FALSE);
$this->debugLDAP = $config->getBoolean('debugLDAP', FALSE); $this->debugLDAP = $config->getBoolean('debugLDAP', FALSE);
$this->timeout = $config->getValue('timeout', 30); $this->timeout = $config->getInteger('timeout', 30);
$this->keytab = $config->getString('keytab'); $this->keytab = $config->getString('keytab');
$this->base = $config->getString('base'); $this->base = $config->getArrayizeString('base');
$this->attr = $config->getString('attr', 'uid'); $this->attr = $config->getString('attr', 'uid');
$this->subnet = $config->getArray('subnet', NULL); $this->subnet = $config->getArray('subnet', NULL);
$this->admin_user = $config->getString('adminUser', NULL); $this->admin_user = $config->getString('adminUser', NULL);
...@@ -100,7 +102,7 @@ class sspmod_negotiate_Auth_Source_Negotiate extends SimpleSAML_Auth_Source { ...@@ -100,7 +102,7 @@ class sspmod_negotiate_Auth_Source_Negotiate extends SimpleSAML_Auth_Source {
SimpleSAML_Logger::debug('Negotiate - authenticate(): looking for Negotate'); SimpleSAML_Logger::debug('Negotiate - authenticate(): looking for Negotate');
if (!empty($_SERVER['HTTP_AUTHORIZATION'])) { if (!empty($_SERVER['HTTP_AUTHORIZATION'])) {
SimpleSAML_Logger::debug('Negotiate - authenticate(): Negotate found'); SimpleSAML_Logger::debug('Negotiate - authenticate(): Negotate found');
$this->ldap = new SimpleSAML_Auth_LDAP($this->hostname, $this->enableTLS, $this->debugLDAP, $this->timeout); $this->ldap = new SimpleSAML_Auth_LDAP($this->hostname, $this->enableTLS, $this->debugLDAP, $this->timeout, $this->port, $this->referrals);
list($mech, $data) = explode(' ', $_SERVER['HTTP_AUTHORIZATION'],2); list($mech, $data) = explode(' ', $_SERVER['HTTP_AUTHORIZATION'],2);
if(strtolower($mech) == 'basic') if(strtolower($mech) == 'basic')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment