Authentication Error with Sieve

View: New views
5 Messages — Rating Filter:   Alert me  

Authentication Error with Sieve

by Paul van der Vlis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I wrote before about an TLS-error, and I was checking my other machines
if they have the same problem.

On an machine I found another problem about Ingo. There I cannot change
a script, I get this error:
--------
Changes saved.
There was an error activating the script. The driver said:
"Authentication Error"
--------

So far I see my backends.php is correct, but I have added it to the end
of this mail. I am using Sieve and Cyrus.

In the past Ingo did work without problems on this machine.

Somebody any idea?  How to debug this?

With regards,
Paul van der Vlis


backends.php
--------
$backends['sieve'] = array(
    'driver' => 'timsieved',
    'preferred' => 'localhost',
    'hordeauth' => true,
    'params' => array(
        // Hostname of the timsieved server
        'hostspec' => 'localhost',
        // Login type of the server
        'logintype' => 'PLAIN',
        // Enable/disable TLS encryption
        'usetls' => false,
        // Port number of the timsieved server
        'port' => 2000,
        // Name of the sieve script
        'scriptname' => 'ingo',
        // The following settings can be used to specify an administration
        // user to update all users' scripts.
        // 'admin' => 'cyrus',
        // 'password' => '*****',
        // 'username' => Auth::getAuth(),
    ),
    'script' => 'sieve',
    'scriptparams' => array()
);
-----------




--
http://www.vandervlis.nl/

--
Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: ingo-unsubscribe@...

Re: Authentication Error with Sieve

by Jan Schneider :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Zitat von Paul van der Vlis <paul@...>:

> Hello,
>
> I wrote before about an TLS-error, and I was checking my other machines
> if they have the same problem.
>
> On an machine I found another problem about Ingo. There I cannot change
> a script, I get this error:
> --------
> Changes saved.
> There was an error activating the script. The driver said:
> "Authentication Error"
> --------
>
> So far I see my backends.php is correct, but I have added it to the end
> of this mail. I am using Sieve and Cyrus.
>
> In the past Ingo did work without problems on this machine.
And what did you change to break it?

> Somebody any idea?  How to debug this?
>
> With regards,
> Paul van der Vlis
>
>
> backends.php
> --------
> $backends['sieve'] = array(
>     'driver' => 'timsieved',
>     'preferred' => 'localhost',
>     'hordeauth' => true,
>     'params' => array(
>         // Hostname of the timsieved server
>         'hostspec' => 'localhost',
>         // Login type of the server
>         'logintype' => 'PLAIN',
>         // Enable/disable TLS encryption
>         'usetls' => false,
>         // Port number of the timsieved server
>         'port' => 2000,
>         // Name of the sieve script
>         'scriptname' => 'ingo',
>         // The following settings can be used to specify an administration
>         // user to update all users' scripts.
>         // 'admin' => 'cyrus',
>         // 'password' => '*****',
>         // 'username' => Auth::getAuth(),
>     ),
>     'script' => 'sieve',
>     'scriptparams' => array()
> );
> -----------
>
>
>
>
> --
> http://www.vandervlis.nl/
>
> --
> Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: ingo-unsubscribe@...
>


Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


--
Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: ingo-unsubscribe@...

attachment0 (204 bytes) Download Attachment

Re: Authentication Error with Sieve

by Paul van der Vlis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jan Schneider schreef:

> Zitat von Paul van der Vlis <paul@...>:
>
>> Hello,
>>
>> I wrote before about an TLS-error, and I was checking my other machines
>> if they have the same problem.
>>
>> On an machine I found another problem about Ingo. There I cannot change
>> a script, I get this error:
>> --------
>> Changes saved.
>> There was an error activating the script. The driver said:
>> "Authentication Error"
>> --------
>>
>> So far I see my backends.php is correct, but I have added it to the end
>> of this mail. I am using Sieve and Cyrus.
>>
>> In the past Ingo did work without problems on this machine.
>
> And what did you change to break it?

I did not change very much the last years on that machine. I did not
receive a problem from users, maybe the problem excists longer.

I changed some little things on Cyrus (activating TLS), Postfix (TLS and
authenticated SMTPD) and saslauthd (changed the location of the pid-file
to inside the Postfix chroot).

Horde authenticates without any problems (I use IMP for the
authentication, what uses imap/notls).

I see Ingo uses timsieved, can I test timsieved directly?

Other machines with the same distribution are working fine.

With regards,
Paul


paul@sigmund:/usr/lib/sasl2$ telnet localhost sieve
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v2.1.18-IPv6-Debian-2.1.18-5.1"
"SASL" "PLAIN"
"SIEVE" "fileinto reject envelope vacation imapflags notify subaddress
relational regex"
OK

paul@sigmund:/usr/lib/sasl2$ imtest -m login localhost
S: * OK sigmund Cyrus IMAP4 v2.1.18-IPv6-Debian-2.1.18-5.1 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS
NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT
THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE STARTTLS ANNOTATEMORE
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN paul {6}
S: + go ahead
C: <omitted>
S: L01 OK User logged in
Authenticated.
Security strength factor: 0


>From Horde's conf.php:
$conf['auth']['admins'] = array('paul');
$conf['auth']['checkip'] = true;
$conf['auth']['checkbrowser'] = true;
$conf['auth']['alternate_login'] = false;
$conf['auth']['redirect_on_logout'] = false;
$conf['auth']['params']['app'] = 'imp';
$conf['auth']['driver'] = 'application';


imp's servers.php:
$servers['cyrus'] = array(
    'name' => 'Cyrus IMAP Server',
    'server' => 'localhost',
    'hordeauth' => true,
    'protocol' => 'imap/notls',
    'port' => 143,
    'maildomain' => 'mail.vandervlis.nl',
    'smtphost' => 'localhost',
    'smtpport' => 25,
    'realm' => '',
    'preferred' => '',
(...)


paul@sigmund:/usr/lib/sasl2$ imtest -m login localhost
S: * OK sigmund Cyrus IMAP4 v2.1.18-IPv6-Debian-2.1.18-5.1 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS
NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT
THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE STARTTLS ANNOTATEMORE
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN paul {6}
S: + go ahead
C: <omitted>
S: L01 OK User logged in
Authenticated.
Security strength factor: 0



--
http://www.vandervlis.nl/

--
Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: ingo-unsubscribe@...

Re: Authentication Error with Sieve

by Paul van der Vlis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Paul van der Vlis schreef:

> I see Ingo uses timsieved, can I test timsieved directly?

I found a way, it lookslike the problem has nothing to do with Ingo:
--------
paul@sigmund:~$ sivtest -v localhost
S: "IMPLEMENTATION" "Cyrus timsieved v2.1.18-IPv6-Debian-2.1.18-5.1"
S: "SASL" "PLAIN"
S: "SIEVE" "fileinto reject envelope vacation imapflags notify
subaddress relational regex"
S: OK
Please enter your password:
C: AUTHENTICATE "PLAIN" {16+}
AHBhdWwAZXJ1NGJj
S: NO "Authentication Error"
Authentication failed. generic failure
Security strength factor: 0
--------

With regards,
Paul van der Vlis.




--
http://www.vandervlis.nl/

--
Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: ingo-unsubscribe@...

Re: Authentication Error with Sieve

by Paul van der Vlis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Paul van der Vlis schreef:

> Paul van der Vlis schreef:
>
>> I see Ingo uses timsieved, can I test timsieved directly?
>
> I found a way, it lookslike the problem has nothing to do with Ingo:
> --------
> paul@sigmund:~$ sivtest -v localhost
> S: "IMPLEMENTATION" "Cyrus timsieved v2.1.18-IPv6-Debian-2.1.18-5.1"
> S: "SASL" "PLAIN"
> S: "SIEVE" "fileinto reject envelope vacation imapflags notify
> subaddress relational regex"
> S: OK
> Please enter your password:
> C: AUTHENTICATE "PLAIN" {16+}
> AHBhdWwAZXJ1NGJj
> S: NO "Authentication Error"
> Authentication failed. generic failure
> Security strength factor: 0
> --------

The problem was that there was no mailbox created for the user.
With other users, there was no problem.

And yes, I did change the password ;-)

With regards,
Paul van der Vlis.




--
http://www.vandervlis.nl/

--
Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: ingo-unsubscribe@...