I am trying to setup the directory service on macOS according to the docs. After everything is configured, the directory services show up in contacts, but searching never produces any results. Trying to access the directory via the Directory Utility shows an error Connection failed to the directory server. (2100)
.
The davmail log just shows the following entries, repeating over and over.
2022-06-24 15:27:49,241 DEBUG [davmail.ldap.LdapServer] davmail - Connection from /0:0:0:0:0:0:0:1 on port 1636
2022-06-24 15:27:49,249 DEBUG [davmail.ldap.LdapServer] davmail - Connection from /0:0:0:0:0:0:0:1 on port 1636
2022-06-24 15:27:49,264 DEBUG [LdapConnection-52894] davmail.http.DavGatewaySSLSocketFactory - createSocket censored.domain 443
2022-06-24 15:27:49,269 DEBUG [LdapConnection-52896] davmail.http.DavGatewaySSLSocketFactory - createSocket censored.domain 443
2022-06-24 15:27:49,381 DEBUG [LdapConnection-52896] davmail.exchange.ExchangeSession - Test configuration status: 401
2022-06-24 15:27:49,382 DEBUG [LdapConnection-52894] davmail.exchange.ExchangeSession - Test configuration status: 401
2022-06-24 15:27:49,382 DEBUG [LdapConnection-52896] davmail - LDAP_REQ_SEARCH 1 base= scope: 0 sizelimit: 1 timelimit: 5 filter: (objectclass=*) returning attributes: [namingcontexts, saslrealm, supportedsaslmechanisms, defaultnamingcontext, schemanamingcontext]
2022-06-24 15:27:49,382 INFO [LdapConnection-52894] davmail.connection - DISCONNECT - 0:0:0:0:0:0:0:1:52894
2022-06-24 15:27:49,383 DEBUG [LdapConnection-52896] davmail - Sending root DSE
2022-06-24 15:27:49,383 DEBUG [LdapConnection-52896] davmail - LDAP_REQ_SEARCH 1 success
2022-06-24 15:27:49,384 DEBUG [LdapConnection-52896] davmail - LDAP_REQ_UNBIND 2
2022-06-24 15:27:49,384 INFO [LdapConnection-52896] davmail.connection - DISCONNECT - 0:0:0:0:0:0:0:1:52896
The connection is using the EWS
protocol and everything else (meaning IMAP, SMTP and caldav) is working just fine.
I have done a test using
ldapsearch -H ldap://localhost:1636 -x -D "myuser" -W -b "ou=people" -s sub -a always -z 10 "(mail=myname*)" "uid" "cn" "telephoneNumber" "objectClass"
which actually returns the contact info of the searched user?
Can anyone help me troubleshoot this issue?