Can't delete a mailbox

2003-02-11 Thread Gregory Chagnon
Hi-
I'm having a problem deleting a Cyrus mailbox.  Here is what happens:

[root@Lunar]:/home/gchagnon su mail.admin
bash-2.05b$ cyradm localhost
IMAP Password:
Lunar cm testmailbox
Lunar dm testmailbox
deletemailbox: Permission denied
Lunar


mail.admin exists in my ldap database.  Thanks for any help!
-Greg

_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail



Re: php and cyrus

2002-11-26 Thread Gregory Chagnon
Hi again-
Thanks for all the suggestions, but everything that I've tried results in 
this error, obviously the 2nd and 3rd errors are a result from the 1st one:

Warning: Couldn't open stream {192.168.1.200:143} in 
/var/www/html/user/mail2.php on line 42

Warning: imap_listmailbox(): supplied argument is not a valid imap resource 
in /var/www/html/user/mail2.php on line 55

Warning: imap_createmailbox(): supplied argument is not a valid imap 
resource in /var/www/html/user/mail2.php on line 61







From: Kendrick Vargas [EMAIL PROTECTED]
To: Gregory Chagnon [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: php and cyrus
Date: Mon, 25 Nov 2002 21:47:35 -0500 (EST)

Here's a small attachment you can use as an include file. You can use it
as such from PHP:

$server = new IMAP_Server();
$server-createMailbox(user.whatever);
$server-deleteMailbox(user.whatever);

Both functions return true or false on success or failure (respectively).
You can edit the file and set the proper variables, or you can pass them
in when you create the object.
			-peace

On Mon, 25 Nov 2002, Gregory Chagnon wrote:

 Hi-
 I tried something like that before, but I get this error:

 Warning: Couldn't open stream {192.168.1.200} in
 /var/www/html/user/mail2.php on line 7

 Any ideas?  Thanks all.
 -Greg






 From: Veigar Freyr Jökulsson [EMAIL PROTECTED]
 To: Gregory Chagnon
 [EMAIL PROTECTED],[EMAIL PROTECTED]
 Subject: Re: php and cyrus
 Date: Tue, 26 Nov 2002 00:40:42 -
 
   Hi-
   Does anyone know if there is a way to create a cyrus user and 
mailboxes
   through php?  I've looked around at imap_createmailbox() but am 
unlcear
 on
   how to use it.  Thanks!!
   -Greg
  
 
 You could do something like this, $uid is the login name you want to
 create:
 
  $IMAPhost = 123.123.123.123;
  $IMAPquota = 10240,
  $username = cyrus;
  $password = password;
  $imapconn = imap_open({ . $IMAPhost . }, $username,
 $password,OP_HALFOPEN);
  if ($imapconn) {
  imap_createmailbox($imapconn, { . $IMAPhost .
 }user..$uid ) or die(can't connect: .imap_last_error());
  imap_set_quota($imapconn, user.$uid, $IMAPquota) or
 die(can't connect: .imap_last_error());
  imap_close($imapconn);
  }
 
 
 --
 Veigar Freyr Jökulsson
 [EMAIL PROTECTED]


 _
 Tired of spam? Get advanced junk mail protection with MSN 8.
 http://join.msn.com/?page=features/junkmail



--
Let he who is without clue kiss my ass
 IMAP_Classes.inc 


_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail



php and cyrus

2002-11-25 Thread Gregory Chagnon
Hi-
Does anyone know if there is a way to create a cyrus user and mailboxes 
through php?  I've looked around at imap_createmailbox() but am unlcear on 
how to use it.  Thanks!!
-Greg





_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus



Re: php and cyrus

2002-11-25 Thread Gregory Chagnon
Hi-
I tried something like that before, but I get this error:

Warning: Couldn't open stream {192.168.1.200} in 
/var/www/html/user/mail2.php on line 7

Any ideas?  Thanks all.
-Greg






From: Veigar Freyr Jökulsson [EMAIL PROTECTED]
To: Gregory Chagnon 
[EMAIL PROTECTED],[EMAIL PROTECTED]
Subject: Re: php and cyrus
Date: Tue, 26 Nov 2002 00:40:42 -

 Hi-
 Does anyone know if there is a way to create a cyrus user and mailboxes
 through php?  I've looked around at imap_createmailbox() but am unlcear 
on
 how to use it.  Thanks!!
 -Greg


You could do something like this, $uid is the login name you want to 
create:

$IMAPhost = 123.123.123.123;
$IMAPquota = 10240,
$username = cyrus;
$password = password;
$imapconn = imap_open({ . $IMAPhost . }, $username,
$password,OP_HALFOPEN);
if ($imapconn) {
imap_createmailbox($imapconn, { . $IMAPhost .
}user..$uid ) or die(can't connect: .imap_last_error());
imap_set_quota($imapconn, user.$uid, $IMAPquota) or
die(can't connect: .imap_last_error());
imap_close($imapconn);
}


--
Veigar Freyr Jökulsson
[EMAIL PROTECTED]


_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail



cyradm - problem with dotted usernames?

2002-11-20 Thread Gregory Chagnon
Hi-
Does anyone know why I'm having a problem adding a username with a dot in 
it?  Running cyradm I get:

Lunar cm user.administrator
Lunar cm user.mail.admin
createmailbox: Permission denied
Lunar

Any workaround for this?  Thanks!!
-Greg


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



Re: Not seeing Inbox

2002-11-20 Thread Gregory Chagnon
Thanks...so how would I go about setting up an IMAP account for user 
testuser that would have the same folders as a Microsoft Exchange server?  
I'm trying to get this thing looking as similar to the Exchange server as 
possible so I'd like to have a visible Inbox, Sent Items, Deleted Items, 
Outbox, and Drafts...Thanks again.
-Greg






From: Edward Rudd [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Not seeing Inbox
Date: 20 Nov 2002 15:28:27 -0600

AFAIN Outlook does not display a inbox folder as a seperate.. the
inbox is the parent for the 2 folders you mentioned (sent items and
drafts) within Outlook..

On Wed, 2002-11-20 at 10:02, Gregory Chagnon wrote:
 Hi-
 After creating a mailbox (cm user.testuser) I created an account in 
Ooulook
 Express.  It connects and authenticates just fine, but the only 2 
folders
 that show up are Sent Items and Drafts, I don't see an Inbox.

 Also, I've noticed that sometimes the server rejects my login the first 
1 or
 2 times but works fine the 2nd or 3rd times.  This also sometimes 
happens
 with cyradm.  Any ideas what could be wrong?  Thanks again for all the 
help.
 -Greg

 _
 MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
 http://join.msn.com/?page=features/virus
--
Edward Rudd [EMAIL PROTECTED]


_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail



cyrus-sasl / ldap problem

2002-10-29 Thread Gregory Chagnon
Hi:I'm having a problem getting Cyrus IMAP to work with OpenLDAP.  User 
cliff.clavin is under ou=Users,dc=gregbox,dc=com.  When I run imtest, here 
is the error I get...thanks everyone so much in advance:

[rootLunar]:/home/gchagnon imtest -m login -a cliff.clavin localhost
S: * OK Lunar Cyrus IMAP4 v2.1.9-Invoca-RPM-2.1.9-6 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 LISTEXT 
LIST-SUBSCRIBED ANNOTATEMORE X-NETSCAPE
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN cliff.clavin {6}
S: + go ahead
C: omitted
S: L01 NO Login failed: generic failure
Authentication failed. generic failure
Security strength factor: 0
C: Q01 LOGOUT
Connection closed.


Here is the entry from /var/log/imap.log:

Oct 29 08:47:14 Lunar master[6197]: about to exec /usr/libexec/cyrus/imapd
Oct 29 08:47:14 Lunar imap[6197]: executed
Oct 29 08:47:14 Lunar imapd[5489]: accepted connection
Oct 29 08:47:16 Lunar imapd[5489]: badlogin: Lunar[127.0.0.1] plaintext 
cliff.clavin SASL(-1): generic failure: checkpass failed
Oct 29 08:48:24 Lunar master[5446]: process 5489 exited, status 0


Here are my config files:

imap.conf

configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cliff.clavin cyrus gchagnon
allowanonymouslogin: no
sieveuserhomedir: no
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_passwd_check: saslauthd
sasl_ldap_server: localhost
#sasl_ldap_basedn: ou=Users,dc=gregbox,dc=com
sasl_ldap_basedn: dc=gregbox,dc=com
sasl_mech_list: PLAIN
tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem

saslauthd.conf

ldap_servers: ldap://localhost/
ldap_bind_dn: cn=Manager,dc=gregbox,dc=com
ldap_bind_pw: ***

slapd.conf (important parts)
databaseldbm
suffix  dc=gregbox,dc=com
rootdn  cn=Manager,dc=gregbox,dc=com
rootpw  ***
directory   /var/lib/ldap

index   objectClass,uid,uidNumber,gidNumber,memberUid   eq
index   cn,mail,surname,givenname   eq,subinitial



_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



Re: cyrus-sasl / ldap problem

2002-10-29 Thread Gregory Chagnon
One thing I left out, here is an entry from /var/log/auth.log which is 
entered everytime I try imtest:

Oct 29 09:31:37 Lunar imapd[5495]: cannot connect to saslauthd server: No 
such file or directory







From: Gregory Chagnon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: cyrus-sasl / ldap problem
Date: Tue, 29 Oct 2002 08:52:40 -0500

Hi:I'm having a problem getting Cyrus IMAP to work with OpenLDAP.  User 
cliff.clavin is under ou=Users,dc=gregbox,dc=com.  When I run imtest, here 
is the error I get...thanks everyone so much in advance:

[root@Lunar]:/home/gchagnon imtest -m login -a cliff.clavin localhost
S: * OK Lunar Cyrus IMAP4 v2.1.9-Invoca-RPM-2.1.9-6 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 LISTEXT 
LIST-SUBSCRIBED ANNOTATEMORE X-NETSCAPE
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN cliff.clavin {6}
S: + go ahead
C: omitted
S: L01 NO Login failed: generic failure
Authentication failed. generic failure
Security strength factor: 0
C: Q01 LOGOUT
Connection closed.


Here is the entry from /var/log/imap.log:

Oct 29 08:47:14 Lunar master[6197]: about to exec /usr/libexec/cyrus/imapd
Oct 29 08:47:14 Lunar imap[6197]: executed
Oct 29 08:47:14 Lunar imapd[5489]: accepted connection
Oct 29 08:47:16 Lunar imapd[5489]: badlogin: Lunar[127.0.0.1] plaintext 
cliff.clavin SASL(-1): generic failure: checkpass failed
Oct 29 08:48:24 Lunar master[5446]: process 5489 exited, status 0


Here are my config files:

imap.conf

configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cliff.clavin cyrus gchagnon
allowanonymouslogin: no
sieveuserhomedir: no
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_passwd_check: saslauthd
sasl_ldap_server: localhost
#sasl_ldap_basedn: ou=Users,dc=gregbox,dc=com
sasl_ldap_basedn: dc=gregbox,dc=com
sasl_mech_list: PLAIN
tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem

saslauthd.conf

ldap_servers: ldap://localhost/
ldap_bind_dn: cn=Manager,dc=gregbox,dc=com
ldap_bind_pw: ***

slapd.conf (important parts)
databaseldbm
suffix  dc=gregbox,dc=com
rootdn  cn=Manager,dc=gregbox,dc=com
rootpw  ***
directory   /var/lib/ldap

index   objectClass,uid,uidNumber,gidNumber,memberUid   eq
index   cn,mail,surname,givenname   eq,subinitial



_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


_
Choose an Internet access plan right for you -- try MSN! 
http://resourcecenter.msn.com/access/plans/default.asp



Re: cyrus-sasl / ldap problem

2002-10-29 Thread Gregory Chagnon
Igor:
I get this error when I run testsaslauthd:
[root@Lunar]:/usr/src/cyrus-sasl-2.1.9/saslauthd ./testsaslauthd -u 
cliff.clavin -p *
connect() : No such file or directory







From: Igor Brezac [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Gregory Chagnon [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: cyrus-sasl / ldap problem
Date: Tue, 29 Oct 2002 09:22:22 -0500 (EST)


Test saslauthd first.  cd $cyrus-sasl-src/saslauthd; make testsaslauthd
./testsaslauthd -u username -p password

If you do not get OK, check syslog for saslauthd errors.

-Igor

On Tue, 29 Oct 2002, Gregory Chagnon wrote:

 Hi:I'm having a problem getting Cyrus IMAP to work with OpenLDAP.  User
 cliff.clavin is under ou=Users,dc=gregbox,dc=com.  When I run imtest, 
here
 is the error I get...thanks everyone so much in advance:

 [root@Lunar]:/home/gchagnon imtest -m login -a cliff.clavin localhost
 S: * OK Lunar Cyrus IMAP4 v2.1.9-Invoca-RPM-2.1.9-6 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 LISTEXT
 LIST-SUBSCRIBED ANNOTATEMORE X-NETSCAPE
 S: C01 OK Completed
 Please enter your password:
 C: L01 LOGIN cliff.clavin {6}
 S: + go ahead
 C: omitted
 S: L01 NO Login failed: generic failure
 Authentication failed. generic failure
 Security strength factor: 0
 C: Q01 LOGOUT
 Connection closed.


 Here is the entry from /var/log/imap.log:

 Oct 29 08:47:14 Lunar master[6197]: about to exec 
/usr/libexec/cyrus/imapd
 Oct 29 08:47:14 Lunar imap[6197]: executed
 Oct 29 08:47:14 Lunar imapd[5489]: accepted connection
 Oct 29 08:47:16 Lunar imapd[5489]: badlogin: Lunar[127.0.0.1] plaintext
 cliff.clavin SASL(-1): generic failure: checkpass failed
 Oct 29 08:48:24 Lunar master[5446]: process 5489 exited, status 0


 Here are my config files:

 imap.conf

 configdirectory: /var/lib/imap
 partition-default: /var/spool/imap
 admins: cliff.clavin cyrus gchagnon
 allowanonymouslogin: no
 sieveuserhomedir: no
 sievedir: /var/lib/imap/sieve
 sendmail: /usr/sbin/sendmail
 hashimapspool: true
 sasl_pwcheck_method: saslauthd
 sasl_passwd_check: saslauthd
 sasl_ldap_server: localhost
 #sasl_ldap_basedn: ou=Users,dc=gregbox,dc=com
 sasl_ldap_basedn: dc=gregbox,dc=com
 sasl_mech_list: PLAIN
 tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
 tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem

 saslauthd.conf

 ldap_servers: ldap://localhost/
 ldap_bind_dn: cn=Manager,dc=gregbox,dc=com
 ldap_bind_pw: ***

 slapd.conf (important parts)
 databaseldbm
 suffix  dc=gregbox,dc=com
 rootdn  cn=Manager,dc=gregbox,dc=com
 rootpw  ***
 directory   /var/lib/ldap

 index   objectClass,uid,uidNumber,gidNumber,memberUid   eq
 index   cn,mail,surname,givenname   eq,subinitial



 _
 Protect your PC - get McAfee.com VirusScan Online
 http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



--
Igor


_
Unlimited Internet access -- and 2 months free!  Try MSN. 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp



Re: cyrus-sasl / ldap problem

2002-10-29 Thread Gregory Chagnon
[root@Lunar]:/var/log /etc/init.d/saslauthd status
saslauthd (pid 7636 7635 7634 7631 7630) is running...

So it looks like saslauthd is running...I got the source RPMs from the RH 8 
CD.  I don't think it's a problem with saslauthd, I think it's a problem 
with Cyrus IMAP...
-Greg






From: Igor Brezac [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Gregory Chagnon [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: cyrus-sasl / ldap problem
Date: Tue, 29 Oct 2002 10:52:59 -0500 (EST)


It looks like saslauthd is not running or testsaslauthd is pointing to a
wrong socket.  I am not sure where you got your rpm sources from, but I
suggest that you get the sources from CMU and recompile:
http://asg.web.cmu.edu/cyrus/download/

I recommend that you download cyrus-sasl from CVS:
http://asg.web.cmu.edu/cyrus/download/anoncvs.html

-Igor

On Tue, 29 Oct 2002, Gregory Chagnon wrote:

 Igor:
 I get this error when I run testsaslauthd:
 [root@Lunar]:/usr/src/cyrus-sasl-2.1.9/saslauthd ./testsaslauthd -u
 cliff.clavin -p *
 connect() : No such file or directory







 From: Igor Brezac [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Gregory Chagnon [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 Subject: Re: cyrus-sasl / ldap problem
 Date: Tue, 29 Oct 2002 09:22:22 -0500 (EST)
 
 
 Test saslauthd first.  cd $cyrus-sasl-src/saslauthd; make testsaslauthd
 ./testsaslauthd -u username -p password
 
 If you do not get OK, check syslog for saslauthd errors.
 
 -Igor
 
 On Tue, 29 Oct 2002, Gregory Chagnon wrote:
 
   Hi:I'm having a problem getting Cyrus IMAP to work with OpenLDAP.  
User
   cliff.clavin is under ou=Users,dc=gregbox,dc=com.  When I run 
imtest,
 here
   is the error I get...thanks everyone so much in advance:
  
   [root@Lunar]:/home/gchagnon imtest -m login -a cliff.clavin 
localhost
   S: * OK Lunar Cyrus IMAP4 v2.1.9-Invoca-RPM-2.1.9-6 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 LISTEXT
   LIST-SUBSCRIBED ANNOTATEMORE X-NETSCAPE
   S: C01 OK Completed
   Please enter your password:
   C: L01 LOGIN cliff.clavin {6}
   S: + go ahead
   C: omitted
   S: L01 NO Login failed: generic failure
   Authentication failed. generic failure
   Security strength factor: 0
   C: Q01 LOGOUT
   Connection closed.
  
  
   Here is the entry from /var/log/imap.log:
  
   Oct 29 08:47:14 Lunar master[6197]: about to exec
 /usr/libexec/cyrus/imapd
   Oct 29 08:47:14 Lunar imap[6197]: executed
   Oct 29 08:47:14 Lunar imapd[5489]: accepted connection
   Oct 29 08:47:16 Lunar imapd[5489]: badlogin: Lunar[127.0.0.1] 
plaintext
   cliff.clavin SASL(-1): generic failure: checkpass failed
   Oct 29 08:48:24 Lunar master[5446]: process 5489 exited, status 0
  
  
   Here are my config files:
  
   imap.conf
  
   configdirectory: /var/lib/imap
   partition-default: /var/spool/imap
   admins: cliff.clavin cyrus gchagnon
   allowanonymouslogin: no
   sieveuserhomedir: no
   sievedir: /var/lib/imap/sieve
   sendmail: /usr/sbin/sendmail
   hashimapspool: true
   sasl_pwcheck_method: saslauthd
   sasl_passwd_check: saslauthd
   sasl_ldap_server: localhost
   #sasl_ldap_basedn: ou=Users,dc=gregbox,dc=com
   sasl_ldap_basedn: dc=gregbox,dc=com
   sasl_mech_list: PLAIN
   tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
   tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
  
   saslauthd.conf
  
   ldap_servers: ldap://localhost/
   ldap_bind_dn: cn=Manager,dc=gregbox,dc=com
   ldap_bind_pw: ***
  
   slapd.conf (important parts)
   databaseldbm
   suffix  dc=gregbox,dc=com
   rootdn  cn=Manager,dc=gregbox,dc=com
   rootpw  ***
   directory   /var/lib/ldap
  
   index   objectClass,uid,uidNumber,gidNumber,memberUid   eq
   index   cn,mail,surname,givenname   
eq,subinitial
  
  
  
   _
   Protect your PC - get McAfee.com VirusScan Online
   http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
  
  
 
 --
 Igor


 _
 Unlimited Internet access -- and 2 months free!  Try MSN.
 http://resourcecenter.msn.com/access/plans/2monthsfree.asp



--
Igor


_
Surf the Web without missing calls! Get MSN Broadband.  
http://resourcecenter.msn.com/access/plans/freeactivation.asp



Re: cyrus-sasl / ldap problem

2002-10-29 Thread Gregory Chagnon
I got testsaslauthd to work...I had to specify the socket:
[root@Lunar]:/usr/src/cyrus-sasl-2.1.9/saslauthd ./testsaslauthd -u 
cliff.clavin -p  -f /var/run/saslauthd/mux
0: NO authentication failed

Do I have to specify anywhere in Cyrus imapd where to look for this socket 
as well?
-Greg







From: Igor Brezac [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Gregory Chagnon [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: cyrus-sasl / ldap problem
Date: Tue, 29 Oct 2002 10:52:59 -0500 (EST)


It looks like saslauthd is not running or testsaslauthd is pointing to a
wrong socket.  I am not sure where you got your rpm sources from, but I
suggest that you get the sources from CMU and recompile:
http://asg.web.cmu.edu/cyrus/download/

I recommend that you download cyrus-sasl from CVS:
http://asg.web.cmu.edu/cyrus/download/anoncvs.html

-Igor

On Tue, 29 Oct 2002, Gregory Chagnon wrote:

 Igor:
 I get this error when I run testsaslauthd:
 [root@Lunar]:/usr/src/cyrus-sasl-2.1.9/saslauthd ./testsaslauthd -u
 cliff.clavin -p *
 connect() : No such file or directory







 From: Igor Brezac [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Gregory Chagnon [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 Subject: Re: cyrus-sasl / ldap problem
 Date: Tue, 29 Oct 2002 09:22:22 -0500 (EST)
 
 
 Test saslauthd first.  cd $cyrus-sasl-src/saslauthd; make testsaslauthd
 ./testsaslauthd -u username -p password
 
 If you do not get OK, check syslog for saslauthd errors.
 
 -Igor
 
 On Tue, 29 Oct 2002, Gregory Chagnon wrote:
 
   Hi:I'm having a problem getting Cyrus IMAP to work with OpenLDAP.  
User
   cliff.clavin is under ou=Users,dc=gregbox,dc=com.  When I run 
imtest,
 here
   is the error I get...thanks everyone so much in advance:
  
   [root@Lunar]:/home/gchagnon imtest -m login -a cliff.clavin 
localhost
   S: * OK Lunar Cyrus IMAP4 v2.1.9-Invoca-RPM-2.1.9-6 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 LISTEXT
   LIST-SUBSCRIBED ANNOTATEMORE X-NETSCAPE
   S: C01 OK Completed
   Please enter your password:
   C: L01 LOGIN cliff.clavin {6}
   S: + go ahead
   C: omitted
   S: L01 NO Login failed: generic failure
   Authentication failed. generic failure
   Security strength factor: 0
   C: Q01 LOGOUT
   Connection closed.
  
  
   Here is the entry from /var/log/imap.log:
  
   Oct 29 08:47:14 Lunar master[6197]: about to exec
 /usr/libexec/cyrus/imapd
   Oct 29 08:47:14 Lunar imap[6197]: executed
   Oct 29 08:47:14 Lunar imapd[5489]: accepted connection
   Oct 29 08:47:16 Lunar imapd[5489]: badlogin: Lunar[127.0.0.1] 
plaintext
   cliff.clavin SASL(-1): generic failure: checkpass failed
   Oct 29 08:48:24 Lunar master[5446]: process 5489 exited, status 0
  
  
   Here are my config files:
  
   imap.conf
  
   configdirectory: /var/lib/imap
   partition-default: /var/spool/imap
   admins: cliff.clavin cyrus gchagnon
   allowanonymouslogin: no
   sieveuserhomedir: no
   sievedir: /var/lib/imap/sieve
   sendmail: /usr/sbin/sendmail
   hashimapspool: true
   sasl_pwcheck_method: saslauthd
   sasl_passwd_check: saslauthd
   sasl_ldap_server: localhost
   #sasl_ldap_basedn: ou=Users,dc=gregbox,dc=com
   sasl_ldap_basedn: dc=gregbox,dc=com
   sasl_mech_list: PLAIN
   tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
   tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
  
   saslauthd.conf
  
   ldap_servers: ldap://localhost/
   ldap_bind_dn: cn=Manager,dc=gregbox,dc=com
   ldap_bind_pw: ***
  
   slapd.conf (important parts)
   databaseldbm
   suffix  dc=gregbox,dc=com
   rootdn  cn=Manager,dc=gregbox,dc=com
   rootpw  ***
   directory   /var/lib/ldap
  
   index   objectClass,uid,uidNumber,gidNumber,memberUid   eq
   index   cn,mail,surname,givenname   
eq,subinitial
  
  
  
   _
   Protect your PC - get McAfee.com VirusScan Online
   http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
  
  
 
 --
 Igor


 _
 Unlimited Internet access -- and 2 months free!  Try MSN.
 http://resourcecenter.msn.com/access/plans/2monthsfree.asp



--
Igor


_
Internet access plans that fit your lifestyle -- join MSN. 
http://resourcecenter.msn.com/access/plans/default.asp



Re: cyrus-sasl / ldap problem

2002-10-29 Thread Gregory Chagnon
One more thing...now when I run testsaslauthd, I get this entry in 
/var/log/ldap.log:

Oct 29 14:13:58 Lunar slapd[5790]: conn=102 op=1 SRCH base= scope=2 
filter=(uid=greg.chagnon)
Oct 29 14:13:58 Lunar slapd[5790]: send_ldap_result: conn=102 op=1 p=3
Oct 29 14:13:58 Lunar slapd[5790]: send_ldap_result: 10::
Oct 29 14:13:58 Lunar slapd[5790]: send_ldap_response: msgid=2 tag=101 
err=32
Oct 29 14:13:58 Lunar slapd[5790]: conn=102 op=1 RESULT tag=101 err=32 text=

Shouldn't SRCH base be set to something?  In my case it would be 
ou=Users,dc=gregbox,dc=com.  Where is that set?
-Greg






From: Igor Brezac [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Gregory Chagnon [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: cyrus-sasl / ldap problem
Date: Tue, 29 Oct 2002 10:52:59 -0500 (EST)


It looks like saslauthd is not running or testsaslauthd is pointing to a
wrong socket.  I am not sure where you got your rpm sources from, but I
suggest that you get the sources from CMU and recompile:
http://asg.web.cmu.edu/cyrus/download/

I recommend that you download cyrus-sasl from CVS:
http://asg.web.cmu.edu/cyrus/download/anoncvs.html

-Igor

On Tue, 29 Oct 2002, Gregory Chagnon wrote:

 Igor:
 I get this error when I run testsaslauthd:
 [root@Lunar]:/usr/src/cyrus-sasl-2.1.9/saslauthd ./testsaslauthd -u
 cliff.clavin -p *
 connect() : No such file or directory







 From: Igor Brezac [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Gregory Chagnon [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 Subject: Re: cyrus-sasl / ldap problem
 Date: Tue, 29 Oct 2002 09:22:22 -0500 (EST)
 
 
 Test saslauthd first.  cd $cyrus-sasl-src/saslauthd; make testsaslauthd
 ./testsaslauthd -u username -p password
 
 If you do not get OK, check syslog for saslauthd errors.
 
 -Igor
 
 On Tue, 29 Oct 2002, Gregory Chagnon wrote:
 
   Hi:I'm having a problem getting Cyrus IMAP to work with OpenLDAP.  
User
   cliff.clavin is under ou=Users,dc=gregbox,dc=com.  When I run 
imtest,
 here
   is the error I get...thanks everyone so much in advance:
  
   [root@Lunar]:/home/gchagnon imtest -m login -a cliff.clavin 
localhost
   S: * OK Lunar Cyrus IMAP4 v2.1.9-Invoca-RPM-2.1.9-6 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 LISTEXT
   LIST-SUBSCRIBED ANNOTATEMORE X-NETSCAPE
   S: C01 OK Completed
   Please enter your password:
   C: L01 LOGIN cliff.clavin {6}
   S: + go ahead
   C: omitted
   S: L01 NO Login failed: generic failure
   Authentication failed. generic failure
   Security strength factor: 0
   C: Q01 LOGOUT
   Connection closed.
  
  
   Here is the entry from /var/log/imap.log:
  
   Oct 29 08:47:14 Lunar master[6197]: about to exec
 /usr/libexec/cyrus/imapd
   Oct 29 08:47:14 Lunar imap[6197]: executed
   Oct 29 08:47:14 Lunar imapd[5489]: accepted connection
   Oct 29 08:47:16 Lunar imapd[5489]: badlogin: Lunar[127.0.0.1] 
plaintext
   cliff.clavin SASL(-1): generic failure: checkpass failed
   Oct 29 08:48:24 Lunar master[5446]: process 5489 exited, status 0
  
  
   Here are my config files:
  
   imap.conf
  
   configdirectory: /var/lib/imap
   partition-default: /var/spool/imap
   admins: cliff.clavin cyrus gchagnon
   allowanonymouslogin: no
   sieveuserhomedir: no
   sievedir: /var/lib/imap/sieve
   sendmail: /usr/sbin/sendmail
   hashimapspool: true
   sasl_pwcheck_method: saslauthd
   sasl_passwd_check: saslauthd
   sasl_ldap_server: localhost
   #sasl_ldap_basedn: ou=Users,dc=gregbox,dc=com
   sasl_ldap_basedn: dc=gregbox,dc=com
   sasl_mech_list: PLAIN
   tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
   tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
  
   saslauthd.conf
  
   ldap_servers: ldap://localhost/
   ldap_bind_dn: cn=Manager,dc=gregbox,dc=com
   ldap_bind_pw: ***
  
   slapd.conf (important parts)
   databaseldbm
   suffix  dc=gregbox,dc=com
   rootdn  cn=Manager,dc=gregbox,dc=com
   rootpw  ***
   directory   /var/lib/ldap
  
   index   objectClass,uid,uidNumber,gidNumber,memberUid   eq
   index   cn,mail,surname,givenname   
eq,subinitial
  
  
  
   _
   Protect your PC - get McAfee.com VirusScan Online
   http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
  
  
 
 --
 Igor


 _
 Unlimited Internet access -- and 2 months free!  Try MSN.
 http://resourcecenter.msn.com/access/plans/2monthsfree.asp



--
Igor


_
Get faster connections -- switch to MSN Internet Access! 
http://resourcecenter.msn.com/access/plans/default.asp



Re: cyrus-sasl / ldap problem

2002-10-29 Thread Gregory Chagnon
]: = root access granted
Oct 29 15:04:09 Lunar slapd[3188]: = access_allowed: read access to 
uid=cliff.clavin,ou=Users,dc=gregbox,dc=com homeDirectory requested
Oct 29 15:04:09 Lunar slapd[3188]: = root access granted
Oct 29 15:04:09 Lunar slapd[3188]: = access_allowed: read access to 
uid=cliff.clavin,ou=Users,dc=gregbox,dc=com loginShell requested
Oct 29 15:04:09 Lunar slapd[3188]: = root access granted
Oct 29 15:04:09 Lunar slapd[3188]: = access_allowed: read access to 
uid=cliff.clavin,ou=Users,dc=gregbox,dc=com loginShell requested
Oct 29 15:04:09 Lunar slapd[3188]: = root access granted
Oct 29 15:04:10 Lunar slapd[3188]: = access_allowed: read access to 
uid=cliff.clavin,ou=Users,dc=gregbox,dc=com gecos requested
Oct 29 15:04:10 Lunar slapd[3188]: = root access granted
Oct 29 15:04:10 Lunar slapd[3188]: = access_allowed: read access to 
uid=cliff.clavin,ou=Users,dc=gregbox,dc=com gecos requested
Oct 29 15:04:10 Lunar slapd[3188]: = root access granted
Oct 29 15:04:10 Lunar slapd[3188]: = access_allowed: read access to 
uid=cliff.clavin,ou=Users,dc=gregbox,dc=com description requested
Oct 29 15:04:10 Lunar slapd[3188]: = root access granted
Oct 29 15:04:10 Lunar slapd[3188]: = access_allowed: read access to 
uid=cliff.clavin,ou=Users,dc=gregbox,dc=com description requested
Oct 29 15:04:10 Lunar slapd[3188]: = root access granted
Oct 29 15:04:10 Lunar slapd[3188]: = access_allowed: read access to 
uid=cliff.clavin,ou=Users,dc=gregbox,dc=com userPassword requested
Oct 29 15:04:10 Lunar slapd[3188]: = root access granted
Oct 29 15:04:10 Lunar slapd[3188]: = access_allowed: read access to 
uid=cliff.clavin,ou=Users,dc=gregbox,dc=com userPassword requested
Oct 29 15:04:10 Lunar slapd[3188]: = root access granted
Oct 29 15:04:10 Lunar slapd[3188]: conn=122 op=1 ENTRY 
dn=uid=cliff.clavin,ou=Users,dc=gregbox,dc=com
Oct 29 15:04:10 Lunar slapd[3188]: = send_search_entry
Oct 29 15:04:10 Lunar slapd[3188]:  cache_return_entry_r( 26 ): 
returned (0)
Oct 29 15:04:10 Lunar slapd[3188]: send_ldap_search_result 0::
Oct 29 15:04:10 Lunar slapd[3188]: send_ldap_response: msgid=2 tag=101 err=0
Oct 29 15:04:10 Lunar slapd[3188]: conn=122 op=1 SEARCH RESULT tag=101 err=0 
text=
Oct 29 15:04:10 Lunar slapd[664]: daemon: activity on 1 descriptors
Oct 29 15:04:10 Lunar slapd[664]: daemon: activity on:
Oct 29 15:04:10 Lunar slapd[664]:  23r
Oct 29 15:04:10 Lunar slapd[664]:
Oct 29 15:04:10 Lunar slapd[664]: daemon: read activity on 23
Oct 29 15:04:10 Lunar slapd[664]: connection_get(23)
Oct 29 15:04:10 Lunar slapd[664]: connection_get(23): got connid=122
Oct 29 15:04:10 Lunar slapd[664]: connection_read(23): checking for input on 
id=122
Oct 29 15:04:10 Lunar slapd[664]: ber_get_next on fd 23 failed errno=11 
(Resource temporarily unavailable)
Oct 29 15:04:10 Lunar slapd[11016]: do_bind
Oct 29 15:04:10 Lunar slapd[664]: daemon: select: listen=6 active_threads=1 
tvp=NULL
Oct 29 15:04:10 Lunar slapd[11016]: do_bind: version=3 
dn=uid=cliff.clavin,ou=Users,dc=gregbox,dc=com method=128
Oct 29 15:04:10 Lunar slapd[11016]: conn=122 op=2 BIND 
dn=UID=CLIFF.CLAVIN,OU=USERS,DC=GREGBOX,DC=COM method=128
Oct 29 15:04:10 Lunar slapd[11016]: == ldbm_back_bind: dn: 
uid=cliff.clavin,ou=Users,dc=gregbox,dc=com
Oct 29 15:04:10 Lunar slapd[11016]: dn2entry_r: dn: 
UID=CLIFF.CLAVIN,OU=USERS,DC=GREGBOX,DC=COM
Oct 29 15:04:10 Lunar slapd[11016]: = dn2id( 
UID=CLIFF.CLAVIN,OU=USERS,DC=GREGBOX,DC=COM )
Oct 29 15:04:10 Lunar slapd[11016]:  
cache_find_entry_dn2id(UID=CLIFF.CLAVIN,OU=USERS,DC=GREGBOX,DC=COM): 26 (1 
tries)
Oct 29 15:04:10 Lunar slapd[11016]: = dn2id 26 (in cache)
Oct 29 15:04:10 Lunar slapd[11016]: = id2entry_r( 26 )
Oct 29 15:04:10 Lunar slapd[11016]:  cache_find_entry_id( 26 ) 
uid=cliff.clavin,ou=Users,dc=gregbox,dc=com (found) (1 tries)
Oct 29 15:04:10 Lunar slapd[11016]: = id2entry_r( 26 ) 0x8189108 (cache)
Oct 29 15:04:10 Lunar slapd[11016]: = access_allowed: auth access to 
uid=cliff.clavin,ou=Users,dc=gregbox,dc=com userPassword requested
Oct 29 15:04:10 Lunar slapd[11016]: = access_allowed: backend default auth 
access granted to 
Oct 29 15:04:10 Lunar slapd[11016]: send_ldap_result: conn=122 op=2 p=3
Oct 29 15:04:10 Lunar slapd[11016]: send_ldap_result: 49::
Oct 29 15:04:10 Lunar slapd[11016]: send_ldap_response: msgid=3 tag=97 
err=49
Oct 29 15:04:10 Lunar slapd[11016]:  cache_return_entry_r( 26 ): 
returned (0)
[root@Lunar]:/usr/src/cyrus-sasl-2.1.9/saslauthd







From: Igor Brezac [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Gregory Chagnon [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: cyrus-sasl / ldap problem
Date: Tue, 29 Oct 2002 14:34:27 -0500 (EST)


On Tue, 29 Oct 2002, Gregory Chagnon wrote:

 One more thing...now when I run testsaslauthd, I get this entry in
 /var/log/ldap.log:

 Oct 29 14:13:58 Lunar slapd[5790]: conn=102 op=1 SRCH base= scope=2
 filter=(uid=greg.chagnon)
 Oct 29 14:13:58 Lunar slapd[5790]: send_ldap_result: conn=102 op=1 p=3
 Oct 29 14:13:58 Lunar slapd[5790

cyrus-sasl error

2002-10-28 Thread Gregory Chagnon
Hi-
I built a cyrus-sasl-2.1.7-2 RPM from the source RPM, configured it to use 
--with-ldap, but when I run saslauthd I get this error.  Any idea why?  
Thanks!!

[rootLunar]:/var/log /usr/sbin/saslauthd -a ldap
saslauthd: unknown authentication mechanism: ldap


-GC

_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



LDAP Howto??

2002-10-24 Thread Gregory Chagnon
Does anyone have any good resources for integrating Cyrus with OpenLDAP?  I 
could use any help!  Thanks!!
-GC

_
Broadband? Dial-up? Get reliable MSN Internet Access. 
http://resourcecenter.msn.com/access/plans/default.asp



Re: cyradm binary

2002-10-22 Thread Gregory Chagnon
Hi-
Even after rebuilding the source RPMs I still get the same error...The IMAP 
server starts just fine, I just get an error with cyradm...Is there anyway 
you could please send me the binanry?  Thanks!!
-Greg






From: Simon Matter [EMAIL PROTECTED]
To: Gregory Chagnon [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: cyradm binary
Date: Mon, 21 Oct 2002 16:51:18 +0200

Gregory Chagnon schrieb:

 Hi, does anyone have a binary of cyradm that they could send me?  I'm 
using
 a Red Hat 8 system on an i386, and I can't get it to compile.  I keep
 getting the following error:

Why don't you want to install via rpm? My source rpms compile fine on RH
8.0.

http://home.teleport.ch/simix/

Simon


 In file included from IMAP.xs:51:
 ../../lib/imclient.h:56:18: sasl.h: No such file or directory
 In file included from IMAP.xs:51:
 ../../lib/imclient.h:79: parse error before sasl_callback_t
 IMAP.xs: In function `XS_Cyrus__IMAP__send':
 IMAP.xs:495: warning: passing arg 2 of `imclient_send' from incompatible
 pointer type
 make: *** [IMAP.o] Error 1

 Thanks so much in advance.
 -Greg

 _
 Broadband? Dial-up? Get reliable MSN Internet Access.
 http://resourcecenter.msn.com/access/plans/default.asp


_
Surf the Web without missing calls! Get MSN Broadband.  
http://resourcecenter.msn.com/access/plans/freeactivation.asp



Re: cyradm binary

2002-10-22 Thread Gregory Chagnon
I moved all of the .pm files into /usr/lib/perl5/site_perl/5.8.0/Cyrus and 
when I run cyradm I now get this error, any ideas:

Can't locate loadable object for module Cyrus::IMAP in @INC (@INC contains: 
/usr/lib/perl5/5.8.0/Cyrus/IMAP /usr/lib/perl5/5.8.0/i386-linux-thread-multi 
/usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.1 
/usr/lib/perl5/site_perl 
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at 
/usr/lib/perl5/5.8.0/Cyrus/IMAP/Admin.pm line 44
Compilation failed in require at /usr/lib/perl5/5.8.0/Cyrus/IMAP/Admin.pm 
line 44.
BEGIN failed--compilation aborted at 
/usr/lib/perl5/5.8.0/Cyrus/IMAP/Admin.pm line 44.
Compilation failed in require at /usr/lib/perl5/5.8.0/Cyrus/IMAP/Shell.pm 
line 60.
BEGIN failed--compilation aborted at 
/usr/lib/perl5/5.8.0/Cyrus/IMAP/Shell.pm line 60.
Compilation failed in require.
BEGIN failed--compilation aborted.







From: Michael Bacon [EMAIL PROTECTED]
To: Gregory Chagnon [EMAIL PROTECTED], 
[EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: cyradm binary
Date: Tue, 22 Oct 2002 12:47:36 -0400

No binary's going to help you out of this error -- it's a problem in your 
include path for perl.  That is, if the error you're getting is still:

Can't locate Cyrus/IMAP/Shell.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .).
BEGIN failed--compilation aborted.

You're going to need to make sure that the Cyrus perl modules got installed 
into one of those directories.  Generally, the'd be in a place like 
/usr/lib/perl5/site_perl/5.8.0/Cyrus/...,
or something similar, but I can't say for your system.

Theoretically, the RPMs would all agree on where to put things and go 
there, but that's obviously not happening here.  What's getting you is that 
cyradm isn't a binary; it's a perl script that loads a number of external 
modules, and your system isn't loading those modules correctly.  Beyond 
that, without further knowledge of your system, I can't tell you much else.

Michael

--On Tuesday, October 22, 2002 10:38:21 -0400 Gregory Chagnon 
[EMAIL PROTECTED] wrote:

Hi-
Even after rebuilding the source RPMs I still get the same error...The
IMAP server starts just fine, I just get an error with cyradm...Is there
anyway you could please send me the binanry?  Thanks!! -Greg







From: Simon Matter [EMAIL PROTECTED]
To: Gregory Chagnon [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: cyradm binary
Date: Mon, 21 Oct 2002 16:51:18 +0200

Gregory Chagnon schrieb:

 Hi, does anyone have a binary of cyradm that they could send me?  I'm
using
 a Red Hat 8 system on an i386, and I can't get it to compile.  I keep
 getting the following error:

Why don't you want to install via rpm? My source rpms compile fine on RH
8.0.

http://home.teleport.ch/simix/

Simon


 In file included from IMAP.xs:51:
 ../../lib/imclient.h:56:18: sasl.h: No such file or directory
 In file included from IMAP.xs:51:
 ../../lib/imclient.h:79: parse error before sasl_callback_t
 IMAP.xs: In function `XS_Cyrus__IMAP__send':
 IMAP.xs:495: warning: passing arg 2 of `imclient_send' from
 incompatible pointer type
 make: *** [IMAP.o] Error 1

 Thanks so much in advance.
 -Greg

 _
 Broadband? Dial-up? Get reliable MSN Internet Access.
 http://resourcecenter.msn.com/access/plans/default.asp



_
Surf the Web without missing calls! Get MSN Broadband.
http://resourcecenter.msn.com/access/plans/freeactivation.asp





_
Unlimited Internet access for only $21.95/month.  Try MSN! 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp



Re: cyradm binary

2002-10-22 Thread Gregory Chagnon
I figured out the problem, I was missing a bunch of files...thanks everyone 
for the help!
-Greg






From: Kendrick Vargas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: Gregory Chagnon [EMAIL PROTECTED]
Subject: Re: cyradm binary
Date: Tue, 22 Oct 2002 13:30:59 -0400 (EDT)

On Tue, 22 Oct 2002, Michael Bacon wrote:

 No binary's going to help you out of this error -- it's a problem in 
your
 include path for perl.  That is, if the error you're getting is still:

 Can't locate Cyrus/IMAP/Shell.pm in @INC (@INC contains:
  /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
  /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
  /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.1
  /usr/lib/perl5/site_perl
  /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
  /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .).
  BEGIN failed--compilation aborted.

 You're going to need to make sure that the Cyrus perl modules got 
installed
 into one of those directories.  Generally, the'd be in a place like
 /usr/lib/perl5/site_perl/5.8.0/Cyrus/...,
 or something similar, but I can't say for your system.

 Theoretically, the RPMs would all agree on where to put things and go
 there, but that's obviously not happening here.  What's getting you is 
that
 cyradm isn't a binary; it's a perl script that loads a number of 
external
 modules, and your system isn't loading those modules correctly.  Beyond
 that, without further knowledge of your system, I can't tell you much 
else.

I got around this by editing the makefile in the perl/ directory of the
cyrus-imapd distribution so that most everything pointed to /usr instead
of /opt or /usr/local or something like that. Then making, then make
installing.

Of course, now I know I can change the perl include paths with a
environment variable:

export 
PERL5LIB=/opt/lib/perl:/opt/lib/perl5/site_perl/5.6.1:/opt/lib/perl5/site_perl/5.6.1/i386-linux

I put the above in a file (perl.sh) in the /etc/profile.d directory of my
RedHat install and I created a csh equivalent as well. Edit the above line
to your system specs. Enjoy.
			-peace


 Michael

 --On Tuesday, October 22, 2002 10:38:21 -0400 Gregory Chagnon
 [EMAIL PROTECTED] wrote:

  Hi-
  Even after rebuilding the source RPMs I still get the same error...The
  IMAP server starts just fine, I just get an error with cyradm...Is 
there
  anyway you could please send me the binanry?  Thanks!! -Greg
 
 
 
 
 
 
  From: Simon Matter [EMAIL PROTECTED]
  To: Gregory Chagnon [EMAIL PROTECTED]
  CC: [EMAIL PROTECTED]
  Subject: Re: cyradm binary
  Date: Mon, 21 Oct 2002 16:51:18 +0200
 
  Gregory Chagnon schrieb:
  
   Hi, does anyone have a binary of cyradm that they could send me?  
I'm
  using
   a Red Hat 8 system on an i386, and I can't get it to compile.  I 
keep
   getting the following error:
 
  Why don't you want to install via rpm? My source rpms compile fine on 
RH
  8.0.
 
  http://home.teleport.ch/simix/
 
  Simon
 
  
   In file included from IMAP.xs:51:
   ../../lib/imclient.h:56:18: sasl.h: No such file or directory
   In file included from IMAP.xs:51:
   ../../lib/imclient.h:79: parse error before sasl_callback_t
   IMAP.xs: In function `XS_Cyrus__IMAP__send':
   IMAP.xs:495: warning: passing arg 2 of `imclient_send' from
   incompatible pointer type
   make: *** [IMAP.o] Error 1
  
   Thanks so much in advance.
   -Greg
  
   _
   Broadband? Dial-up? Get reliable MSN Internet Access.
   http://resourcecenter.msn.com/access/plans/default.asp
 
 
  _
  Surf the Web without missing calls! Get MSN Broadband.
  http://resourcecenter.msn.com/access/plans/freeactivation.asp
 
 





--
Let he who is without clue kiss my ass


_
Unlimited Internet access for only $21.95/month.  Try MSN! 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp