nilsteampassnet / TeamPass

Collaborative Passwords Manager
https://www.teampass.net
1.66k stars 539 forks source link

LDAP Synchronization - List users not working #3376

Open becrestani opened 1 year ago

becrestani commented 1 year ago
### Steps to reproduce 1. Configure LDAP server (OpenLDAP in my case) 2. Check if login is ok with a test users 3. Go to users page - LDAP Synchronization and click list users ### Expected behaviour Tell us what should happen Users should be list. ### Actual behaviour Tell us what happens instead Pop up says done, but no users are listed ### Server configuration **Operating system**: Centos **Web server:** Httpd **Database:** Mysql **PHP version:** 7.4 **Teampass version:** 3.0.0.19 **Teampass configuration file:** **Updated from an older Teampass or fresh install:** PLEASE attach to this issue the file `/includes/config/tp.config.php`. Fresh install ### Client configuration **Browser:** firefox **Operating system:** windows ### Logs #### Web server error log ``` Insert your webserver log here ``` Done #### Log from the web-browser developer console (CTRL + SHIFT + i) ``` { "error": false, "entries": [], "ldap_groups": [], "teampass_groups": [ { "id": "1", "title": "XXXXXX" }, { "id": "2", "title": "XXXXX" }, { "id": "3", "title": "XXXXX" } ], "usersAlreadyInTeampass": [] } Insert the log here and especially the answer of the query that failed. ```
useronkel commented 1 year ago

Update to latest commit, the fix went live with id 3ddc46e

becrestani commented 1 year ago

Just update to the latest commit. it's worse than before, now i have 'Can't contact ldap server'

This is the same config who was working in 3.0.0.19. Ldapsearch also work with the info filled in...

becrestani commented 1 year ago

Any idea ? Still not fixed...

jvalters commented 1 year ago

Hello, for me I don't have an issue getting users only if the LDAP has many users and groups, then it automatically stops fetching, so I was wondering @nilsteampassnet since all user guides have old versions where is a fiend LDAP group from Active directory and the new one don't have is there a way to specify from what groups to fetch users? Maybe I'm missing something, so could you please maybe consult how to specify Group1,Group2 to get the users only from the specified groups? I tried with User Object Filter to limit groups but it still searches all AD groups and users. Would be nice if you could specify