[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 15.000 users



guy keren <choo@actcom.co.il> wrote:
|On Thu, 3 Jul 1997, Constantin Eizner wrote:
|
|> Hi all!
|> I need to put to /etc/passwd about 15.000 logins. (It's RADIUS server
|> for remote access). How can it influence the speed of login process.
|> Is there some another format or way to store /etc/passwd to increase 
|> the speed of login process?

My intention for a similar environment (RADIUS, POP-3 and
sendmail/qmail) is to put everyone in a MySQL database, write a PAM
module to access this database, then make my RADIUS and POP-3 daemons
use PAM to access this database.  Qmail has it's own database which
I'll derive from the MySQL one.

This should also allow me fancy things like long user names, long
passwords, more fancy user attributes, fast access, user-defined
finger info, add-on services etc.  It also lessens the danger of some
stupid utility letting these people in since they are not in the
standard /etc/passwd file.

|the normal idea would be to use something like 'makemap' to translate
|/etc/passwd (+ shadow file, if in use) into dbm files , and modifying
|login's source to read those files instead of /etc/passwd.
|
|then modify the 'passwd' utility and your user account creation programs,
|to call this makemap utility after every change.
|
|still many programs will access passwd (pop server, the radius server
|itself, etc.) either modify them too, or modify the 'getpwnam' call in the
|standard C library to use your dbm files (unless you find that someone has
|allready done that).

What about just using NIS?  This is basically what it does - put the
databases in DBM files.

--Amos

--Amos Shapira                    | "Of course Australia was marked for
133 Shlomo Ben-Yosef st.          |  glory, for its people had been chosen
Jerusalem 93 805                  |  by the finest judges in England."
ISRAEL        amos@gezernet.co.il |                     -- Anonymous


Follow-Ups: References: