cyrus setup

Kevin Robert Casey krc at inetwebz.com
Tue Mar 4 22:32:01 EST 2003


krc at ns1:~> /usr/local/sbin/saslauthd -v
saslauthd 2.1.12
authentication mechanisms: getpwent rimap shadow

pam-devel is installed, but for kicks i tried to rebuild cyrus-sasl with the
following commands:
./configure \
--enable-anon \
--enable-plain \
--enable-login \
--disable-krb4 \
--with-saslauthd=/var/run/saslauthd \
--with-pam \
--with-dblib=berkeley \
--with-bdb-libdir=/usr/local/bdb/lib \
--with-bdb-incdir=/usr/local/bdb/include \
--with-openssl-dir=/usr/local/ssl \
--with-plugindir=/usr/local/lib/sasl2
make

however, make just breaks with the following few lines:
gcc  -g -O2  -o saslauthd  mechanisms.o auth_dce.o auth_getpwent.o
auth_krb5.o auth_krb4.o auth_pam.o auth_rimap.o auth_shadow.o auth_sia.o
auth_sasldb.o lak.o auth_ldap.o
.o                    -lcrypt               -lresolv   -lpam  -lresolv
/usr/lib/libpam.a(pam_handlers.o): In function `_pam_add_handler':
pam_handlers.o(.text+0xb3e): undefined reference to `dlopen'
pam_handlers.o(.text+0xb65): undefined reference to `dlerror'
pam_handlers.o(.text+0xd1c): undefined reference to `dlsym'
pam_handlers.o(.text+0xd55): undefined reference to `dlsym'
/usr/lib/libpam.a(pam_handlers.o): In function `_pam_free_handlers':
pam_handlers.o(.text+0xfb4): undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[2]: *** [saslauthd] Error 1
make[2]: Leaving directory `/usr/local/src/cyrus-sasl-2.1.12/saslauthd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/cyrus-sasl-2.1.12'
make: *** [all-recursive-am] Error 2


any thoughts would be helpful.
kevin

-----Original Message-----
From: Bryntez [mailto:tom at bryntez.com]
Sent: Tuesday, March 04, 2003 5:56 PM
To: Kevin Robert Casey
Subject: Re: cyrus setup


It looks like the pam-devel package are not installed ?

Try saslauthd -v and see what mechs are compiled in

bryntez

----- Original Message -----
From: "Kevin Robert Casey" <krc at inetwebz.com>
To: <info-cyrus at lists.andrew.cmu.edu>
Sent: Tuesday, March 04, 2003 10:32 PM
Subject: cyrus setup


: i'm trying to setup cyrus (imap & sasl) version 2.1.12 with postfix 2.0.3
: and mysql support.  i'm trying to setup virtual e-mail hosting with imap
: access, but am not having any luck.  i /think/ my problem is with sasl,
but
: i don't know if something might be causing it.
:
: if this is off topic, could you please point me in the general direction?
: i've searched the web, but the best i could find was somebody saying they
: had the problem but found the answer elsewhere.  i didn't know what to
: include (because i'm not sure what the problem is), so let me know what
you
: need to help.
:
: when i try to start cyrus at the command line with:
: krc at ns1:~> sudo /etc/init.d/cyrus start
:
: it tells me:
: krc at ns1:~> saslauthd: unknown authentication mechanism: pam
:
: and my system log does something like this:
: Mar  4 16:19:29 ns1 sudo:      krc : TTY=pts/1 ; PWD=/home/krc ; USER=root
;
: COMMAND=/etc/init.d/cyrus start
: Mar  4 16:19:29 ns1 master[1176]: setrlimit: Unable to set file
descriptors
: limit to -1: Operation not permitted
: Mar  4 16:19:29 ns1 master[1176]: retrying with 1024 (current max)
: Mar  4 16:19:29 ns1 saslauthd[1175]: START: saslauthd 2.1.12
: Mar  4 16:19:29 ns1 saslauthd[1175]: FATAL: unknown authentication
: mechanism: pam
: Mar  4 16:19:30 ns1 master[1176]: process started
: Mar  4 16:19:30 ns1 master[1177]: about to exec /usr/cyrus/bin/ctl_cyrusdb
: Mar  4 16:19:30 ns1 ctl_cyrusdb[1177]: recovering cyrus databases
: Mar  4 16:19:31 ns1 ctl_cyrusdb[1177]: done recovering cyrus databases
: Mar  4 16:19:31 ns1 master[1176]: ready for work
: Mar  4 16:19:31 ns1 master[1178]: about to exec /usr/cyrus/bin/tls_prune
: Mar  4 16:19:31 ns1 master[1179]: about to exec /usr/cyrus/bin/ctl_deliver
: Mar  4 16:19:31 ns1 master[1180]: about to exec /usr/cyrus/bin/ctl_cyrusdb
: Mar  4 16:19:31 ns1 ctl_deliver[1179]: DBERROR db4: 4 lockers
: Mar  4 16:19:31 ns1 ctl_deliver[1179]: duplicate_prune: pruning back 3
days
: Mar  4 16:19:31 ns1 ctl_deliver[1179]: duplicate_prune: purged 0 out of 0
: entries
: Mar  4 16:19:31 ns1 ctl_cyrusdb[1180]: checkpointing cyrus databases
: Mar  4 16:19:31 ns1 master[1176]: process 1179 exited, status 0
: Mar  4 16:19:31 ns1 tls_prune[1178]: tls_prune: purged 0 out of 0 entries
: Mar  4 16:19:31 ns1 master[1176]: process 1178 exited, status 0
: Mar  4 16:19:31 ns1 ctl_cyrusdb[1180]: archiving database file:
: /var/imap/mailboxes.db
: Mar  4 16:19:31 ns1 ctl_cyrusdb[1180]: archiving log file:
: /var/imap/db/log.0000000001
: Mar  4 16:19:31 ns1 ctl_cyrusdb[1180]: archiving log file:
: /var/imap/db/log.0000000001
: Mar  4 16:19:31 ns1 ctl_cyrusdb[1180]: done checkpointing cyrus databases
: Mar  4 16:19:31 ns1 master[1176]: process 1180 exited, status 0
:
: thanks in advance,
: kevin
:
:





More information about the Info-cyrus mailing list