Re: [Dovecot] Work with auth socket

2010-06-30 Thread Неворотин Вадим
Thanks, the problem was in base64. Timeout for 1 sec. I use only for testing. 2010/6/29 Steffen Kaiser > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Tue, 29 Jun 2010, Неворотин Вадим wrote: > > my $base64 = encode_base64("\0$login\0$passwd"); >> $sock->send("AUTH\t1\tPLAIN\tservice=$

Re: [Dovecot] Work with auth socket

2010-06-29 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 29 Jun 2010, Неворотин Вадим wrote: my $base64 = encode_base64("\0$login\0$passwd"); $sock->send("AUTH\t1\tPLAIN\tservice=$service\tsecured\tresp=$base64\n") or die "Can't write to $socket"; There is a wicked side effect of encode_base64()

Re: [Dovecot] Work with auth socket

2010-06-29 Thread Неворотин Вадим
Yes, but this module doesn't work with my dovecot)) So I've tried to manually debug it - and it really does not work and has an error somewhere. Dovecot 1.2.10 from Debian backports. 2010/6/29 Anton Dollmaier > Hi, > > > > I've wrote such script: >> > > use Authen::SASL::Authd, as suggested b

Re: [Dovecot] Work with auth socket

2010-06-29 Thread Anton Dollmaier
Hi, I've wrote such script: use Authen::SASL::Authd, as suggested by Steffen. This code-snippet should help you: http://search.cpan.org/~sasha/Authen-SASL-Authd-0.04/lib/Authen/SASL/Authd.pm #!/usr/bin/perl use Authen::SASL::Authd qw(auth_cyrus auth_dovecot); $login = "test"; $passwd

[Dovecot] Work with auth socket

2010-06-29 Thread Неворотин Вадим
-- Forwarded message -- From: Неворотин Вадим Date: 2010/6/29 Subject: Re: [Dovecot] Work with auth socket To: Steffen Kaiser Hmm, I have some problems with realization of authentication throw dovecot socket. I've wrote such script: #!/usr/bin/perl $login = "test

Re: [Dovecot] Work with auth socket

2010-06-24 Thread Неворотин Вадим
Thank you! 2010/6/24 Steffen Kaiser > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > On Thu, 24 Jun 2010, Неворотин Вадим wrote: > > I need to use Dovecot auth socket from my perl script to validate user's >> passwords (for jabber server). Is there any information about how to >> communi

Re: [Dovecot] Work with auth socket

2010-06-24 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 24 Jun 2010, Неворотин Вадим wrote: I need to use Dovecot auth socket from my perl script to validate user's passwords (for jabber server). Is there any information about how to communicate with dovecot auth socket? http://search.cpan.org/

[Dovecot] Work with auth socket

2010-06-24 Thread Неворотин Вадим
I need to use Dovecot auth socket from my perl script to validate user's passwords (for jabber server). Is there any information about how to communicate with dovecot auth socket?