Gossamer Forum
Home : Products : DBMan : Installation :

How do I get a login page?

Quote Reply
How do I get a login page?
Just started testing DBMan ... no problem installing.
Initially, I set up with
$auth_no_authentication = 0;
all users must be authenticated ... worked perfectly.

But what I want is:
* No authentification for default users (View only)
* Login for registered users (View, Add, Delete own records, Modify own records)
* Login for Admin

So I have these settings in default.cfg

$auth_no_authentication = 1;
$auth_allow_default = 1;
@auth_default_permissions = (1,0,0,0,0);
$auth_signup = 1;
@auth_signup_permissions = (1,1,1,1,0);
$auth_modify_own = 1;
$auth_view_own = 0;

Should be OK, but it isn't.
I have no idea how to get
* a login screen for either Admin or registered users.
* a signup screen for new users who want to add a record

When $auth_no_authentication = 0, I can get these screens, and they work successfully.
When $auth_no_authentication = 1, I can't get them at all.

I have a feeling that I may have made an elementary mistake somewhere, but I can't figure it out.

Any guesses?



Quote Reply
Re: How do I get a login page? In reply to
there are a few threads about this.

http://gossamer-threads.com/perl/forum/showflat.pl?Cat=&Board=DBInst&Number=124158&page=&view=&sb=&vc=1

this thread should get you going. Post again if you have more questions.

good luck

**************************************
on the pages in between ...
Quote Reply
Re: How do I get a login page? In reply to
> http://gossamer-threads.com/perl/forum/showflat.pl?Cat=&Board=DBInst&Number=124158&page=&view=&sb=&vc=1
Nothing there works for me ...
The DBMAN Configurator does not return a result.

I've looked through all the documentation I can find, and spent 2-3 hours searching the DBMAN forums ... and the only conclusion I have reached is that my set up *should* work!


When $auth_no_authentication = 0, all users have to login.

When $auth_no_authentication = 1, the only Main Menu options I can get are
| Home | View | List All | Log Off |

Nothing I do gets anything else except that.

I can't force casual users to login just to search and view records.

How do other people get login and signup pages when there is no authentification?



Quote Reply
Re: How do I get a login page? In reply to
Try these settings:

$auth_no_authentication = 0;
$auth_allow_default = 1;
@auth_default_permissions = (1,0,0,0,0);
$auth_signup = 1;
@auth_signup_permissions = (1,1,1,1,0);
$auth_modify_own = 1;
$auth_view_own = 0;


When you call your database use:

db/db.cgi?db=sgtsl&uid=default

which should take visitors to the home page of your database.

To have a signup feature on the login screen:

In your html.pl file in sub html_login_form

after the line that contains:

<INPUT TYPE="SUBMIT" name="login" VALUE="$submit_button"> <INPUT TYPE="SUBMIT" NAME="logoff" VALUE="$reset_button">

add:

|;
if ($auth_signup) {print qq|<CENTER><$font>You can sign up for an account by <B><a href="$db_script_url?db=$db_setup&signup_form=1">Clicking HERE</a>.</B></font></CENTER><P> |;
}

This will provide an option of of either logging in or creating a new account. A direct link to the signup form would be:

Signup Form: <A HREF="$db_script_url?db=$db_setup&signup_form=1">

If you still have problems with your permission, please visit JPDeni's site and within her DBMan tutorial she has an excellent chart for setting up various permissions.

You will also find many solutions in the FAQ noted below. Hope this gets you up and running.


Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: How do I get a login page? In reply to
Thank You ... it works!
Don't understand why, but it does.


Quote Reply
Re: [YoYoYoYo] How do I get a login page? In reply to
Dear Yo...

I read your thread, but it did not work for me. Does the |; if ($auth_signup) {print qq|<CENTER><$font>You can sign up for an account by <B><a href="http://www.name.com/secure/name/name.cgi?db=name&signup_form=1">Clicking HERE</a>.</B></font></CENTER><P>
|;
} go right after the sentence and on the same line? Also, did you use this for your $auth_signup = 1;

What is its exact look/position?

JPDeni's tutorial says to put a star after the semi colon. How do you get a start, because I only see an asterik: shift-8.

Thank you. Smile
Chill
EZ Web Page Designs
Quote Reply
Re: [chill] How do I get a login page? In reply to
Within sub html_login_form

It would be located after:

<TR align=center><TD colspan=2><INPUT TYPE="SUBMIT" name="login" VALUE="$submit_button"> &nbsp; &nbsp; <INPUT TYPE="SUBMIT" NAME="logoff" VALUE="$reset_button"></TD></TR></TABLE></CENTER></FORM><P>
|;

if ($auth_signup) {print qq|<CENTER><$font><B>You can sign up for an account by <A HREF="$db_script_url?db=$db_setup&signup_form=1">Clicking HERE</A>.</B></font></CENTER><P> |;
}

And yes notice the if ($auth_signup)
this tells the script that unless you have $auth_signup = 1;
then this option will not be displayed.

Hope this clears up your questions



Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] How do I get a login page? In reply to
Dear Lois:

I will try this, and if I do not respond back to you, then it is working. Smile

Thanks. Charles