Cyrus::IMAP PERL scripting problem

Dave O cxreg at pobox.com
Tue Sep 3 17:41:04 EDT 2002


This should allow you to log in using plaintext, assuming (I think) PLAIN
is listed as a mechanism in your imapd.conf

      $cyrus = Cyrus::IMAP::Admin->new($imap_server);
      $cyrus->authenticate(-mechanism => 'login', -user => $imap_user,
         -password => $imap_pass);

HTH
	Dave O

On Tue, 3 Sep 2002, Felix Cuello wrote:

> Hello,
>
>     I'm actually writting a tiny scripts to manage cyrus accounts via web
>     using PERL and Apache. I have cyrus 2.1.9 and sasl 2.1.7 and a few
>     problems to authenticate administrator from PERL using Cyrus::IMAP
>     library.
> To access to my cyrus server I use this lines:
>
> $cliente = Cyrus::IMAP::Admin->new('127.0.0.1');
> $cliente->create('user.test');
>
>
> And when I see the transaction using "ethereal" all works fine except that
> cyrus returns to me an error like "unable to authenticate user"...  In
> fact, I don't know how can I send username and password of the cyrus
> administrator user.
> There are more documentation about that, because man pages of Cyrus::IMAP
> library is not enough for me :-\
> Thanks a lot and sorry for my poor english.
>
> Felix
>
>
>
> ----------------------------------
>  Félix Cuello
>  felix at qodiga.com
>
>  Qodiga/its
>  Santa Fe 882 - Piso 13 - Of."E"
>  Buenos Aires, ARGENTINA
>  Tel:(054 011) 4312-1698
>  http://www.qodiga.com/
> ----------------------------------
>
>
>
>
>






More information about the Info-cyrus mailing list