Thread View: news.software.nntp
4 messages
4 total messages
Started by Rebecca Ore
Sat, 03 Mar 2001 05:47
Setting up authentications
Author: Rebecca Ore
Date: Sat, 03 Mar 2001 05:47
Date: Sat, 03 Mar 2001 05:47
16 lines
1619 bytes
1619 bytes
I'd like to be able to set up accounts for users who log on with user name and password. I think I understand how to set up readers.conf properly (using Russ's example posted tonight), but I'm not quite sure how to set up the name/password database that INN will be consulting. I've got NetBSD as the OS. If I understand correctly, the password file is encrypted with another progam. I have kerberos 5 on the system, not sure quite if that's what I should be using. I also have SSL -- and have see some people using that with INN, but, again, not sure how to set it up. -- Rebecca Ore http://www.ogoense.net/rebecca
Re: Setting up authentications
Author: Russ Allbery
Date: Sat, 03 Mar 2001 05:55
Date: Sat, 03 Mar 2001 05:55
64 lines
3662 bytes
3662 bytes
Rebecca Ore <rebecca@ogoense.net> writes:
> I'd like to be able to set up accounts for users who log on with user
> name and password. I think I understand how to set up readers.conf
> properly (using Russ's example posted tonight), but I'm not quite sure
> how to set up the name/password database that INN will be consulting.
> I've got NetBSD as the OS.
There's better documentation in the ckpasswd(8) man page in current stable
snapshots:
OPTIONS
-d database
Read passwords from a database (ndbm or dbm format depending on what
your system has) rather than by using getpwnam(3). ckpasswd expects
database.dir and database.pag to exist and to be a database keyed by
username with the encrypted passwords as the values.
While INN doesn't come with a program intended specifically to create
such databases, on most systems it's fairly easy to write a Perl
script to do so. Something like:
#!/usr/bin/perl
use NDBM_File;
use Fcntl;
tie (%db, 'NDBM_File', '/path/to/database', O_RDWR | O_CREAT, 0640)
or die "Cannot open /path/to/database: $!\n";
$| = 1;
print "Username: ";
my $user = <STDIN>;
chomp $user;
print "Password: ";
my $passwd = <STDIN>;
chomp $passwd;
my @alphabet = ('.', '/', 0..9, 'A'..'Z', 'a'..'z');
my $salt = join '', @alphabet[rand 64, rand 64];
$db{$user} = crypt ($passwd, $salt);
untie %db;
Note that this will echo back the password when typed; there are
obvious improvements that could be made to this, but it should be a
reasonable start.
This option will not be available on systems without dbm or ndbm
libraries.
-f filename
Read passwords from the given file rather than using getpwnam(3).
The file is expected to be formatted like a system password file, at
leat vaguely. That means each line should look something like:
username:pdIh9NCNslkq6
(and each line may have an additional colon after the encrypted
password and additional data; that data will be ignored by ckpasswd).
INN does not come with a utility to create the encrypted passwords,
but it's a quick job with Perl (see the example script under -d).
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Setting up authentications
Author: Graham Tavener
Date: Sun, 04 Mar 2001 00:14
Date: Sun, 04 Mar 2001 00:14
29 lines
2052 bytes
2052 bytes
Rebecca,
Firstly, I'm not trying to promote Dnews... I'm evaluating it for
internal newsgroups in my company, and just set it up to authenticate users
via our'e POP3 mailserver. It took 2 secs and works great. Can't comment
on INN, but if you have trouble then check out Dnews, as a newbie news admin
it worked great.
Graham
"Rebecca Ore" <rebecca@ogoense.net> wrote in message
news:m3n1b3s8t4.fsf@pyrophore.ogoense.net...
>
> I'd like to be able to set up accounts for users who log on with user
> name and password. I think I understand how to set up readers.conf
> properly (using Russ's example posted tonight), but I'm not quite sure
> how to set up the name/password database that INN will be consulting.
> I've got NetBSD as the OS.
>
> If I understand correctly, the password file is encrypted with another
> progam. I have kerberos 5 on the system, not sure quite if that's
> what I should be using. I also have SSL -- and have see some people
> using that with INN, but, again, not sure how to set it up.
>
> --
> Rebecca Ore
> http://www.ogoense.net/rebecca
Re: Setting up authentications
Author: Rebecca Ore
Date: Sun, 04 Mar 2001 01:28
Date: Sun, 04 Mar 2001 01:28
30 lines
2330 bytes
2330 bytes
"Graham Tavener" <graham.tavener@gmx.net> writes: > Rebecca, > Firstly, I'm not trying to promote Dnews... I'm evaluating it for > internal newsgroups in my company, and just set it up to authenticate users > via our'e POP3 mailserver. It took 2 secs and works great. Can't comment > on INN, but if you have trouble then check out Dnews, as a newbie news admin > it worked great. It costs more than my whole server cost. I need something highly configurable that runs on old Sparcs or Alphas. I don't run POP3, all mail is read locally or forwarded to other addresses. From what I heard from a friend who ran Dnews, it's very good on Windows machines. He had a limited number of users and used something like a suck feed, plus had authentication and permissions set so that not all users could access all groups. I will, if all works well, have a number of private groups of groups that aren't propagated and other groups and hieararchies that are, with readers given permission to various sets of groups, so I need to have something that's quite configurable, even if the learning curve is steeper than with Dnews. (snips) -- Rebecca Ore http://www.ogoense.net/rebecca
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