--Karsten Dambekalns wrote on 27.02.03 13:48 +0100:
> In 'my' thread all this has been discussed already, and it seems even
> Sam gave up. I *did* show the query, and I *did* show the results, and
> I *did* check the config files for whitespace (more than once).
Stick with authtest, with only one argument, and change the
password to 'test' so you dont have to edit the output.
Make shure it has the same timestamp as all the other binaries
below libexec/authlib.
Then attach strace to the running authdaemon, make shure you
get the correct one. (the one with the higher pid)
Alternatively the following script will connect directly to
authdaemon, just like authtest (should):
#!/usr/bin/perl
my $user = 'whatever';
# my $pass = 'test';
my $authsock = '/wherever/var/authdaemon/socket';
print "# $0: $user $pass\n";
use Socket qw(:DEFAULT :crlf);
socket(SOCK, PF_UNIX, SOCK_STREAM, 0);
connect(SOCK, sockaddr_un($authsock)) or die "$authsock: $!\n";
if($pass)
{
my $authstring = "login\nlogin\n$user\n$pass";
my $authlength = length($authstring);
send SOCK, "AUTH $authlength\n$authstring\n", 0 or die "$authsock: $!\n";
}
else
{
send SOCK, "PRE . login $user\n", 0 or die "$authsock: $!\n";
}
# while( <SOCK> ) { print $_; }
print <SOCK>;
or recompile --without-autdaemon and run authtest wrapped
within strace which makes everything much simpler:
strace -ffrTv -a 128 -s 128 ./authtest whoever
Its also possible to start authdaemon from within strace
with something like: (from an old script)
strace -f -ff -o strace -s 128 /wherever/libexec/authlib/authdaemond.mysql start
but it might be difficult to extract the relevant information.
Roland
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users