The login = "cn=testuser,dc=example,dc=com" looks strange, it is not what I would expect for a ns7 server…
I’d say the search base should be “dc=directory,dc=nh”
This search criteria cannot match a user entry in LDAP. That baseDN with scope = ONE does not lead to a posixAccount entry in ns7 LDAP.
@stephdl I think the key is the search base. If scope is ONE it should be something like ou=People,dc=directory,dc=nh, whilst if scope is SUB it can be dc=directory,dc=nh. IIRC it is more specific because of SOGo user and group management.
We are working on an improvement of automatic probing of LDAP settings, when a remote LDAP account provider is configured. As said during the last hangout we’re almost done: