User Tools

Site Tools


doc:appunti:linux:sa:authdaemon_problem

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:linux:sa:authdaemon_problem [2016/04/15 17:42] – [Authenticate with an alternative login name] niccolodoc:appunti:linux:sa:authdaemon_problem [2019/04/03 18:59] (current) niccolo
Line 58: Line 58:
 +OK Begin SSL/TLS negotiation now. +OK Begin SSL/TLS negotiation now.
 </code> </code>
 +
 ===== Tracing the Courier authdaemon socket ===== ===== Tracing the Courier authdaemon socket =====
  
Line 74: Line 75:
 my $line; my $line;
 my $auth_string; my $auth_string;
 +
 +if ( $#ARGV != 1 ) {
 +    print "Usage: courier-authdaemon-test [login] [password]\n";
 +    exit 1;
 +}
  
 socket(SOCK, PF_UNIX, SOCK_STREAM, 0) || die "socket: $!"; socket(SOCK, PF_UNIX, SOCK_STREAM, 0) || die "socket: $!";
 connect(SOCK, sockaddr_un($socket))   || die "connect: $!"; connect(SOCK, sockaddr_un($socket))   || die "connect: $!";
  
-$line = "exim\nlogin\n$login\n$pass\n";+$line = "postfix\nlogin\n$login\n$pass\n";
 $line = length($line) . "\n" . $line; $line = length($line) . "\n" . $line;
 print "=== Send to socket:\n" . $line; print "=== Send to socket:\n" . $line;
doc/appunti/linux/sa/authdaemon_problem.1460734968.txt.gz · Last modified: 2016/04/15 17:42 by niccolo