Re: [vchkpw] Ldap problem

2002-11-11 Thread Matteo Ridolfi
On Mon, 11 Nov 2002 10:25:28 +0900
Sunagawa Koji / º½Àî ¹§»ù <[EMAIL PROTECTED]> wrote:

> 
> Hi Matteo,
> 
> 
> Matteo Ridolfi <[EMAIL PROTECTED]> wrote:
> >after a while, here's the make problem.
> >gcc  -I/home/vpopmail/include -g -O2 -Wall -I.. -I./..   -o authvchkpw 
> >modauthvchkpw.o libauthmod.a libauth.a ../numlib/libnumlib.a
> >../md5/libmd5.a ../sha1/libsha1.a -L/home/vpopmail/lib -lvpopmail -L
> >-lldap -llber -lresolv -lm -lcrypt 
> 
> please chech your /home/vpopmail/etc/* .
> maybe, you should fix the file.
> `-L/home/vpopmail/lib -lvpopmail -L -lldap -llber -lresolv -lm -lcrypt'
> -> `-L/home/vpopmail/lib -lvpopmail -L/usr/local/lib -lldap -llber -lresolv -lm 
>-lcrypt'
> 
> 

Thanks a lot, that was the real problem I suspected that was a libraries problem...


 /speza


home: http://speza.com  icq#: 11471656
 10:33am  up 6 min,  1 user,  load average: 0.77, 0.22, 0.07 




Re: [vchkpw] Ldap problem

2002-11-10 Thread Sunagawa Koji / $B:=@n(B $B9';y(B

Hi Matteo,


Matteo Ridolfi <[EMAIL PROTECTED]> wrote:
>after a while, here's the make problem.
>gcc  -I/home/vpopmail/include -g -O2 -Wall -I.. -I./..   -o authvchkpw 
>modauthvchkpw.o libauthmod.a libauth.a ../numlib/libnumlib.a
>../md5/libmd5.a ../sha1/libsha1.a -L/home/vpopmail/lib -lvpopmail -L
>-lldap -llber -lresolv -lm -lcrypt 

please chech your /home/vpopmail/etc/* .
maybe, you should fix the file.
`-L/home/vpopmail/lib -lvpopmail -L -lldap -llber -lresolv -lm -lcrypt'
-> `-L/home/vpopmail/lib -lvpopmail -L/usr/local/lib -lldap -llber -lresolv -lm 
-lcrypt'




---
Sunagawa Koji[EMAIL PROTECTED]
 Okinawa FreeBSD Users Group  http://www.ofug.net/~koj/





Re: [vchkpw] Ldap problem

2002-11-10 Thread Mark Persohn
Make sure your ~vpopmail/lib directory and files is readable by the user 
you are compiling courier as.  By default the vpopmail libraries are 
only readable by root.

Mark


Matteo Ridolfi wrote:

I installed vpopmail 5.3.9 with ldap support withouth problems.
Now I want to install courier-imap to authenticate against vpopmail,
with the vchkpw module.

So I compiled the 1.6.0 version of courier-imap with these flags:
./configure --with-authvchkpw=yes --with-authshadow=yes
--sysconfdir=/etc/courier-imap/ --prefix=/usr/ --bindir=/usr/sbin/
--libexecdir=/usr/lib/courier-imap/
--localstatedir=/var/lib/courier-imap/
--enable-workarounds-for-imap-clients-bug
--with-authdaemonvar=/var/lib/courier-imap/authdaemon/ --enable-unicode

after a while, here's the make problem.
gcc  -I/home/vpopmail/include -g -O2 -Wall -I.. -I./..   -o authvchkpw
modauthvchkpw.o libauthmod.a libauth.a ../numlib/libnumlib.a
../md5/libmd5.a ../sha1/libsha1.a -L/home/vpopmail/lib -lvpopmail -L
-lldap -llber -lresolv -lm -lcrypt
/home/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_getpw':
/tmp/vpopmail-5.3.9/vauth.c:92: undefined reference to `ldap_init'
/tmp/vpopmail-5.3.9/vauth.c:98: undefined reference to `ldap_set_option'
/tmp/vpopmail-5.3.9/vauth.c:99: undefined reference to
`ldap_simple_bind_s'
/tmp/vpopmail-5.3.9/vauth.c:106: undefined reference to `ldap_search_s'
/tmp/vpopmail-5.3.9/vauth.c:113: undefined reference to
`ldap_first_entry'
[...]

/tmp/vpopmail-5.3.9/vauth.c:820: undefined reference to `ldap_modify_s'
/home/vpopmail/lib/libvpopmail.a(vauth.o): In function `vclose':
/tmp/vpopmail-5.3.9/vauth.c:840: undefined reference to `ldap_unbind_s'
collect2: ld returned 1 exit status
make[2]: *** [authvchkpw] Error 1
make[2]: Leaving directory `/home/speza/courier-imap-1.6.0/authlib'
make[1]: *** [all] Error 2
make[1ng directory `/home/speza/courier-imap-1.6.0/authlib'
make: *** [all-recursive] Error 1

think the problem is of some includes, but I can't understand why.
Thanks if you'll help me...

 /speza


home: http://speza.com  icq#: 11471656
  6:03pm  up 57 min,  1 user,  load average: 1.36, 1.23, 1.24