I found this perl script this morning, that does what I would like to do. However, I want to take it about 2 steps further and integrate what it does with DBMan. Anyone up to helping me with a challenge?
The script is from Ranson's Scripts. It's a free script that is called password+redirect. You can get it at:
http://rlaj.com/...ssword/passwd-redir/
What it does is maintain a password file that when you login directs you to a specific url.
VOILA! Step 1 of what I need, a generic form on our corporate site for clients that lets them log in and go to their client files without knowing the behind the scenes way to get there (we don't want/won't have a links page for all clients)
So, this takes the Client A to Client A's Index page for their DBMan database access and other specific files (reports, etc). But it takes Client B to a different page specifically for client B.
And another thing it does, is block the user from linking to underlying pages. They can ONLY link (send to desktop or make a favorite) the login page. Which is cool, because I can change the links on the back end however, always leaving the login page the same and the client will never have bad links and never really know where they are going on our site.
I would like to be able to integrate the DBMan .pass files SO that a user who is set up with a login and password can login once and skip the DBMan login page going straight to their assigned default.db
The challenge in doing this is that I can't have one big .pass file for all clients. I have 2 levels of admin set up, one is a client admin level and they can assign users and passwords. Then I have a superadmin, which is a Corporate level admin and we can do anything.
Since I've allowed Clients to set up their own users, there is one .pass file per client. Each client .pass file has one login/password combo that is for superadmin and they can't see/change that.
Now, taking that and applying it to the new script which is a login for all clients from one form, what would be ideal, is to be able to require all the other .pass files and have the login be maintained at the client level but usable at the corporate level --
So if Sally at Client A wants to login. She goes to the login page. puts sally/sally in for her login/password and is redirected not only to Client A's index page, but also is already logged in to DBMAN (her uid is passed from the initial login.
I can see a few issues.
1 - Can the password file use an require to include all the other password files?
2 - I may need another field for the Client name so that I don't have to worry about uniqueness of login name (among all clients - they still need to be unique at that client site)
3 - passing the uid from the first login and getting to the right page for the client with DBMan understanding what the heck is going on! (maybe if the first login is generated by a Master DBMan default.cfg?)
4 - I want there to be a default form for "you are not a user yet" when the login fails and send an automatic email to the admin and superadmins for that client/or just to superadmin if the client has no database yet!
5 - eventually moving all this to DBMan sql because we are quickly multiplying the use of this and flat files aren't going to be able to handle it much longer. Plus with SQL I only need multiple tables per client and can keep everything in one master database.
Ideas, suggestions, thoughts? I hope this is clear enough!
Thanks for any advice, horror stories, or suggestions you can give me. Even if it is to say "you are totally crazy!"
Lynette
The script is from Ranson's Scripts. It's a free script that is called password+redirect. You can get it at:
http://rlaj.com/...ssword/passwd-redir/
What it does is maintain a password file that when you login directs you to a specific url.
VOILA! Step 1 of what I need, a generic form on our corporate site for clients that lets them log in and go to their client files without knowing the behind the scenes way to get there (we don't want/won't have a links page for all clients)
So, this takes the Client A to Client A's Index page for their DBMan database access and other specific files (reports, etc). But it takes Client B to a different page specifically for client B.
And another thing it does, is block the user from linking to underlying pages. They can ONLY link (send to desktop or make a favorite) the login page. Which is cool, because I can change the links on the back end however, always leaving the login page the same and the client will never have bad links and never really know where they are going on our site.
I would like to be able to integrate the DBMan .pass files SO that a user who is set up with a login and password can login once and skip the DBMan login page going straight to their assigned default.db
The challenge in doing this is that I can't have one big .pass file for all clients. I have 2 levels of admin set up, one is a client admin level and they can assign users and passwords. Then I have a superadmin, which is a Corporate level admin and we can do anything.
Since I've allowed Clients to set up their own users, there is one .pass file per client. Each client .pass file has one login/password combo that is for superadmin and they can't see/change that.
Now, taking that and applying it to the new script which is a login for all clients from one form, what would be ideal, is to be able to require all the other .pass files and have the login be maintained at the client level but usable at the corporate level --
So if Sally at Client A wants to login. She goes to the login page. puts sally/sally in for her login/password and is redirected not only to Client A's index page, but also is already logged in to DBMAN (her uid is passed from the initial login.
I can see a few issues.
1 - Can the password file use an require to include all the other password files?
2 - I may need another field for the Client name so that I don't have to worry about uniqueness of login name (among all clients - they still need to be unique at that client site)
3 - passing the uid from the first login and getting to the right page for the client with DBMan understanding what the heck is going on! (maybe if the first login is generated by a Master DBMan default.cfg?)
4 - I want there to be a default form for "you are not a user yet" when the login fails and send an automatic email to the admin and superadmins for that client/or just to superadmin if the client has no database yet!
5 - eventually moving all this to DBMan sql because we are quickly multiplying the use of this and flat files aren't going to be able to handle it much longer. Plus with SQL I only need multiple tables per client and can keep everything in one master database.
Ideas, suggestions, thoughts? I hope this is clear enough!
Thanks for any advice, horror stories, or suggestions you can give me. Even if it is to say "you are totally crazy!"
Lynette

