TeamPass icon indicating copy to clipboard operation
TeamPass copied to clipboard

LDAP Synchronization - List users not working

Open becrestani opened this issue 3 years ago • 3 comments

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.

becrestani avatar Oct 19 '22 07:10 becrestani

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

useronkel avatar Oct 19 '22 08:10 useronkel

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 avatar Oct 20 '22 09:10 becrestani

Any idea ? Still not fixed...

becrestani avatar Oct 21 '22 12:10 becrestani

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

valterseu avatar Oct 21 '22 21:10 valterseu