Completely new to PrivacyIdea and currently trying to set it up to hopefully be able to to MFA for server logins. It feels that PrivacyIdea is quite a steep learning curve as the WEB-UI seems rather limited.
So I am trying to get the users from my Active Directory (MS Server 2022, DC). It seems to make a connection just fine but 0 users are found.
I have the following setup in the LDAP Resolver:
Server UI: ldap://192.168.21.2
StartTLS: ticked
TLS Version: TLS v1.2
Verify TLS: unticked
Base DN: CN=Users,DC=fede,DC=adventist,DC=be
Scope: SUBTREE
Bind Type: SALS Digest-MD5
Bind DN : DOMAIN\user
Bind Password: admin password
Preset Active Directory
No anonymous referral chasing: ticked
When doing a quick resolver test result: Your LDAP config seems OK, 0 user objects found.
I have tried to tinker with the Base DN, as there are only a few users in CN=Users, the rest is all in OU=Users,OU=Office,DC=fede,DC=adventist,DC=be, but that had the same result.
Tried also Bind Type: NTLM, but then get the error: ValueError('unsupported hash type MD4')
Now in the Logfiles (it is set to DEBUG) I can only find this in the logs:
[2023-03-06 15:29:38,985][909][140637692021696][DEBUG][privacyidea.lib.resolver:181] Entering pretestresolver with arguments ('ldapresolver', {'AUTHTYPE': 'SASL Digest-MD5', 'BINDDN': 'ADVENTIST\\administrator', 'BINDPW': '__CENSORED__', 'CACHE_TIMEOUT': '120', 'EDITABLE': False, 'LDAPBASE': 'CN=Users,DC=fede,DC=adventist,DC=be', 'LDAPSEARCHFILTER': '(sAMAccountName=*)(objectCategory=person)', 'LDAPURI': 'ldap://192.168.21.2', 'LOGINNAMEATTRIBUTE': 'sAMAccountName', 'NOREFERRALS': True, 'NOSCHEMAS': False, 'SCOPE': 'SUBTREE', 'SERVERPOOL_PERSISTENT': False, 'SERVERPOOL_ROUNDS': '2', 'SERVERPOOL_SKIP': '30', 'SIZELIMIT': 0, 'START_TLS': True, 'TIMEOUT': '5', 'TLS_VERIFY': False, 'TLS_VERSION': '5', 'UIDTYPE': 'objectGUID', 'USERINFO': '{ "phone" : "telephoneNumber", "mobile" : "mobile", "email" : "mail", "surname" : "sn", "givenname" : "givenName" }', 'type': 'ldapresolver', 'resolver': 'fede.adventist.be'}) and keywords {}
[2023-03-06 15:29:38,985][909][140637692021696][DEBUG][privacyidea.lib.resolver:181] Entering get_resolver_list with arguments () and keywords {'filter_resolver_name': 'fede.adventist.be'}
[2023-03-06 15:29:38,985][909][140637692021696][DEBUG][privacyidea.lib.resolver:196] Exiting get_resolver_list with result HIDDEN
[2023-03-06 15:29:38,986][909][140637692021696][DEBUG][privacyidea.lib.resolvers.LDAPIdResolver:193] Get LDAP schema info: 'SCHEMA'
[2023-03-06 15:29:38,986][909][140637692021696][DEBUG][privacyidea.lib.resolvers.LDAPIdResolver:945] Added 192.168.21.2, None, False to server pool.
[2023-03-06 15:29:38,987][909][140637692021696][DEBUG][privacyidea.lib.resolvers.LDAPIdResolver:1347] Doing start_tls
[2023-03-06 15:29:39,005][909][140637692021696][DEBUG][privacyidea.lib.resolver:194] Exiting pretestresolver with result (True, 'Your LDAP config seems to be OK, 0 user objects found.')
[2023-03-06 15:29:39,012][909][140637692021696][DEBUG][privacyidea.api.resolver:194] Exiting test_resolver with result <PiResponseClass 252 bytes [200 OK]>
[2023-03-06 15:29:39,072][909][140637692021696][DEBUG][privacyidea.api.lib.utils:292] Update params in request POST https://192.168.21.8/resolver/test with JSON data.
[2023-03-06 15:29:39,090][909][140637692021696][DEBUG][privacyidea.api.before_after:102] End handling of request '/resolver/test?'
If someone can help me with this, I might be able to get finally to testing some things.