cyradm - unable to authenticate server as cyrus
Stephen Liu
satimis at yahoo.com
Wed Jul 9 20:04:10 EDT 2008
--- Nicolas Carlier <carlier.nicolas at gmail.com> wrote:
> On Wed, Jul 9, 2008 at 6:50 PM, Stephen Liu <satimis at yahoo.com>
> wrote:
> >
> > --- Nicolas Carlier <carlier.nicolas at gmail.com> wrote:
> >
> > - snip -
> >>
> >> What kind of auth system are you using?
> >
> >
> > $ apt-cache policy libsasl2
> > libsasl2:
> > Installed: 2.1.19.dfsg1-0.1ubuntu2
> > Candidate: 2.1.19.dfsg1-0.1ubuntu2
> > Version table:
> > *** 2.1.19.dfsg1-0.1ubuntu2 0
> > 500 http://hk.archive.ubuntu.com dapper/main Packages
> > 100 /var/lib/dpkg/status
> >
>
> This is not an answer of my question.
Hi Nicolas,
Whether you meant;
sasl_pwcheck_method:
on /etc/imapd.conf ???
It was
sasl_pwcheck_method: saslauthd
and worked previously without problem.
Then I changed it to;
sasl_pwcheck_method: auxprop
Still failed unable to login cyradm as cyrus
and then again changed it to;
sasl_pwcheck_method: pwcheck
$ sudo /etc/init.d/cyrus2.2 restart
Stopping Cyrus IMAPd: cyrmaster.
Waiting for complete shutdown....
Starting Cyrus IMAPd: cyrmaster.
$ cyradm -user cyrus --auth plain localhost
Password:
IMAP Password:
Login failed: no mechanism available at
/usr/lib/perl5/Cyrus/IMAP/Admin.pm line 118
cyradm: cannot authenticate to server with plain as cyrus
line 117 }
line 118 my $rc = $self->{cyrus}->authenticate(@_);
line 119 if($rc && $self->{support_referrals}) {
changed it back to;
sasl_pwcheck_method: saslauthd
On running;
$ sudo /etc/init.d/cyrus2.2 stop
Stopping Cyrus IMAPd: .
$ sudo /etc/init.d/cyrus2.2 start
Starting Cyrus IMAPd: /etc/init.d/cyrus2.2: line 153: !check_status:
command not found
line 152 else
line 153 if !check_status ; then
line 154 echo "(failed)."
line 155 exit 1
$ ps ax | grep cyrus
4566 pts/0 S+ 0:00 grep cyrus
$ sudo netstat -tap | grep cyrus
No printout
$ tail /var/log/syslog
Jul 10 07:35:01 satimis /USR/SBIN/CRON[4528]: (root) CMD (cd
/var/www/SugarCE-Fu
ll-5.0.0e; php -f cron.php > /dev/null 2>&1)
Jul 10 07:36:01 satimis /USR/SBIN/CRON[4531]: (root) CMD (cd
/var/www/SugarCE-Fu
ll-5.0.0e; php -f cron.php > /dev/null 2>&1)
Jul 10 07:37:01 satimis /USR/SBIN/CRON[4534]: (root) CMD (cd
/var/www/SugarCE-Fu
ll-5.0.0e; php -f cron.php > /dev/null 2>&1)
Jul 10 07:38:01 satimis /USR/SBIN/CRON[4537]: (root) CMD (cd
/var/www/SugarCE-Fu
ll-5.0.0e; php -f cron.php > /dev/null 2>&1)
Jul 10 07:39:01 satimis /USR/SBIN/CRON[4540]: (root) CMD ( [ -d
/var/lib/php5 ]
&& find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime)
-print0 | xa
rgs -r -0 rm)
Jul 10 07:39:01 satimis /USR/SBIN/CRON[4542]: (root) CMD (cd
/var/www/SugarCE-Fu
ll-5.0.0e; php -f cron.php > /dev/null 2>&1)
Jul 10 07:40:01 satimis /USR/SBIN/CRON[4555]: (root) CMD (cd
/var/www/SugarCE-Fu
ll-5.0.0e; php -f cron.php > /dev/null 2>&1)
Jul 10 07:41:01 satimis /USR/SBIN/CRON[4558]: (root) CMD (cd
/var/www/SugarCE-Fu
ll-5.0.0e; php -f cron.php > /dev/null 2>&1)
Jul 10 07:42:01 satimis /USR/SBIN/CRON[4561]: (root) CMD (cd
/var/www/SugarCE-Fu
ll-5.0.0e; php -f cron.php > /dev/null 2>&1)
Jul 10 07:43:01 satimis /USR/SBIN/CRON[4570]: (root) CMD (cd
/var/www/SugarCE-Fu
ll-5.0.0e; php -f cron.php > /dev/null 2>&1)
* end *
$ tail /var/log/messages
Jul 10 07:25:48 satimis kernel: [ 95.854465] IPv6 over IPv4 tunneling
driver
Jul 10 07:25:49 satimis kernel: [ 98.253304] ppdev: user-space
parallel port driver
Jul 10 07:26:25 satimis kernel: [ 134.448066] Installing knfsd
(copyright (C) 1996 okir at monad.swb.de).
Jul 10 07:26:25 satimis kernel: [ 134.557300] NFSD: Using
/var/lib/nfs/v4recovery as the NFSv4 state recovery directory
Jul 10 07:26:25 satimis kernel: [ 134.557318] NFSD: recovery directory
/var/lib/nfs/v4recovery doesn't exist
Jul 10 07:26:25 satimis kernel: [ 134.557321] NFSD: starting 90-second
grace period
Jul 10 07:26:28 satimis squid[4299]: Squid Parent: child process 4301
started
Jul 10 07:26:30 satimis kernel: [ 139.652747] ip_tables: (C) 2000-2002
Netfilter core team
Jul 10 07:26:30 satimis kernel: [ 139.854519] Netfilter messages via
NETLINK v0.30.
Jul 10 07:26:30 satimis kernel: [ 139.879396] ip_conntrack version 2.4
(4095 buckets, 32760 max) - 312 bytes per conntrack
* end *
$ sudo ls -l /var/lib/cyrus/log/
total 0
$ sudo ls -l /var/lib/cyrus/msg
total 0
Please advise how to revoke it to its previous state? TIA
B.R.
Stephen
Send instant messages to your online friends http://uk.messenger.yahoo.com
More information about the Info-cyrus
mailing list