cyrus virtdomains + saslauthd trouble

Igor dimedrol8 at sviblovo.ru
Tue Aug 9 06:40:16 EDT 2005


On Tue, 9 Aug 2005 08:14:42 +0100, Dmitriy Kirhlarov wrote:
>try run
>saslauthd -da ....
>for look getting information

With -d key error message is the same:

# saslauthd -m /var/run/saslauthd -a pam -r -d
saslauthd[26312] :main            : num_procs  : 5
saslauthd[26312] :main            : mech_option: NULL
saslauthd[26312] :main            : run_path   : /var/run/saslauthd
saslauthd[26312] :main            : auth_mech  : pam
saslauthd[26312] :ipc_init        : using accept lock file:
/var/run/saslauthd/mux.accept
saslauthd[26312] :detach_tty      : master pid is: 0
saslauthd[26312] :ipc_init        : listening on socket:
/var/run/saslauthd/mux
saslauthd[26312] :main            : using process model
saslauthd[26313] :get_accept_lock : acquired accept lock
saslauthd[26312] :have_baby       : forked child: 26313
saslauthd[26312] :have_baby       : forked child: 26314
saslauthd[26312] :have_baby       : forked child: 26317
saslauthd[26312] :have_baby       : forked child: 26318
saslauthd[26313] :rel_accept_lock : released accept lock
saslauthd[26314] :get_accept_lock : acquired accept lock
saslauthd[26313] :do_auth         : auth failure: [user=egorkin.i]
[service=imap] [realm=] [mech=pam] [reason=PAM auth error]


After adding "servername:" nothing changes for me.

# cat imapd.conf
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
postmaster: postmaster
uixhierarchysep: yes
virtdomains: userid
defaultdomain: 3b.ru
servername: igor.3b.ru

>and look in saslauthd.conf params
>ldap_default_realm: your_realm
>ldap_search_base: ou=users,o=%2 # (in my case -- use filters)

I use saslauthd + pam with pam_mysql, not ldap. And it works:
#testsaslauthd -u egorkin.i -r v-art.ru -p 123
0: OK "Success."

But does not work imapd virtdomains + saslauthd.

My configuration is presented in the 1-st post. I can add it:
# hostname
igor.3b.ru
# cat /etc/hosts
127.0.0.1 igor.3b.ru localhost.localdomain localhost

Somebody knows whether cyrus imapd able pass realm to saslauthd, 
and how it must be configured for that ?

--
Best regards,
Igor


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list