Open HaziFlorinMarian opened 2 years ago
Hi. If it is not relevant for you, just ignore my comment. Otherwise: Delete username and password from your provided ldap-config :-)
In realization by LdapRecord, parameter ldap_user_object_filter is totally ignored. Filter hardcoded in sources/users.queries.php But why You not used rawFilter method? I can't understand why I need get all 3000+ records, when I can write filter to get only 10+ of them (
+1 to alexlorvi, ldap_user_object_filter totally ignored.
Page on which it happened
index.php?page=ldap
Steps to reproduce
Expected behaviour
Authentication to work properly.
Actual behaviour
I get the error below when I enter the username / password to test the LDAP connection: Error : 49 - Invalid credentials 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1
Server configuration
Operating system: Linux getafix2 5.4.0-104-generic #118-Ubuntu SMP Wed Mar 2 19:02:41 UTC 2022 x86_64
Web server: Apache/2.4.41 (Ubuntu)
Database: 5.5.5-10.3.34-MariaDB-0ubuntu0.20.04.1
PHP version: 7.4.3
Teampass version: 3.0.0.14
Teampass configuration file:
Updated from an older Teampass or fresh install:
Client configuration
Browser: Chrome - 99.0.4844.51
Operating system: Windows - 64bits
Logs
Web server error log
Teampass 10 last system errors
Log from the web-browser developer console (CTRL + SHIFT + i)
Relevant apache2 errorlog:
[Tue Mar 15 13:30:01.462218 2022] [php7:warn] [pid 59721] [client 172.17.16.10:59198] PHP Warning: Illegal offset type in /var/www/html/includes/libraries/LdapRecord/Connection.php on line 495, referer: https://getafix-temp.newro.co/index.php?page=ldap