[prev in list] [next in list] [prev in thread] [next in thread] 

List:       amavis-user
Subject:    [AMaViS-user] LDAP_OPERATIONS_ERROR if ldap connection drops
From:       matteo brancaleoni <mbrancaleoni () gmail ! com>
Date:       2005-11-30 10:55:46
Message-ID: d6fe45ba0511300255h7bc81c53me87af6b64855c6ff () mail ! gmail ! com
[Download RAW message or body]

(already posted on groups, but perhaps this's the right place)

Hi,

with latest amavisd-new (amavisd-new-2.3.3) seems that if the ldap
connection to the server drops (ie after being idle for sometime)
amavisd is not able to reconnect, or to explain it better, it
reconnects for for some reasons the query fails.
The only way to solve that is to restart amavisd.

here's my ldap connection params into amavisd.conf :
$enable_ldap = 1;
$default_ldap = {
  hostname => 'ldap.mydomain.net',
  tls => 0,
  base => 'o=hosting,dc=mydomain,dc=net',
  bind_dn => 'cn=phamm,o=hosting,dc=mydomaint,dc=net',
  bind_password => 'blah',
  query_filter => '(&(objectClass=amavisAccount)(mail=%m))'

};

and here's the logs from amavisd:
Nov 29 23:40:20 megarelay amavis[11979]: (11979-15) query_keys:
mat...@mydomainmasqued.it, @mydomainmasqued.it, @.mydomainmasqued.it,
@.it, @.
Nov 29 23:40:20 megarelay amavis[11979]: (11979-15) lookup_ldap
"mat...@mydomainmasqued.it", query keys: "mat...@mydomainmasqued.it",
"@mydomainmasqued.it", "@.mydomainmasqued.it", "@.it", "@.", base:
o=hosting,dc=mydomain,dc=net, filter:
(&(objectClass=amavisAccount)(mail=%m))
Nov 29 23:40:20 megarelay amavis[11979]: (11979-15) ldap begin_work
Nov 29 23:40:20 megarelay amavis[11979]: (11979-15) lookup_ldap:
searching base="o=hosting,dc=mydomain,dc=net", scope="sub",
filter="(&(objectClass=amavisAccount)(|(mail=mat...@mydomainmasqued.it)(m...@mydomainmasqued.it)(mail=@.mydomainmasqued.it)(mail=@.it)(mail=@.)))"
                
Nov 29 23:40:20 megarelay amavis[11979]: (11979-15) NOTICE: do_search:
trying again: LDAP_OPERATIONS_ERROR
Nov 29 23:40:20 megarelay amavis[11979]: (11979-15) disconnecting from
LDAP
Nov 29 23:40:20 megarelay amavis[11979]: (11979-15) Connecting to LDAP
server
Nov 29 23:40:20 megarelay amavis[11979]: (11979-15) connect_to_ldap:
trying ldap.mydomain.net
Nov 29 23:40:20 megarelay amavis[11979]: (11979-15) connect_to_ldap:
connected to ldap.mydomain.net
Nov 29 23:40:20 megarelay amavis[11979]: (11979-15) connect_to_ldap:
bind cn=phamm,o=hosting,dc=mydomain,dc=net succeeded
Nov 29 23:40:20 megarelay amavis[11979]: (11979-15) lookup_ldap:
searching (again) base="o=hosting,dc=mydomain,dc=net", scope="sub",
filter="(&(objectClass=amavisAccount)(|(mail=mat...@mydomainmasqued.it)(m...@mydomainmasqued.it)(mail=@.mydomainmasqued.it)(mail=@.it)(mail=@.)))"
                
Nov 29 23:40:20 megarelay amavis[11980]: (11980-14) disconnecting from
LDAP
Nov 29 23:40:20 megarelay amavis[11980]: (11980-14) lookup_ldap:
do_search: failed again,  at (eval 36) line 152, <DATA> line 392.
Nov 29 23:40:20 megarelay amavis[11980]: (11980-14) TROUBLE in
process_request: do_search: failed again,  at (eval 36) line 152,
<DATA> line 392. at (eval 36) line 433, <DATA> line 392.
Nov 29 23:40:20 megarelay amavis[11980]: (11980-14) Requesting process
rundown after fatal error

now I'll try to check into the code why this fails... but I'm not a
perl expert :)

Greetings, Matteo


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&opĚk
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic