(running Apache) retrieving usernames and passwords from another http (linux) server?
I have made for a client a website with user registration feature, hosted on a shared linux hosting.
The client of the website has an
internal always turned-on Mac with XAMPP and Pure-FTPd running on OS X, connected to Internet with a static IP.
In the website, I can create a button/link which connects with
phpWebFTP (a nice web FTP client) installed in htdocs on the Mac server, which connects to the FTP server (pure-FTPd) on the same machine (localhost, i.e. the Mac server); the link/button can send the username, and phpWebFTP will ask for the password. No problem on this side.
Said that, I need this:
when a user registers on the website (maybe not in the very same moment, even at regular intervals is good enough),
an FTP account should be created on the Mac server, with same username/password used for registration.
So I need some sort of chron job, script, reading a file from the linux server, etc... well, I don't know!
I have found the following useful page on Pure-FTPd documentation:
README.Virtual-Users
Unfortunately,
I need pretty detailed and straightforward instructions on what to do on the Mac side, because:
-
I am not a Mac user (but I am comfortable with terminal, command-line utils and this sort of things)
- the internal Mac server is located in a pretty
distant place from me
- I have a
limited amount of time to put my hands on the server, after which I have to schedule a new trip
So, for the linux shared hosting php part no details needed; for the Mac server part, something like a tutorial would be very appreciated.
Thanks, sincerely
Where is the auth information stored? Can you share an authentication database, instead? LDAP, or RADIUS, or NIS, perhaps?
If the web server saves its auth information in a flat file, can the FTP server read from the same file? http://www.proftpd.org/docs/modules/mod_auth_file.html
posted by cmiller at 7:31 AM on December 8, 2008