Apache: too many users in one group (Basic auth)

Apache: too many users in one group (Basic auth)

Post by Jyri Kaljund » Tue, 14 Jan 1997 04:00:00



I am having strange problems with Apache password authentication. I have
had this Basic auth working for almost a year now without any problems.
I have about 1600 users in one password file and about 10 users in one
group file.

In the group file in one group I have about 1300 users (there are about
9500 characters on one long line). Those who are in the end of the file,
get authentication failed message. Everything is OK until about 1200
users, users beginning from about 1210 can't get access. In characters
the limit on line length is at about 9300-9400 characters after what
added users don't work.

Is there a limit how many users can be in one line? In one password
file?

Should I maybe switch to DBM (although speed is for me quite good right
now)?

Running Apache 1.1.1 on Solaris 2.5 Sparc.

--
Juri Kaljundi

http://www.stallion.ee/

 
 
 

Apache: too many users in one group (Basic auth)

Post by Jeremy Laidma » Wed, 15 Jan 1997 04:00:00



> In the group file in one group I have about 1300 users (there are about
> 9500 characters on one long line). Those who are in the end of the file,
> get authentication failed message.

You could have a number of lines with different group names:
group1: user1,user2,user3,...
group2: user1001,user1002,user1003,...
group3: user2001,user2002,user2003,...

Then in your restriction you have:

require group group1 group2 group3

Alternatively, you could patch the Apache source to keep looking for
multiple group entries in the group file and have:

group: user1,user2,user3,...
group: user1001,user1002,user1003,...
...

That shouldn't be hard to do.

Cheers
----------------------------------------------------------------

Networking Consultant                            +61 0416 290866
Canberra Institute of Technology                  +61 6 207 4272

 
 
 

Apache: too many users in one group (Basic auth)

Post by Jyri Kaljund » Wed, 15 Jan 1997 04:00:00



>    I believe, unless you need the group structure, that you can just
> forget the group stuff and use "require valid_user".

The groups are extremely important for us. Different people get access to
different parts of web site.

Juri Kaljundi

http://www.stallion.ee/

 
 
 

Apache: too many users in one group (Basic auth)

Post by Jyri Kaljund » Wed, 15 Jan 1997 04:00:00


The solution was to change HUGE_STRING_LEN and MAX_STRING_LEN from 8192
to double the size (16384).

Now the server is probably not secure enough and many buffer overflow
attacks are possible but at least it works, until I have time to rewrite
our local utilities to use DBM files.

Juri Kaljundi

http://www.stallion.ee/

 
 
 

Apache: too many users in one group (Basic auth)

Post by Magnus Stenman -- root/webmas.. » Fri, 17 Jan 1997 04:00:00




> >    I believe, unless you need the group structure, that you can just
> > forget the group stuff and use "require valid_user".

> The groups are extremely important for us. Different people get access to
> different parts of web site.

> Juri Kaljundi

> http://www.stallion.ee/

Isnt there a possibility to use the db, dbm or mSQL -auth modules?
If uoy got large numbers of groups and users, this would me much faster,
too.
--

 
 
 

1. Apache auth: user/pass spanning groups using DBM?

I'm diddling with using Apache and DBm files to limit access to certain
paths under a proposed web structure. Trying access using NCSA and simple
AuthUser/AuthGroup pairs, if a user belonged to more than one group they
could auto-enter the other areas they belonged to, since the browser cached
the user/pass pair. This appears to fail using DBM for file authentication,
however. Any ideas on why? (I am using the DBM file for both passwd and
group information)

Also, a lesser thing.. it appears if I re-specify std. password files in
my .htaccess files, then the server can't authenticate. I wrote a script
to modify all my .htaccess files so I can quickly flip between a
DBM/nonDBM setup, and the nonDBM tests failed (yes, I do have a separate valid
htpasswd-generated file and group file). Any idea why Apache would let DBM
authentication work but not clear-text password file access?

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Ross Roberts                        |Denizens of Doom #0340
Edison Welding Institute/NJC        |Today's lyric: "Why does it

http://ewi.ewi.org/~rroberts        | -Frank Zappa

2. help making kernel

3. cannot set up UMASK or groups so that users from one group cannot access other groups

4. Redirect with fragment?

5. Q for apache GURUs: Apache Proxy and User Auth.

6. Remove CONFIG_SMP around wait_task_inactive()

7. Help with "Apache User Auth" -> user/password mod_auth_external.c

8. delay

9. Apache SSL / Basic auth

10. Apache --> Tomcat Auth Basic header forwarding

11. Problems w/ Directory Indexing and Basic Auth in apache 2.0

12. apache + php + basic auth => password theft => solutions?

13. Apache & redirect upon basic auth cancel button