Bug 11726 - Ошибка при получении персональных настроек SpamAssassin из LDAP
: Ошибка при получении персональных настроек SpamAssassin из LDAP
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/perl-Mail-SpamAssassin)
: unstable
: all Linux
: P2 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2007-05-10 03:01 by
Modified: 2007-11-12 14:52 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2007-05-10 03:01:18
при активации функции получения персональных настроек из LDAP в логах
наблюдается следующая картина:

May 10 01:04:27 koms spamd[7845]: spamd: connection from localhost.localdomain
[127.0.0.1] at port 22005
May 10 01:04:27 koms spamd[7845]: Can't locate object method "schema" via
package "URI::ldap" at
/usr/lib/perl5/vendor_perl/Mail/SpamAssassin/Conf/LDAP.pm
line 133, <GEN5> line 2.
May 10 01:04:27 koms spamd[7845]: ldap: failed to load user scores from LDAP
server, ignored (Can't locate object method "schema" via package "URI::ldap" at
/usr/lib/perl5/vendor_perl/Mail/SpamAssassin/Conf/LDAP.pm line 133, <GEN5> line
2.
May 10 01:04:27 koms spamd[7845]: )

Steps to Reproduce:
1. указать в файле /etc/sysconfig/spamd
   SPAMDOPTIONS="-u spamd -g spamd -x --ldap-config
2. указать параметры подключения к LDAP серверу в /etc/spamassassin/local.cf
   user_scores_dsn                
ldap://127.0.0.1:389/ou=users,o=myorg?mailSpamAssassin?sub?&(objectClass=mailAccount)(uid=__USERNAME__)
   user_scores_ldap_username       cn=spamassassin,o=myorg
   user_scores_ldap_password       123
3. передать что-нибудь демону через spamc
------- Comment #1 From 2007-05-10 03:03:37 -------
забыл уточнить:

perl-Mail-SpamAssassin-3.2.0-alt1
spamassassin-spamc-3.2.0-alt1
spamassassin-3.2.0-alt1
spamassassin-spamd-3.2.0-alt1
perl-ldap-0.34-alt1
------- Comment #2 From 2007-06-20 20:50:41 -------
(In reply to comment #1)
> забыл уточнить:
> 
> perl-Mail-SpamAssassin-3.2.0-alt1
> spamassassin-spamc-3.2.0-alt1
> spamassassin-3.2.0-alt1
> spamassassin-spamd-3.2.0-alt1
> perl-ldap-0.34-alt1

Уточните еще про perl-URI.
------- Comment #3 From 2007-06-21 02:27:30 -------
(In reply to comment #2)
> (In reply to comment #1)
> > забыл уточнить:
> > 
> > perl-Mail-SpamAssassin-3.2.0-alt1
> > spamassassin-spamc-3.2.0-alt1
> > spamassassin-3.2.0-alt1
> > spamassassin-spamd-3.2.0-alt1
> > perl-ldap-0.34-alt1
> 
> Уточните еще про perl-URI.

[root@gw ~]# rpm -q perl-URI
perl-URI-1.35-alt2
------- Comment #4 From 2007-06-21 21:52:06 -------
I am having the same results, i updated openldap to openldap-server-2.3.36 

warn: Can't locate object method "schema" via package "URI::ldap" at /usr/local/lib/perl5/site_perl/5.8.8/
Mail/SpamAssassin/Conf/LDAP.pm line 133, <GEN656> line 2.
Thu Jun 21 12:50:00 2007 [39330] warn: ldap: failed to load user scores from LDAP server, ignored (Can't 
locate object method "schema" via package "URI::ldap" at /usr/local/lib/perl5/site_perl/5.8.8/Mail/
SpamAssassin/Conf/LDAP.pm line 133, <GEN656> line 2.
------- Comment #5 From 2007-09-02 12:41:50 -------
Кажется это уже неактуально...