dovecot: auth: Error ldap_search failed: Operations error #3785
-
|
Hi, Have anyone got any similar error? Or do you have any idea how to debug such errors? I have been trying for many hours to figure out what is wrong, but with no luck. The weird thing is that I am using a setup that used to be working (most likely). This issue happens as soon as I try to login using a mail client to the mail server. Here is the full log of one of the setups I tried, here I enabled the debug to see the env vars: I have no clue what I can do more to debug or solve this. Could anyone help please? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 15 replies
-
|
May I ask you, @polarathene, to take a look when you have some time? As you suggested, I disabled the quota, but the messages did not change. If it is needed, I can provide access to DMS and LDAP server. |
Beta Was this translation helpful? Give feedback.
-
|
Shouldn't this be the problem? Though I don't know what are the "two" results. I have a very fresh LDAP server. So I am not sure what is going on here. Does any one see something I am missing? |
Beta Was this translation helpful? Give feedback.
-
|
Wow, this discussion became a good source for debugging. I finally got it working. After the analysis mentioned above that both components, LDAP server and Mail server, work when used with external systems but not with each other, this made me think again about the connection between them. The relationship that connects them is LDAP, DNS and TLS. I checked TLS and seemed to be working properly. LDAP filters were also OK, after testing them with ldapsearch. That leaves DNS of the cluster, particularly CoreDNS. The biggest confusion came from the log messages of Dovecot actually, as they always were inconsistent and misleading. In K8s, I configured the CoreDNS to forward all requests that are specific to my intra domain to Samba's DC DNS server. Removing this configuration from CoreDNS made my mail server works again. I am still investigating why this caused my DMS / Samba relationship to fail, because my simple configuration seems to be correct, and everything other than DMS works with it. NOTE: because of the cache TTLS (30 seconds in this case), after removing the entry from CoreDNS configmap we have to wait about 30 seconds before the changes take effect and DMS starts working again. I still though do not exactly understand the behavior, that changing the search base solved the issue and how it is directly related to the DNS. Many thanks to @polarathene for his support! |
Beta Was this translation helpful? Give feedback.
Wow, this discussion became a good source for debugging.
I finally got it working.
After the analysis mentioned above that both components, LDAP server and Mail server, work when used with external systems but not with each other, this made me think again about the connection between them. The relationship that connects them is LDAP, DNS and TLS. I checked TLS and seemed to be working properly. LDAP filters were also OK, after testing them with ldapsearch. That leaves DNS of the cluster, particularly CoreDNS.
The biggest confusion came from the log messages of Dovecot actually, as they always were inconsistent and misleading.
In K8s, I configured the CoreDNS to forward all requests that a…