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

From: Kjetil Torgrim Homme (no email)
Date: Thu Oct 05 2006 - 22:05:26 EDT

  • Next message: Igor Brezac: "RE: Cyrus, Solaris 10, ZFS? (and NIS?)"

    On Thu, 2006-10-05 at 16:46 -0400, Chaskiel M Grundman wrote:
    > 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.

    to speed up initgroups, make sure you have the netid.byname NIS map. if
    you're not familiar with it, the keys should be "unix dot UID at NISDOMAIN",
    the values are "UID:GID,GID,GID,...". an example for my account, which
    is uid 1232 in domain "ifi":

    key: "unix dot 1232 at ifi"
    value: "1232:0,6,15,7411,11232"

    presto, no iteration through the complete group map needed!

    -- 
    Kjetil T.
    ----
    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
    

  • Next message: Igor Brezac: "RE: Cyrus, Solaris 10, ZFS? (and NIS?)"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD