Hi,

You was right. I need to create a cyrus user in my ldap.
I think admins musn't have real imap account... so don't create a 
"cyrus" imap mailbox.

The question is "what auth scheme is used when using cyradm" ? and "what 
can I do to make cyradm use the same scheme as a normal imap connection 
(in fact, pam-ldap) ?

Finaly, doing it with php seems easy. Yes, the php-cyradm is fine for 
logging into the server via sochet (telnet). What if I want to use 
php->imap ??
the function is imap_open :

int imap_open (string mailbox, string username, string password [, int 
flags])

as :

$mbox = imap_open("{localhost:143}INBOX","user_id","password");

for the cyrus user, which does not have a mailbox, what should the 
"INBOX" string be replaced with ??

Finaly, Maybe this should be added to the doc/FAQ about how to create a 
mailbox. I'll be pleased to help...

Cheers and thank for your help. I'll tell you more as soon as everything 
work.

Prune



Dan Ellis wrote:

> Your administration account must exist in whatever authentication scheme you 
> use (LDAP from what you say).  To make any account inyour ldap server be an 
> admin, simply put there name in the imapd.conf file.
> 
> Under php, you will still use the same admin name as with cyradm or ???, which 
> is the user in oyur ldap sturuct whose name also appears in the imapd.conf file.
> 
> You should also refrain from giving your admin accounts mail boxes...  (Can't 
> remember all the reasons why, but they are there... :))
> 
> Hope this helps.
> 
> PS(The sasldb only has use if you use it for authentication, which you aren't.)
> 
> 
> Quoting prune <[EMAIL PROTECTED]>:
> 
> 
>> Hi,
>> 
>> Dan Ellis wrote:
>> 
>> 
>>> If you are using the sasldb for authentication, I believe you have to
>> 
>> do a 
>> 
>>> sasldbpasswd -c <user> to add a user (in your case, cyrus).
>> 
>> I use pam ldap for authentication. As you can see in /etc/imapd.conf :
>> 
>> ...
>> admins: cyrus
>> allowanonymouslogin: no
>> #sasl_passwd_check: sasldb
>> #sasl_pwcheck_method: sasldb
>> sasl_pwcheck_method: PAM
>> lmtpsocket: /var/imap/socket/lmtp
>> ...
> 
> 
> 
> 
> -------------------------------------------------
> Sent by Black Hills Fibercom Webmail!

Reply via email to