Gossamer Forum
Home : Products : DBMan : Customization :

Authentication & Users Setup

Quote Reply
Authentication & Users Setup
How should I configure the default.cfg to meet all of the following requirements:
1. allow everyone to view records (using default user) without loging on
2. registered users must log on to add/view/modify/delete own records
3. registered users can only view/modify their own records

I can either make 1 work or 2&3 work but not all 3 at the same time. Is there a way to allow this to occur?
Quote Reply
Re: Authentication & Users Setup In reply to
I have the same question but in addition to the 3 questions posted I also need to know how to make it so that when someone is browsing the database as a guest and decides they want to add their product it creates an ID for them based on their email address?

Thanks
Quote Reply
Re: Authentication & Users Setup In reply to
Check out JPDeni's DBMAN-ual site at


She has detailed descriptions of how to set-up permissions in the default.cfg file in her Tutorial section.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited September 14, 1999).]

[This message has been edited by Eliot (edited September 14, 1999).]

[This message has been edited by Eliot (edited September 14, 1999).]
Quote Reply
Re: Authentication & Users Setup In reply to
It works, BUT... The "test" userid (password="test") I created cannot delete his own records.

Even though all the settings in the default.cfg file were set correctly (can see my default.cfg in folder www.ezfindit.com/test) when user "test" tries to delete a record this error messages comes up = "Error: no search terms specified".

Any ideas why? Thanks.
Quote Reply
Re: Authentication & Users Setup In reply to
I've uploaded my default.cfg file in the www.ezfindit.com/test folder for your reference.

To use the "test" userid (pswd="test) you can access it at www.ezfindit.com/cgi-bin/dbman/db.cgi.

The settings for "test" allows user to add/view/modify/delete his own postings.

Quote Reply
Re: Authentication & Users Setup In reply to
Try setting your $auth_modify_own variable in the default.cfg file to the default value of

1,0,0,0 (which allows users to modify and delete their own records).

So, it should look like the following:

Code:
$auth_modify_own = 1,0,0,0;

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Authentication & Users Setup In reply to
I made the change and I'm still getting the same error ("Error: no search terms specified") when a user tries to delete a record.

What else is causing this?

Quote Reply
Re: Authentication & Users Setup In reply to
Found the answer in Carol's (quite excellent) response to someone who had the same problem. In 5 minutes or less = THERE's a tiny BUG in the User Friendly HTML.PL file.

Here's the fix from Carol's own post for reference:

On the "Delete" link, change
delete_form=1&db_key=*">Delete</A> !
to
delete_form=1&$db_key=*">Delete</A> !

What a difference a $ makes!! (JPD
I second that statement.
- Bogdan

BTW - ALEX if you're reading this PLEASE change the downloadable User Friendly HMTL.PL file so future users won't get this silly error. Thanks everyone!
Quote Reply
Re: Authentication & Users Setup In reply to
ezfindit,

That User-Friendly html.pl was written by JPDeni (Carol). It is up to Carol to update her listing in the Modification Section. And actually the newer and improved User-Friendly html.pl is available at the DBMAN-ual site maintained by Carol (JPDeni), which is located at:

www.jpdeni.com/dbman/

Wink

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us