Thread View: news.software.readers
11 messages
11 total messages
Started by Bart Vandewoestyne
Fri, 09 Feb 2007 08:34
slrn authentication problem
Author: Bart Vandewoestyne
Date: Fri, 09 Feb 2007 08:34
Date: Fri, 09 Feb 2007 08:34
36 lines
2168 bytes
2168 bytes
I want to use my slrn (0.9.8.1) on a Debian GNU/Linux stable box to read and post news at two newsservers: One server requires authentication for posting but doesn't explicitly ask for it so i added the following in my .slrnrc file: nnrpaccess "news.telenet.be" "MyUserName" "" server "news.telenet.be" ".newsrc-news.telenet.be" set force_authentication 1 The other server doesn't require authorization, so I've added only server "azw.dyns.be:1919" ".newsrc-azw.dyns.be:1919" Now the problem is the following: reading and posting from the server that requires authorization is no problem, but when I try to start reading news for the server that doesn't require authorization I am still asked for a username and password... i simply press Enter for these two values and then i get: Connecting to host azw.dyns.be ... Username: Password: Authenticating ...slrn fatal error: Failed to initialize server. How do i solve this? Thanks, Bart -- "Share what you know. Learn what you don't."
Re: slrn authentication problem
Author: SINNER
Date: Fri, 09 Feb 2007 12:49
Date: Fri, 09 Feb 2007 12:49
21 lines
1892 bytes
1892 bytes
* Bart Vandewoestyne wrote in news.software.readers: > I want to use my slrn (0.9.8.1) on a Debian GNU/Linux stable box > to read and post news at two newsservers: > One server requires authentication for posting but doesn't > explicitly ask for it so i added the following in my .slrnrc > file: > nnrpaccess "news.telenet.be" "MyUserName" "" > server "news.telenet.be" ".newsrc-news.telenet.be" > set force_authentication 1 What happens if you remove the above line? How are you starting slrn each time? [...] -- David I had no shoes and I pitied myself. Then I met a man who had no feet, so I took his shoes. -- Dave Barry
Re: slrn authentication problem
Author: Dave Gibson
Date: Fri, 09 Feb 2007 21:24
Date: Fri, 09 Feb 2007 21:24
38 lines
2310 bytes
2310 bytes
Bart Vandewoestyne <MyFirstName.MyLastName@telenet.be> wrote:
> I want to use my slrn (0.9.8.1) on a Debian GNU/Linux stable box
> to read and post news at two newsservers:
>
> One server requires authentication for posting but doesn't
> explicitly ask for it so i added the following in my .slrnrc
> file:
>
> nnrpaccess "news.telenet.be" "MyUserName" ""
> server "news.telenet.be" ".newsrc-news.telenet.be"
> set force_authentication 1
>
> The other server doesn't require authorization, so I've added
> only
>
> server "azw.dyns.be:1919" ".newsrc-azw.dyns.be:1919"
>
> Now the problem is the following: reading and posting from the
> server that requires authorization is no problem, but when I try
> to start reading news for the server that doesn't require
> authorization I am still asked for a username and password... i
[...]
Remove the "set force_authentication 1" line and add the following
function to your macro file (eg: "$HOME/.slrn/set_auth.sl"):
define init_servers_auth()
{
!if (strcmp (server_name(), "news.telenet.be"))
set_integer_variable("force_authentication", 1);
}
() = register_hook ("startup_hook", "init_servers_auth");
If you don't already have a macro file, you'll need to add a command
to your $HOME/.slrnrc to interpret the new one:
interpret ".slrn/set_auth.sl";
Re: slrn authentication problem
Author: Troy Piggins
Date: Fri, 09 Feb 2007 22:35
Date: Fri, 09 Feb 2007 22:35
74 lines
3368 bytes
3368 bytes
* Bart Vandewoestyne is quoted & my replies are inline below : > I want to use my slrn (0.9.8.1) on a Debian GNU/Linux stable box > to read and post news at two newsservers: > > One server requires authentication for posting but doesn't > explicitly ask for it so i added the following in my .slrnrc > file: > > nnrpaccess "news.telenet.be" "MyUserName" "" > server "news.telenet.be" ".newsrc-news.telenet.be" > set force_authentication 1 > > The other server doesn't require authorization, so I've added > only > > server "azw.dyns.be:1919" ".newsrc-azw.dyns.be:1919" Do you have 2 server declarations in the same .slrnrc file? Pretty sure you can have only one at a time. Do you have NNTPSERVER environ variable set? What is it? How to you call slrn? With -h option? > Now the problem is the following: reading and posting from the > server that requires authorization is no problem, but when I try > to start reading news for the server that doesn't require > authorization I am still asked for a username and password... i > simply press Enter for these two values and then i get: > > Connecting to host azw.dyns.be ... > Username: > Password: > > Authenticating ...slrn fatal error: > Failed to initialize server. > > How do i solve this? Probably the nnrpaccess line in .slrnrc. Couple of thoughts. Someone else here has suggested a macro that sets or doesn't set auth depending on your server. You could also use preprocessing tokens like this (untested) in your .slrnrc: -----8<----- server "azw.dyns.be:1919" ".newsrc-azw.dyns.be:1919" #ifdef AUTH nnrpaccess "news.telenet.be" "MyUserName" "" server "news.telenet.be" ".newsrc-news.telenet.be" set force_authentication 1 #endif -----8<----- and start slrn with -DAUTH argument for the server that requires authentication. Or you could have 2 rc files - one for each server, and start slrn with different -i options for each: slrn -i .slrnrc.auth Or you could use a local news cache like leafnode. That'll do. There's a solution for you there somewhere, surely :) -- Troy Piggins ,-O (o- O All your sigs are belong to us. http://piggo.com/~troy O ) //\ O RLU#415538 `-O V_/_ OOO hackerkey://v3sw5HPUhw5ln4pr6OSck1ma9u6LwXm5l6Di2e6t5MGSRb8OTen4g7OPa3Xs7MIr8p7
Re: slrn authentication problem
Author: Blinky the Shark
Date: Fri, 09 Feb 2007 23:27
Date: Fri, 09 Feb 2007 23:27
29 lines
2153 bytes
2153 bytes
Troy Piggins wrote: > * Bart Vandewoestyne is quoted & my replies are inline below : >> I want to use my slrn (0.9.8.1) on a Debian GNU/Linux stable box >> to read and post news at two newsservers: >> >> One server requires authentication for posting but doesn't >> explicitly ask for it so i added the following in my .slrnrc >> file: >> >> nnrpaccess "news.telenet.be" "MyUserName" "" >> server "news.telenet.be" ".newsrc-news.telenet.be" >> set force_authentication 1 >> >> The other server doesn't require authorization, so I've added >> only >> >> server "azw.dyns.be:1919" ".newsrc-azw.dyns.be:1919" > > Do you have 2 server declarations in the same .slrnrc file? > Pretty sure you can have only one at a time. You can have more than one and call slrn from a script that starts it with the server you want to use for that session. -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: slrn authentication problem
Author: Bart Vandewoestyne
Date: Fri, 09 Feb 2007 23:42
Date: Fri, 09 Feb 2007 23:42
30 lines
2180 bytes
2180 bytes
On 2007-02-09, Dave Gibson <dave+news001@gibson-hrd.abelgratis.co.uk.invalid> wrote:
>
> [...]
>
> Remove the "set force_authentication 1" line and add the following
> function to your macro file (eg: "$HOME/.slrn/set_auth.sl"):
>
> define init_servers_auth()
> {
> !if (strcmp (server_name(), "news.telenet.be"))
> set_integer_variable("force_authentication", 1);
> }
> () = register_hook ("startup_hook", "init_servers_auth");
>
> If you don't already have a macro file, you'll need to add a command
> to your $HOME/.slrnrc to interpret the new one:
>
> interpret ".slrn/set_auth.sl";
Thanks! This solution works like a charm!
I guess the most appropriate and clean alternative solution would
be to use leafnode, but the solution from above is just as fine
and does exactly what I want.
Thanks again!
Bart
--
"Share what you know. Learn what you don't."
Re: slrn authentication problem
Author: Blinky the Shark
Date: Sat, 10 Feb 2007 00:25
Date: Sat, 10 Feb 2007 00:25
38 lines
2701 bytes
2701 bytes
Bart Vandewoestyne wrote:
> On 2007-02-09, Dave Gibson
> <dave+news001@gibson-hrd.abelgratis.co.uk.invalid> wrote:
>>
>> [...]
>>
>> Remove the "set force_authentication 1" line and add the following
>> function to your macro file (eg: "$HOME/.slrn/set_auth.sl"):
>>
>> define init_servers_auth() { !if (strcmp (server_name(),
>> "news.telenet.be")) set_integer_variable("force_authentication", 1);
>> } () = register_hook ("startup_hook", "init_servers_auth");
>>
>> If you don't already have a macro file, you'll need to add a
>> command to your $HOME/.slrnrc to interpret the new one:
>>
>> interpret ".slrn/set_auth.sl";
>
> Thanks! This solution works like a charm!
>
> I guess the most appropriate and clean alternative solution would be
> to use leafnode, but the solution from above is just as fine and does
> exactly what I want.
Or do what I used to do when I ran more than one server with slrn.
Have the section of slrnrc that's pertinent to a particular server be a
file of its own, and call the *rest* of slrnrc (the stuff that's the
same for all servers -- probably colors, keybindings...MOST of the full
slrnrc) into that file with (I think it was) includes. Or
interprets...whatever command pulls a whole file in where the command
is. Then run each of those server-specific files from separate scripts.
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: slrn authentication problem
Author: Pepi
Date: Sat, 10 Feb 2007 00:49
Date: Sat, 10 Feb 2007 00:49
9 lines
1699 bytes
1699 bytes
On 10 feb 2007, Blinky the Shark<no.spam@box.invalid>, had the following to say to the folks in news.software.readers: > Killing all posts from Google Groups > The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html A sound idea! Effective immediately. :-) -- Pepi
Re: slrn authentication problem
Author: Blinky the Shark
Date: Sat, 10 Feb 2007 02:33
Date: Sat, 10 Feb 2007 02:33
17 lines
1820 bytes
1820 bytes
Pepi wrote: > On 10 feb 2007, Blinky the Shark<no.spam@box.invalid>, had the > following to say to the folks in news.software.readers: > >> Killing all posts from Google Groups >> The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html > > A sound idea! Effective immediately. :-) Spread the word. I added your note enthusiasm to that page. :) -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: slrn authentication problem
Author: Blinky the Shark
Date: Sat, 10 Feb 2007 02:55
Date: Sat, 10 Feb 2007 02:55
20 lines
1938 bytes
1938 bytes
Blinky the Shark wrote: > Pepi wrote: >> On 10 feb 2007, Blinky the Shark<no.spam@box.invalid>, had the >> following to say to the folks in news.software.readers: >> >>> Killing all posts from Google Groups >>> The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html >> >> A sound idea! Effective immediately. :-) > > Spread the word. > > I added your note enthusiasm to that page. :) note *of* :) -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: slrn authentication problem
Author: Pepi
Date: Tue, 13 Feb 2007 21:18
Date: Tue, 13 Feb 2007 21:18
12 lines
1771 bytes
1771 bytes
On 10 feb 2007, Blinky the Shark<no.spam@box.invalid>, had the following to say to the folks in news.software.readers: > Spread the word. Will do. > I added your note enthusiasm to that page. :) Great! I'm on the web! :-) -- Pepi
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads