multi password file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • uptowno
    owner
    • Apr 2002
    • 165

    #1

    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
    Confirmed User
    • Aug 2001
    • 1680

    #2
    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.
    <CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A>

    <FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER>

    Comment

    Working...