Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #16 from tsmgeek/master
Browse files Browse the repository at this point in the history
Fix issue where loginattrib was fixed
  • Loading branch information
hydrian committed Nov 6, 2015
2 parents 71b80bb + 2a1bdd0 commit 20457fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/auth_ldap/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,10 @@ function authenticate($login, $password) {
$loginAttempt = @ldap_bind($ldapConn, $userDN, $password);
if ($loginAttempt === TRUE) {
$this->_log('User: ' . (string) $login . ' authentication successful');
if (strlen(userAttributes) > 0) {
if (strlen($this->_ldapLoginAttrib) > 0) {
if ($this->_debugMode)
$this->_log('Looking up TT-RSS username attribute in ' . $this->_ldapLoginAttrib);
$ttrssUsername = $userAttributes['sAMAccountName'][0];
$ttrssUsername = $userAttributes[$this->_ldapLoginAttrib][0];
;
@ldap_close($ldapConn);
if (!is_string($ttrssUsername)) {
Expand Down

0 comments on commit 20457fc

Please sign in to comment.