Gossamer Forum
Home : Products : DBMan : Installation :

using database without auth?

Quote Reply
using database without auth?
I want people to search the database without logon. How can I do this?
Thx
Quote Reply
Re: using database without auth? In reply to
In your default.cfg file, set
$auth_no_authentication = 1;
Quote Reply
Re: using database without auth? In reply to
Not to be contrary, but I wouldn't suggest that unless you have a database that you either want everyone to be able to add, modify or delete any records or you don't want be able to modify or delete records online.

What I would suggest is setting
$auth_no_authentication = 0;
$auth_allow_default = 1;
@auth_default_permissions = (1,0,0,0,0);

If you want non-registered users to be able to add records, set
@auth_default_permissions = (1,1,0,0,0);

Then, use the following for the link for users to view:

http://path/to/db.cgi?db=default&uid=default

If you have named your database something other than "default," insert that name after db= above.

To get to the login screen, use
http://path/to/db.cgi

If you have a database named something other than "default," use
http://path/to/db.cgi?db=database

------------------
JPD
Quote Reply
Re: using database without auth? In reply to
Thx for immidiate help.
Another question:
How do I make my opening site like "index.html" start directly with the "view"-Site (Database Search). That means getting the "guest.6572416...". Mabe by "Refresh"?
THx
PG
Quote Reply
Re: using database without auth? In reply to
You don't have to worry about the "guest.6572416..." if you're allowing a default user. That only appears after a login.

If you want to link directly to the search page from a static page in your site, use

http://path/to/db.cgi?db=default&uid=default&view_search=1



------------------
JPD
Quote Reply
Re: using database without auth? In reply to
The only idea I had is building an index.htm like: <script language="JavaScript" cyberversion="N1.0"><!--
function stopError() {
return true;
}

window.onerror = stopError;


function redir() {
location = 'http://path/cgi-bin/db.cgi?db=default&view_search=1';
}
// -->
</script>

So if you link to www.anyone.com, the first page you see ist the search-Page
Quote Reply
Re: using database without auth? In reply to
If you are using an Apache server, you can try:

DirectoryIndex /path/to/db.cgi?uid=default&view_records=1 index.html index.htm

in a .htaccess file in the directory you want.

Cheers,

Alex