Gossamer Forum
Home : Products : DBMan : Customization :

3 db's 1 pass, log & auth????

Quote Reply
3 db's 1 pass, log & auth????
This may have been discussed before, if so I am sorry..I did not find it.

I have 3 versions of dbman running for 3 different databases which are using templates running 3 different designs.

I would like to have only one pass, log and auth for all three. Thus allowing someone to login once and have access to all three databases in the same session. All permissions are the same for all three, view only.

Thanks for the help!
Adam

Quote Reply
Re: 3 db's 1 pass, log & auth???? In reply to
As long as all the databases reside in the same directory just use change all the lines in your .cfg files to point to the same .pass. .log and auth.pl file

Example:

$auth_pw_file = $db_script_path . "/all.pass";
$auth_dir = $db_script_path . "/auth";
$auth_pw_file = $db_script_path . "/all.pass";
$auth_log_file = $db_script_path . "/all.log";
If your databases are in different directories, just adjust the path to point to the correct location.

Hope this helps

Quote Reply
Re: 3 db's 1 pass, log & auth???? In reply to
All you have to do, is specify the same .auth, .pass and .log file in each of the database's .cfg file.

- Mark

Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: 3 db's 1 pass, log & auth???? In reply to
It is not necessary to specify a database at this point, either...which means that when a user logs in, they have access to all three databases, yes?

Valerie
http://www.skymax-usa.com
http://www.ad-ink.com
Quote Reply
Re: 3 db's 1 pass, log & auth???? In reply to
In each of your .cfg files you would need to define the database:

$db_file_name = $db_script_path . "/data1.db";

You are correct when the user logs in they will have access to all 3 databases.

Have you by any chance read the relational mod? I'm not sure if you are going to be connecting the databases together or not, but it will provide information on going between databases.

You could provide links to all three databases on the home page of each database.

Quote Reply
Re: 3 db's 1 pass, log & auth???? In reply to
The current plan is to maintain two separate, unrelated db's, which share through format.pl the same home page. JPDeni's Relational Mod txt sits printed beside me and I remain logged in to the forum - trying to gather as much info as possible so that I am armed when funky things start happening. At this time, I am working on adding the Validate Records mod to one DB prior to another mod, then, hopefully, we can go live with this thing (only to await the next round of updates!).


Valerie
http://www.skymax-usa.com
http://www.ad-ink.com