[vchkpw] Missing library fileL libvpopmail.so.1

2003-06-18 Thread Chris Pugh
Hi,

Debian Woody.  Qmail, 1.03, Vpopmail 5.2.1

Installed vpopmail from source.  Compile, make, make
install-strip go without problem. Testing with telnet
does all the right things then,

  **
...
user [EMAIL PROTECTED]
+OK 
pass password

/usr/sbin/vchkpw: error while loading shared
libraries: libvpopmail.so.1: cannot open shared object
file: No such file or directory -ERR authorization
failed. Connection closed by foreign host.

   

The shared library file does not exist on the system.
Debian do a pkg which installs it, ( but that is an
older version, unstable, and not compatible with the
source install ) .. so, if this isn't used, where does
this shared library file come from?  

Should it be installed by the vpopmail source? If not,
Where the blazes does it come from??

Cheers,


Chris.

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



Re: [vchkpw] Missing library fileL libvpopmail.so.1

2003-06-18 Thread Peter Palmreuther
Hi Chris,

First: _PLEASE_ don't CC me. I'm reading the list, as _everybody_
posting here does. _This_ list can't be written to w/o receiving it
(e.g. as debian-* lists can).

On Mon, 16 Jun 2003 02:56:18 -0700 (PDT) Chris Pugh wrote:

 And I don't have it here too.

 Sounds promising .. I take it you have vpopmail
 running aok? ;-)

I do. :-)


 Are you sure the '/usr/sbin/vchkpw' resutls from
 your compile operation?

 No, it doesn't.

Well, than why do you use it? :-)

 and should not be dynamically linked against
 'libvpopmail.so'. Over here 'ldd' gives:

 As far as I am aware it isn't.  Here is my version: 
 
 [ ldd ~vpopmail/bin/vchkpw ]
 libmysqlclient.so.12 = /usr/lib/libmysqlclient.so.12 (0x40015000)
 libz.so.1 = /usr/lib/libz.so.1 (0x40053000)
 libnsl.so.1 = /lib/libnsl.so.1 (0x40062000)
 libcrypt.so.1 = /lib/libcrypt.so.1 (0x40075000)
 libm.so.6 = /lib/libm.so.6 (0x400a2000)
 libc.so.6 = /lib/libc.so.6 (0x400c3000)
 libssl.so.0.9.7 = /usr/lib/i586/libssl.so.0.9.7 (0x401d3000)
 libcrypto.so.0.9.7 = /usr/lib/i586/libcrypto.so.0.9.7 (0x40202000)
 /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)
 libdl.so.2 = /lib/libdl.so.2 (0x402f1000)

Well ... give it a try. Replace '/usr/sbin/vchkpw' with
'/home/vpopmail/bin/vchkpw' in your POP3 startup script and report back
if this solved your problem :-)

BTW: anybody able to tell my why this particular version of vchkpw is
linked against 'libm', 'libssl', 'libcrypto' and 'libdl'?
I can't remember having seen any of my compilations being linked against
this libraries and I don't want play hours for hours just to find out
which configure parameters cause this :-) That's not worth the time :-)
-- 
Ciao,
 Pit



Re: [vchkpw] Missing library fileL libvpopmail.so.1

2003-06-17 Thread Peter Palmreuther
Hi Chris,

On Mon, 16 Jun 2003 04:19:13 -0700 (PDT) Chris Pugh wrote:

 Are you sure the '/usr/sbin/vchkpw' resutls from
 your compile operation?
 No, it doesn't.
 Well, than why do you use it? :-)
 
 Don't ask me, ask the system! It chose to to do it,
 not I.

Well ... but you know this ain't Windows? You're not enforced to
accept silently anything your system does :-)
Your system does what it's told to do, not what it wants.
Tell it to use the other vchkpw :-)

 maybe I should just get nasty and delete them?

Do it. As it doesn't belong to any packet any longer you'll not confuse
the package management.  As it doesn't belong to your manually compiled
stuff you'll not break functionality coming from the manually compiled
vpopmail.
So delete it (or move it to /tmp and delete it from there after some
time has passed w/o errors).

 Well ... give it a try. Replace '/usr/sbin/vchkpw' with
 '/home/vpopmail/bin/vchkpw' in your POP3 startup script and report
 back if this solved your problem

 First thing I thought of actually, and as it happens
 already the case. So where the reference is, I don't
 really know.( I dropped tcpserver temporarily,
 and pasted the code into inetd.conf )
 
 # below an entry for vpopmail
 pop3 stream tcp nowait root \
 /var/qmail/bin/qmail-popup \
 qmail-popup mail.extras.co.uk \
 /home/vpopmail/bin/vchkpw \
 /var/qmail/bin/qmail-pop3d \
 Maildir
 
 Is it maybe catching the first entry in the $PATH??

Usually it would, but in above exmaple you didn't give system the chance
to search the path for vchkpw. You specified a very dedicated location
of vchkpw binary you intend to be used. Did you '-HUP' inetd after
changing the line for pop3?
-- 
Ciao,
 Pit



Re: [vchkpw] Missing library fileL libvpopmail.so.1

2003-06-17 Thread Chris Pugh
Pit,

 Well ... but you know this ain't Windows? You're not
 enforced to accept silently anything your system
does 

Winders I can tweak! ;-) This is giving me grief ..

 Your system does what it's told to do, not what it
 wants.

Don't tell me you really truly believe that .. ;-)

Tell it to use the other vchkpw :-)

I thought I had.
 
  maybe I should just get nasty and delete them?
 Do it. As it doesn't belong to any packet any 
 longer

Quite.  Done it.


 /home/vpopmail/bin/vchkpw \
 Is it maybe catching the first entry in the
 $PATH??
 
 Usually it would, but in above exmaple you didn't
 give system the chance to search the path for
vchkpw.
 You specified a very dedicated location

OK. Reference removed, even though its correct ..
now it doesn't authenicate at all. Damn! 

 of vchkpw binary you intend to be used. Did you
 '-HUP' inetd after changing the line for pop3?

Yep, sure did. Must be something somewhere else?

Cheers,


Chris.

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



Re: [vchkpw] Missing library fileL libvpopmail.so.1

2003-06-17 Thread Peter Palmreuther
Hi Chris,

On Mon, 16 Jun 2003 23:48:18 -0700 (PDT) Chris Pugh wrote:

 4.) Have a look in the file your syslog store
 messages of type 'mail.*'

 Been looking at those.  Deliberately put incorrect
 info in the telnet login, and I get the expected
 messages in the mail log, 

OK, so logging in general works.

 Get it right, and nothing seems to be updated in the
 logs at all, just get the '-ERR authorization failed'
 on the command line. This should be a clue I suppose.

A clue that vpopmail or qmail-popup fails after authenticating
successful.

5.) If nothing thelps I'd
printf UserName\0Password\0QWERTZUIOP\0 | \
strace -s 4096 -f -o /tmp/vchkpw.log \
/home/vpopmail/bin/vchkpw /bin/true 30; \
echo Return: $?

 Return: 0, is the answer I get.

So both, authentication and execution of '/bin/true', returned
successful.

/tmp/vchkpw.log' where the check

 Contains stuff I don't understand! Example below:

I'll need everyting to _probably_ be able figuring out what might be
wrong.
Keep in mind this file logs your username+password additionally to
what's read from 'vpasswd.cdb', so before providing a complete file
create a dummy domain and a dummy account and test with these data.
Alternatively you can think about trusting me and sending this
strace-log privately :-) Just don't spread your real data on this list,
it's archived :-)
-- 
Ciao,
 Pit



Re: [vchkpw] Missing library fileL libvpopmail.so.1

2003-06-17 Thread Peter Palmreuther
Hi Chris,

On Mon, 16 Jun 2003 05:51:30 -0700 (PDT) Chris Pugh wrote:

 Your system does what it's told to do, not what it
 wants.
 
 Don't tell me you really truly believe that .. ;-)

Sure I do.
Read again: what it's told to do, not what you told it to do.
That's a significant difference :-)
This difference inherits it doens't _necessarily_ do what _you_ want.

 OK. Reference removed, even though its correct ..
 now it doesn't authenicate at all. Damn! 

to quote Dave Sill What do the logs say[TM]? :-)
-- 
Ciao,
 Pit



Re: [vchkpw] Missing library fileL libvpopmail.so.1

2003-06-17 Thread Peter Palmreuther
Hi Chris,

On Sun, 15 Jun 2003 22:03:25 -0700 (PDT) Chris Pugh wrote:

  /usr/sbin/vchkpw: error while loading shared
  libraries: libvpopmail.so.1:
[...]
 The shared library file does not exist on the system.The shared
 library file does not exist on the system.

And I don't have it here too.
Are you sure the '/usr/sbin/vchkpw' resutls from your compile operation?
Check with 'dpkg -S /usr/sbin/vchkpw' if this ain't a relict from a
debian package with an older version of vpopmail (package named 'vchkpw'
IIRC).

The vchkpw binary you just compiled should be located here:

~vpopmail/bin/vchkpw

and should not be dynamically linked against 'libvpopmail.so'.
Over here 'ldd' gives:

,-[ ldd ~vpopmail/bin/vchkpw ]
| libnsl.so.1 = /lib/libnsl.so.1 (0x4002)
| libcrypt.so.1 = /lib/libcrypt.so.1 (0x40034000)
| libc.so.6 = /lib/libc.so.6 (0x40061000)
| /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)
`-
-- 
Ciao,
 Pit



Re: [vchkpw] Missing library fileL libvpopmail.so.1

2003-06-17 Thread Chris Pugh
Hi Pit,

Cheers for the response!

 And I don't have it here too.

Sounds promising .. I take it you have vpopmail
running aok? ;-)

 Are you sure the '/usr/sbin/vchkpw' resutls from
 your compile operation?

No, it doesn't. The binaries seem to be duplicated
there though - left behind somehow? The actual compile
directory is as you say  /home/vpopmail/bin

 Check with 'dpkg -S /usr/sbin/vchkpw' if this ain't
 a relict from adebian package ..

dpkg -S /usr/sbin/vchkpw, gives 
dpkg: /usr/sbin/vchkpw not found.

but it probably is a relic. Tried the Deb version
first ( which threw a spanner in the works ) before
going for the source install.

 and should not be dynamically linked against
 'libvpopmail.so'. Over here 'ldd' gives:

As far as I am aware it isn't.  Here is my version: 

[ ldd ~vpopmail/bin/vchkpw ]
libmysqlclient.so.12 = /usr/lib/libmysqlclient.so.12
(0x40015000)
libz.so.1 = /usr/lib/libz.so.1 (0x40053000)
libnsl.so.1 = /lib/libnsl.so.1 (0x40062000)
libcrypt.so.1 = /lib/libcrypt.so.1 (0x40075000)
libm.so.6 = /lib/libm.so.6 (0x400a2000)
libc.so.6 = /lib/libc.so.6 (0x400c3000)
libssl.so.0.9.7 = /usr/lib/i586/libssl.so.0.9.7
(0x401d3000)
libcrypto.so.0.9.7 = /usr/lib/i586/libcrypto.so.0.9.7
(0x40202000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)
libdl.so.2 = /lib/libdl.so.2 (0x402f1000)

Cheers,


Chris.

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



Re: [vchkpw] Missing library fileL libvpopmail.so.1

2003-06-17 Thread Chris Pugh
Hi Pit,

 Don't tell me you really truly believe that .. ;-)
 Sure I do.

Then I'd be very careful if I were you .. 
  
 Read again: what it's told to do, not what you
 told it to do.
 That's a significant difference :-)

That's a different, and not so subliminal.

  OK. Reference removed, even though its correct ..
  now it doesn't authenicate at all. Damn! 

 to quote Dave Sill What do the logs say[TM]? :-)

Which one would you like, most of the mail ones are
pretty normal, nothing untoward at all.



Chris. 

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



Re: [vchkpw] Missing library fileL libvpopmail.so.1

2003-06-17 Thread Chris Pugh
Hi Pit,

 First: _PLEASE_ don't CC me. I'm reading the list,
 as _everybody_  posting here does. 

Apologies. Smack on hand accepted.  Hit 'reply all'
instead of just 'reply'.  Didn't realise I'd done it,
don't normally do it, will watch I don't do that
again. How's that? ;-)

  Are you sure the '/usr/sbin/vchkpw' resutls from
  your compile operation?
  No, it doesn't.
 Well, than why do you use it? :-)

Don't ask me, ask the system! It chose to to do it,
not I.  Besides, you know what tends to happen if you
force things sometimes .. maybe I should just get
nasty and delete them?
 
 Well ... give it a try. Replace '/usr/sbin/vchkpw'
 with '/home/vpopmail/bin/vchkpw' in your POP3
startup
 script and report back if this solved your problem
:-

First thing I thought of actually, and as it happens
already the case. So where the reference is, I don't
really know.( I dropped tcpserver temporarily,
and pasted the code into inetd.conf )

# below an entry for vpopmail
pop3 stream tcp nowait root \
/var/qmail/bin/qmail-popup \
qmail-popup mail.extras.co.uk \
/home/vpopmail/bin/vchkpw \
/var/qmail/bin/qmail-pop3d \
Maildir

Is it maybe catching the first entry in the $PATH??

 BTW: anybody able to tell my why this particular
 version of vchkpw is linked against 'libm',
'libssl', 'libcrypto' and  'libdl'?

Good question. FYI, I used -

./configure --enable-mysql=y --enable-clear-passwd=y
--enable-valias=y --enable-mysql-replication=y
--enable-incdir --enable-libdir --enable-domainquotas

which gives:

Config result with no debian packages in ..
--
   vpopmail 5.2.1   
Current settings
---
 
vpopmail directory = /home/vpopmail
uid = 89
gid = 89
ip alias = OFF --enable-ip-alias-domains=n (default)
address extentions = OFF --enable-qmail-ext=n
(default)
roaming users = OFF --enable-roaming-users=n default
user quota = OFF --enable-defaultquota=NOQUOTA default
auth module = mysql --enable-mysql=y
mysql replication = ON  --enable-mysql-replication=y
table optimization = many domains
--enable-many-domains=y default
system passwords = OFF --enable-passwd=n default
file locking = ON  --enable-file-locking=y default
file sync = OFF --enable-file-sync=n default disable
vdelivermail fsync
auth logging = ON  --enable-auth-logging=y default
mysql logging = OFF --enable-mysql-logging=n default
clear passwd = ON  --enable-clear-passwd=y (default)
valias processing = ON  --enable-valias=y
pop syslog = show only failure attempts
--enable-logging=e default
default domain =  --enable-default-domain=
auth inc = -I/usr/include/mysql
auth lib = -Lyes  -lmysqlclient -lz

Cheers,



Chris.


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com