Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adldap nutzt kein StartTLS #929

Closed
nook24 opened this issue Apr 9, 2019 · 1 comment
Closed

Adldap nutzt kein StartTLS #929

nook24 opened this issue Apr 9, 2019 · 1 comment

Comments

@nook24
Copy link
Member

nook24 commented Apr 9, 2019

Original author: Skywalker-11 (IRC)

Ich hatte mich am Freitag schonmal gemeldet wegen LDAP und SSL-Verbindungen. Wie sich herausgestellt hat, liegt das Problem nicht an FreeDSx, sondern an ADldap (welches bei PHP <7.1 genutzt wird).

In Zeile 700 der Adldap.php:

// Set the LDAP options
$this->ldapConnection->setOption(LDAP_OPT_PROTOCOL_VERSION, 3);
$this->ldapConnection->setOption(LDAP_OPT_REFERRALS, $this->followReferrals);
// Authenticate to the server
return $this->authenticate($this->getAdminUsername(), $this->getAdminPassword(), true);

müsste noch das StartTLS aktiviert werden mit

if ($this->getUseTLS()){
    $this->ldapConnection->startTLS();
}

Dann wird die Verbindung per startTLS verschlüsselt
Mir ist zudem aufgefallen, dass Adldap auch bei PHP7.3 scheinbar weiterhin verwendet wird. z.B. wenn man auf der Login-Seite ist und diese neulädt, wird eine einzelne LDAP-Verbindung aufgebaut

System ist Debian 9 mit offiziellem deb-Paket und testweise installiertem PHP7.3 von https://packages.sury.org/php/

@nook24
Copy link
Member Author

nook24 commented May 28, 2019

@nook24 nook24 closed this as completed May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant