Ant: RE: RE: Cyrus Imap Authentication Problems

evildad evildad2k at yahoo.de
Tue Sep 27 05:16:54 EDT 2005


HI,
yes it is the real Password for the User mail. 

--- lkolchin at univ.haifa.ac.il schrieb:

> Hi,
> 
> Stupid question but "passwd=secret" in your file is
> really password=real_pass__for_user_mail on MySQL
> DB?
> 
> Regards,
> Leon Kolchinsky
> 
> -----Original Message-----
> From: evildad [mailto:evildad2k at yahoo.de] 
> Sent: Monday, September 26, 2005 10:31 PM
> To: לאון קולצ'×™× ×¡×§×™
> Cc: info-cyrus at lists.andrew.cmu.edu
> Subject: Ant: RE: Cyrus Imap Authentication Problems
> 
> Hi,
> i had created the file /etc/pam.d/imap with the
> following entries:
> 
> auth sufficient pam_mysql.so user=mail passwd=secret
> host=localhost db=mail table=accountuser
> usercolumn=username passwdcolumn=password crypt=1
> logtable=log logmsgcolumn=msg logusercolumn=user
> loghostcolumn=host logpidcolumn=pid
> logtimecolumn=time
> 
> account required pam_mysql.so user=mail
> passwd=secret host=localhost db=mail
> table=accountuser usercolumn=username
> passwdcolumn=password crypt=1 logtable=log
> logmsgcolumn=msg logusercolumn=user
> loghostcolumn=host logpidcolumn=pid
> logtimecolumn=time
> 
> And i have also posted this Problem in the
> web-cyradm list with the hope to get the answers i
> need.
> 
> Thanks,
> Evil
> --- lkolchin at univ.haifa.ac.il schrieb:
> 
> > Hi,
> > 
> > First of all try to post this question to
> web-cyradm list, I'm too on 
> > their list and if you have further questions we'll
> try to help you.
> >  
> > It may be related to creation of the file
> /etc/pam.d/imap with the 
> > following entries:
> > ----------------------------------------------
> > #%PAM-1.0
> > auth sufficient pam_mysql.so user=mail
> passwd=secret host=localhost 
> > db=mail table=accountuser usercolumn=username
> passwdcolumn=password 
> > crypt=1 logtable=log logmsgcolumn=msg
> logusercolumn=user 
> > loghostcolumn=host logpidcolumn=pid
> logtimecolumn=time sqllog=yes
> > 
> > # auth sufficient pam_unix_auth.so
> > 
> > account required pam_mysql.so user=mail
> passwd=secret host=localhost 
> > db=mail table=accountuser usercolumn=username
> passwdcolumn=password 
> > crypt=1 logtable=log logmsgcolumn=msg
> logusercolumn=user 
> > loghostcolumn=host logpidcolumn=pid
> logtimecolumn=time
> > 
> > # account  sufficient       pam_unix_acct.so
> > ---------------------------------------------
> > 
> > Regards,
> > Leon Kolchinsky
> > 
> > 
> > -----Original Message-----
> > From: info-cyrus-bounces at lists.andrew.cmu.edu
> > [mailto:info-cyrus-bounces at lists.andrew.cmu.edu]
> On Behalf Of evildad
> > Sent: Sunday, September 25, 2005 10:31 PM
> > To: info-cyrus at lists.andrew.cmu.edu
> > Subject: Cyrus Imap Authentication Problems
> > 
> > HI there,
> > i'd like to set-up an working IMAP Server on my
> Gentoo System. I used 
> > the Postfix-Cyrus-Web-cyradm-HOWTO from
> >
>
http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/index.html
> > 
> > Because I use Gentoo, I compiled all the packages
> with the 
> > „emerge“ command. Here are the
> versions for my installed packages:
> > 
> > cyrus-sasl-2.1.21-r1
> > cyrus-imapd-2.2.12
> > postfix-2.1.5-r2
> > pam_mysql-0.6.0
> > mysql-4.0.25-r2
> > web-cyradm-0.5.4.1
> > 
> > 
> > They all compiled without errors but after i
> wanted to create the user 
> > cyrus with the command
> > 
> > # saslpasswd2 -c cyrus
> > Password:
> > Again (for verification):
> > 
> > 
> > ... the following errors appear in
> > /var/log/messages:
> > 
> > Sep 25 17:21:01 evildad saslpasswd2: sql_select
> option missing Sep 25 
> > 17:21:01 evildad saslpasswd2:
> > auxpropfunc error no mechanism available Sep 25
> > 17:21:01 evildad saslpasswd2: _sasl_plugin_load
> failed on 
> > sasl_auxprop_plug_init for plugin: sql Sep
> > 25 17:21:05 evildad saslpasswd2: setpass succeeded
> for cyrus Sep 25 
> > 17:21:05 evildad saslpasswd2: error deleting entry
> from sasldb: 
> > DB_NOTFOUND: No matching key/data pair found Sep
> 25 17:21:05 evildad
> > saslpasswd2: error deleting entry from sasldb:
> > DB_NOTFOUND: No matching key/data pair found Sep
> 25
> > 17:21:05 evildad saslpasswd2: error deleting entry
> from sasldb: 
> > DB_NOTFOUND: No matching key/data pair found
> > 
> > 
> > I don't understand why sasl won't find the DB. 
> > 
> > Another Problem is the command to connect to the
> Server.
> > 
> > When i type in the following command to the Server
> I get the following 
> > output:
> > 
> > # cyradm --user cyrus --server localhost --auth
> plain
> > Password:
> > IMAP Password:
> >               Login failed: authentication failure
> at
> >
>
/usr/lib/perl5/site_perl/5.8.6/x86_64-linux/Cyrus/IMAP/Admin.pm
> > line 118
> > cyradm: cannot authenticate to server with plain
> as cyrus
> > 
> > 
> > and in /var/log/messages:
> > 
> > Sep 25 21:18:26 evildad master[7102]: about to
> exec 
> > /usr/lib/cyrus/imapd Sep 25 21:18:26 evildad
> > imap[7102]: executed Sep 25 21:18:26 evildad
> > imap[7102]: sql auxprop plugin using mysql engine
> Sep 25 21:18:26 
> > evildad imap[7102]: accepted connection Sep 25
> 21:18:37 evildad 
> > imap[7102]:
> > badlogin:
> > localhost [127.0.0.1] PLAIN [SASL(-16): encryption
> needed to use 
> > mechanism: security flags do not match required]
> Sep 25 21:18:40 
> > evildad perl: No worthy mechs found Sep 25
> 21:18:44 evildad 
> > imap[7102]: sql plugin Parse the username cyrus
> Sep 25 21:18:44 
> > evildad imap[7102]: sql plugin try and connect to
> a host Sep 25 
> > 21:18:44 evildad imap[7102]: sql plugin trying to
> open db 'mail' on 
> > host 'localhost'
> > Sep 25 21:18:44 evildad imap[7102]: sql plugin
> Parse the username 
> > cyrus Sep 25 21:18:44 evildad
> > imap[7102]: sql plugin try and connect to a host
> Sep
> > 25 21:18:44 evildad imap[7102]: sql plugin trying
> to open db 'mail' on 
> > host 'localhost'
> > Sep 25 21:18:44 evildad saslauthd[6930]: DEBUG:
> > auth_pam: pam_acct_mgmt failed: User account has
> expired
> 
=== message truncated ===



	
		
___________________________________________________________ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de



More information about the Info-cyrus mailing list