autoryzacja w inn

Arek areq w pld.org.pl
Czw, 22 Sie 2002, 22:28:03 CEST


Witam

W readers.conf mam 
auth "all" {
        hosts: "*"
        auth: "/usr/lib/news/auth/passwd/ckpasswd -f /etc/news/passwd"
        default-domain: "<clients-rw>"
}

auth "localhost" {
    hosts: "localhost, 127.0.0.1, stdin"
    default: "<localhost>"
}

access "localhost" {
    users: "<localhost>"
    newsgroups: "*"
}

access "clients-rw" {
    users: "*@<clients-rw>"
    newsgroups: "*,!control*"
}

w /etc/news/passwd linie
login:zkryptowane haslo

Prawa do /etc/news/passwd są OK.

Niestety autoryzacja konczy sie niepowodzeniem ;(

[arekp w arek arekp]$ telnet pld 119
200 a.net.pl InterNetNews NNRP server INN 2.3.2 ready (posting ok).
MODE READER
200 a.net.pl InterNetNews NNRP server INN 2.3.2 ready (posting ok).
AUTHINFO USER areq
381 PASS required
AUTHINFO PASS tarara
Connection closed by foreign host.

strace :

read(0, "MODE READER\r\n", 8192)        = 13
write(1, "200 a.net.pl InterNetNews NNRP"..., 71) = 71
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1793,
360000})
read(0, "AUTHINFO USER areq\r\n", 8192) = 20
write(1, "381 PASS required\r\n", 19)   = 19
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1794,
190000})
read(0, "AUTHINFO PASS tarara\r\n", 8192)  = 19
time([1030047745])                      = 1030047745
getpid()                                = 18399
rt_sigaction(SIGPIPE, {0x3bf86c, [], 0x4000000}, {0x8055538, [],
SA_RESTART|0x4000000}, 8) = 0
send(4, "<63>Aug 22 22:22:25 nnrpd[18399]"..., 133, 0) = 133
rt_sigaction(SIGPIPE, {0x8055538, [], SA_RESTART|0x4000000}, NULL, 8)
= 0
pipe([7, 8])                            = 0
pipe([9, 10])                           = 0
pipe([11, 12])                          = 0
vfork()                                 = 18408
--- SIGCHLD (Child exited) ---
close(8)                                = 0
close(10)                               = 0
close(11)                               = 0
getpeername(0, {sin_family=AF_INET6, sin6_port=htons(1464),
inet_pton(AF_INET6, "::6cd9:ffbf:64be:508", &sin6_addr),
sin6_flowinfo=0, sin6_scope_id=134737064}, [24]) = 0
getsockname(0, {sin_family=AF_INET6, sin6_port=htons(119),
inet_pton(AF_INET6, "::ffff:212.191.166.13", &sin6_addr),
sin6_flowinfo=0, sin6_scope_id=0}, [24]) = 0
write(12, "ClientHost: arek.amg.net.pl\r\nCli"..., 154) = -1 EPIPE
(Broken pipe)
--- SIGPIPE (Broken pipe) ---

i tu sie konczy ;(

Jakiś pomysł ?

Przy okazji działa komuś ssl - 
cat sasl.conf
tls_ca_path:            /etc/news/ssl
tls_cert_file:          /etc/news/ssl/cert.pem
tls_key_file:           /etc/news/ssl/cert.pem

cert.pem wygenerowany OK
nnrpd -S na porcie 563 odpalilem z palca i guzik nie działa - sesja
nie nawiazuje sie. chwilo załatwiłem to stunnelem ale z racji, że
teraz wszystkie połaczenia widze z localhost średnio mi się to podoba.

Pozdrawiam 

Arek




Więcej informacji o liście dyskusyjnej pld-devel-pl