GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   multi password file (https://gfy.com/showthread.php?t=152625)

uptowno 07-14-2003 06:13 AM

multi password file
 
i need a script that can write to multi htacess password files on different servers, can anyone point me to site that has one. I remember seeing one a while back but can't remember what site it was on.


thanks

fiveyes 07-14-2003 09:42 AM

I think I see what you want to do, have different servers accessing the same copy of a htpasswd file. Yes?

If so, you could have each server have a CGI script that would accept a UserName:Password pair and write to the local htpasswd file. Then you'd need a script that would use LWP:UserAgent to "broadcast" a new user for all the sites to add. There are a number of problems that come up with this approach, such as one server timing out in the chain, numerous security issues and the difficulty in correctly file locking across multiple systems, to name three of the most obvious.

Much better would be to update a single htpasswd file and use rsync to mirror it regularly to the other sites. Of course the simplest, most fool-proof, solution is to have all the domains on one box and simply use one htpasswd file for them all.


All times are GMT -7. The time now is 02:46 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123