Re: ptloader or the not so LDAPing easy

2007-08-15 Thread Chaskiel M Grundman
--On Wednesday, August 15, 2007 12:34:39 PM +0200 Egil Möller 
[EMAIL PROTECTED] wrote:

 Why does ptloader show the sambaSid of two of the groups superadmin is a
 member of, instead of the group name?

Disclaimer: I don't actually use the ldap code (nor am I a cyrus 
developer).

From looking at the code, this problem seems to be caused by the lack of a 
ldap_member_attribute parameter in your imapd.conf. Without that attribute, 
the code uses the last attribute returned by the ldap server as the group's 
name.

You should add
ldap_member_attribute: cn

to fix this problem. I don't know what could be causing the other problems


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: backend_connect() is broken in 2.3.8

2007-07-27 Thread Chaskiel M Grundman


--On Friday, July 27, 2007 05:50:17 PM +0200 Gabor Gombas 
[EMAIL PROTECTED] wrote:

 It seems that in 2.3.7 backend_connect() contained code to explicitely
 set the source IP address but this code was removed in 2.3.8. Why?
I asked the developers why the code was there, because on systems where 
servername points at an alias instead of a single name, the bind tends to 
fail and spams the syslog. These extra error messages confused debugging 
efforts on more than one occasion. It appears that nobody knew, and so the 
code was pulled out. if the bind is restored, I would prefer that it use a 
dedicated config parameter, and not re-use servername


 head scratching I found that while sync_client from 2.3.8 uses the wrong
 source IP address (the master host has several) when trying to connect
 to the replica.
I would only expect this to happen if you have asymmetric routing. (i.e. B 
refuses to route along the inverse of the path that A routes to B)

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Installtion error - cyrusdb_berkeley structure has no member named `set_lk_max'

2006-12-12 Thread Chaskiel M Grundman
--On Tuesday, December 12, 2006 02:12:41 PM +0530 Pubudu Premachandra 
[EMAIL PROTECTED] wrote:



cyrusdb_berkeley.c:176: error: structure has no member named `set_lk_max'


set_lk_max has been deprecated since DB 4.0. I guess it was finally removed.

The following patch may be used to work around this:



--- lib/cyrusdb_berkeley.c  2006-08-01 15:34:18.0 -0400
+++ /tmp/cyrusdb_berkeley.c 2006-12-12 14:04:00.0 -0500
@@ -174,7 +174,15 @@
   syslog(LOG_WARNING,
  DBERROR: invalid berkeley_locks_max value, using internal 
default);

} else {
+#if DB_VERSION_MAJOR = 4
+   r = dbenv-set_lk_max_locks(dbenv, opt);
+   if (!r)
+   r = dbenv-set_lk_max_lockers(dbenv, opt);
+   if (!r)
+   r = dbenv-set_lk_max_objects(dbenv, opt);
+#else
   r = dbenv-set_lk_max(dbenv, opt);
+#endif
   if (r) {
   dbenv-err(dbenv, r, set_lk_max);
   syslog(LOG_ERR, DBERROR: set_lk_max(): %s, db_strerror(r));


Or you can downgrade to DB 4.3 (I don't know if 4.4 will work or not)

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


RE: Cyrus IMAP and MySQL mailboxes (Building load-balancing cluster)

2006-11-27 Thread Chaskiel M Grundman
--On Friday, November 24, 2006 08:08:05 AM +0100 Simon Matter 
[EMAIL PROTECTED] wrote:



 What is really different between
using berkeley or skiplist DB for the cluster? I'm also running without
BDB but I want to understand how berkeley databases are different to
skiplist databases in a cluster situation.



Berkeley DB does interprocess coordination by using mmaping files. One of 
the things it can put in the mmaped files are locks (either custom 
test-and-set spinlocks or pthread mutexes). It is not possible for these 
locks to work correctly across NFS (or even GFS), since changes do not 
appear instantaneously on all clients/nodes.


skiplists are much simpler data structures, as they are only appended to. 
as long as file locks and O_APPEND work correctly, skiplists should work 
correctly





Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: see who is online

2006-11-13 Thread Chaskiel M Grundman
--On Monday, November 13, 2006 08:39:39 PM +0100 Wolfgang Hennerbichler 
[EMAIL PROTECTED] wrote:



I am trying to find a way to see which users are currently running an
IMAP session. Does anybody have a clue if (or how) that is possible?  My
setup runs through saslauthd and ldap right now, all the  processess are
owned by user 'cyrus'.


${configdirectory}/proc contains one file per active imapd, which lists the 
hostname, ip address, username, and selected mailbox of that process's 
connection




Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus, Solaris 10, ZFS? (and NIS?)

2006-10-05 Thread Chaskiel M Grundman



--On Thursday, October 05, 2006 04:13:18 PM -0400 Elizabeth Schwartz 
[EMAIL PROTECTED] wrote:



http://www.gsd.harvard.edu/users/betsys/dapptrace.timed


The interesting bit seems to be here:
 .  . - mynewstate(0x165769, 0x40404040, 0x0)
 .  . - mycanonifyid(0x165769, 0x0, 0x0)
 .  . - libcyrus_config_getswitch(0x2, 0x11AF55, 0x5)
43  5 - libcyrus_config_getswitch = 84
   135 20 - mycanonifyid = 292
 .  . - xmalloc(0x5C, 0x11AF5D, 0x5)
38 14 - xmalloc = 28
 .  . - libcyrus_config_getswitch(0x1, 0x0, 0x1647CB)
40  3 - libcyrus_config_getswitch = 84
 .  . - xrealloc(0x0, 0x4, 0xE488)
68 14 - xrealloc = 64
 .  . - xstrdup(0x16871C, 0x4, 0xE488)
 .  . - xmalloc(0x9, 0x2A0031, 0x168724)
30  7 - xmalloc = 28
94 16 - xstrdup = 40
8235260 109820 - mynewstate = 356

mynewstate is taking 8s to run, and very little of the time is taken up in 
local subroutines.
auth_unix.c:mynewstate calls getpwnam, and then iterates over all the 
groups using getgrent(),
checking to see what groups the user is in. The fact that imapd does this 
twice might be a bug, but even if it didn't do it twice, it would still be 
slow.


Is running getent group slow?

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: S: C01 OK Unknown Error Code: -1904809418

2006-07-24 Thread Chaskiel M Grundman
--On Tuesday, July 25, 2006 12:14:58 AM +1000 James Brown 
[EMAIL PROTECTED] wrote:



Imtest is giving me the following error:

S: C01 OK Unknown Error Code: -1904809418

This is IMAP_OK_COMPLETED, which should expand to Completed
My suspicion is that your imapd somehow got linked against two different 
versions of the com_err library, and the one that is being used to resolve 
the error_message() calls isn't the same one that got the imap error codes 
loaded into it.




Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html