Hi

It's not working.

I've read through the .php files... and it seems everything comes from 
"lib/cyradm-php.lib "

Normaly, to create new users, I need to login as user "cyrus". This user 
is not present in ldap. it's a "internal system cyrus user"
I don't know how cyradm do, but trying to login as user cyrus by a 
telnet does not work :

su-2.04# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK diamond.lecentre.net Cyrus IMAP4 v2.0.9 server ready
. login "cyrus" "plain_pass"
. NO Login failed: authentication failure
. logout
* BYE LOGOUT received
. OK Completed
Connection closed by foreign host.

maybe the username is not really cyrus ??

php-cyradm does the same, and fail the same way :)
how does it work for you ?
how does cyradm work ??

Prune

Alain Turbide wrote:

> Check out this php based web admin interface 
> ftp://ftp.hr.vc-graz.ac.at/cyrus-tools/
> 
> Alain Turbide
> 
> ----- Original Message ----- 
> From: "prune" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, March 18, 2001 8:13 AM
> Subject: creating mailbox from php
> 
> 
> 
>> Hi,
>> 
>> I would like to create new mail user acount from a web page in PHP.
>> I'm using cyrus + pam ldap, with lmtp transfert with postfix.
>> 
>> Here are some solutions :
>> 
>> -creating a script file from php, and passing it to cyradm
>> 
>> -passing infos from php to cyradm (possible ??)
>> 
>> -using Cyrus::IMAP::Admin or Shell from php ???
>> 
>> -creating the new imap account directly from php, whith IMAP functions. 
>> This solution is the best... but is it possible, and how ?
>> using imap_open with user "cyrus" to act as an admin, and then do a 
>> imap_createmailbox 'user.foo' to create the foo mailbox  (as there is an 
>> existing foo user in ldap, but hat is another problem).
>> 
>> Hope you'll be able to help me. maybe something already exists ?
>> 
>> Prune
>> 
>> 

Reply via email to