George_Sherston has asked for the wisdom of the Perl Monks concerning the following question:
... which works fine for a couple of thousand user / pass combos, but then falls over for no readily-apparent reason.my $htp = new Apache::Htpasswd;("/home/httpd/conf/.htptestaccess") my $User = 1; while ($User <= 100000) { my $pass = new String::Random; my $PassWord = $pass->randpattern("Cccccnn"); $htp->htpasswd("User_" . $User, $PassWord); $User ++; }
... and now it's sweet as a nut, still chuntering away as I write this (it's up to 18,214 users, going strong).system 'htpasswd', '-b', '-m', '/home/httpd/conf/.htptestaccess', +$User, $PassWord;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: Reliability of Apache::Htpasswd
by tilly (Archbishop) on Mar 02, 2002 at 22:13 UTC | |
by George_Sherston (Vicar) on Mar 02, 2002 at 22:22 UTC | |
by virtualsue (Vicar) on Mar 03, 2002 at 20:30 UTC |