Gossamer Forum
Home : Products : DBMan : Installation :

Defining Logon Authority:

(Page 1 of 2)
> >
Quote Reply
Defining Logon Authority:
Okay...everything seems to be working so far. I pull up the DBMan demo and the Logon Screen appears. Hmmp. "Now, which logon/password are they refering to?", Is the question that pops into my mind. I tend to believe that I need a seperate Logon/Password for DBMan but I don't remember establishing anything of the sort when setting up the scripts. So, I try using my server access Logon/password. NOGO. Doesn't work.

Okay....How do we establish Logon permissions?

Thanks!
Justin
Quote Reply
Re: Defining Logon Authority: In reply to
LOL Mike! Ended up figuring that out. *s*

When I did, this is what it gave me in response: (Top line only)

unable to open auth file: ./auth/. Reason: Permission denied

So, how do we set permissions?
Quote Reply
Re: Defining Logon Authority: In reply to
Try starting with admin/admin.
Quote Reply
Re: Defining Logon Authority: In reply to
Can you post your .cfg file in a web-accessible directory (one where you would place html files) and rename it to default_cfg.txt? It would help to be able to see it.


------------------
JPD





Quote Reply
Re: Defining Logon Authority: In reply to
Are you still working with netscape? How did you set the permissions on your other files? db.cgi, etc.. My problem was that I forgot to set my auth directory permissions to 777 or drwxrwxrwx That would give you the error you mention

Mike
Quote Reply
Re: Defining Logon Authority: In reply to
I had a look at all three you mention and I think ftp voyager will be
the easiest for you to work with. Connect to your site then find and
right click your auth directory, select properties and set the
permissions to 777 or read, write, execute for everyone(user,group, and
world). email me if you need help.
Quote Reply
Re: Defining Logon Authority: In reply to
JP, here is what you requested: http://www.apds2000.com/default_cfg.txt
Please see what you can find. If you need to see another file let me know.

mike,...yeah, I'm still using Netscape for FTP but as I said on the other board, it doesn't provide options for setting permissions.

"to 777 or drwxrwxrwx" - Now where would you do this? What file? What ROW?

I'll be sticking my head in and out of here all day to keep up.

Justin
Quote Reply
Re: Defining Logon Authority: In reply to
Justin,

If you are going to work with perl you will need an ftp program that allows you to set permissions or else you will need telnet access to your server to 'chmod' your files. There are a lot of good ftp programs available out there. Try http://www.tucows.com and search on ftp client.

Mike
Quote Reply
Re: Defining Logon Authority: In reply to
mike, looking at some right now. Hard to tell which one is going to be the one I need.
So far, WebFTP, FTP Express, FTP Voyager, and Ability look to be the best. Got a preference?

BTW...I couldn't find CuteFTP or wsFTP.

[This message has been edited by JustJay (edited June 15, 1999).]
Quote Reply
Re: Defining Logon Authority: In reply to
Okay...FTP Voyager set up. Which files do I need to change permissions on?

JP...find anything in the default_cfg?
Quote Reply
Re: Defining Logon Authority: In reply to
Justin,

You need to set the permissions on the 'auth' directory itself to 777.

Mike
Quote Reply
Re: Defining Logon Authority: In reply to
Okay! Hey, it worked! I also had to change the permissions on the default.log.

"MAIN MENU!" What a wonderful sight!

Time to tinker!

Thanks, Mike!
Quote Reply
Re: Defining Logon Authority: In reply to
Your default.cfg file looked just fine. I had forgotten that you hadn't set permissions.


------------------
JPD





Quote Reply
Re: Defining Logon Authority: In reply to
Thanks JP. DBMan up and running....now, I just need to modify the Html.pl

Is there a discussion on this taking place right now? I'll be looking for it.
Quote Reply
Re: Defining Logon Authority: In reply to
There's discussions all over the place on modifying the html.pl file.

What I would suggest first, though, is that you create the fields you want in your own database.


------------------
JPD





Quote Reply
Re: Defining Logon Authority: In reply to
Good idea! Ummmm, how? lol

Man, this is really humbling! lol
Quote Reply
Re: Defining Logon Authority: In reply to
I've written the beginnings of a tutorial on setting up DBMan, which includes defining your database fields. You can see it at http://www.jpdeni.com/dbman/tutorial2.html . This should get you through at least setting up your own fields.


------------------
JPD





Quote Reply
Re: Defining Logon Authority: In reply to
JP...here's one for ya! heh heh heh

Okay, I'm trying to create a multiple "category" submission using checkboxes. Multiple selections.

Need an idea? Check out this form-->
http://www.oe-online.com/OEOnline/INFOAREA/forms/add_yours.html

The form you will see when you get there is a simple e-mail filler. I want a similar form to load the data directly into the data base.

Can it be done? (Wasn't in the tutorial)

Justin
Quote Reply
Re: Defining Logon Authority: In reply to
Just as you have a name for each of the checkboxes on your existing form, you need to have a field for each of the checkboxes in your database. You would have something like:

Code:
Archery => [0, 'alpha', 0, 50, 0, '', ''],
Art => [1, 'alpha', 0, 50, 0, '', ''],
Associations => [2, 'alpha', 0, 50, 0, '', ''],
ATVs => [3, 'alpha', 0, 50, 0, '', ''],
Bait => [4, 'alpha', 0, 50, 0, '', ''],
Camp_Grounds => [5, 'alpha', 0, 50, 0, '', '']
Chats_Bulletin Boards => [6, 'alpha', 0, 50, 0, '', '']
Guides_Charters => [7, 'alpha', 0, 50, 0, '', '']

(I just used some of them for examples. You'll need to change the field numbers and fill in the rest, of course.)

The 50 field length above is arbitrary. You can set it to pretty much whatever you want, so long as it is at least the length of the value which will be put in the field.

A couple of things to watch out for -- with the ones that have spaces, &s or /s in them, it's better to use underlines in the field name. You can use the other characters when you define the checkbox fields. There might be a problem with the / character even then. I'm not sure.

When you define your checkbox fields, use

Code:
%db_checkbox_fields = (
Archery => 'Archery',
Art => 'Art',
Associations => 'Associations',
ATVs => 'ATVs',
Bait => 'Bait',
Camp_Grounds => 'Camp Grounds',
Chats_Bulletin Boards => 'Chats/Bulletin Boards',
Guides_Charters => 'Guides & Charters'
);

On your list at the moment, I didn't see anything with an apostrophe, but if you should need to use one, you need to put a \ before it like

Code:
Dont_call => 'Don\'t call'



------------------
JPD





Quote Reply
Re: Defining Logon Authority: In reply to
Okay...Edited the default.cfg and ran DBMan. The following was the result. I looked at line 120 in the cfg but couldn't find anything. Could it that there are too many "categories"? I doubt it...


Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Bad name after alpha' at default.cfg line 120.

Got any ideas?
Quote Reply
Re: Defining Logon Authority: In reply to
It's doubtful there are too many categories. Your problem is probably the result of an extra or missing single quote in the line above line 120.

If you would like me to check it for you, post lines 110 - 120 here and I'll find the problem.


------------------
JPD





Quote Reply
Re: Defining Logon Authority: In reply to
JP, I checked out the script and found a couple of missing single quotes and one missing comma. This resolved the problem I was having.

I also found out that you cannot leave a space between words in the...
%db_checkbox_fields = (

Such as:

Chats_Bulletin_Boards =>'Chats/Bulletin Boards',

Slashes do work in the later half.

The .cfg working properly now.

BUT! Instead of checkboxes, I get very short fill-in fields.
Quote Reply
Re: Defining Logon Authority: In reply to
Did you set the field length to 0 for all of your checkbox fields? Are you using autogenerate?


------------------
JPD





Quote Reply
Re: Defining Logon Authority: In reply to
JP

Yes, all of the Form-Lengths are set to 0 for the checkboxes.

About the autogenerate...I was about to ask you about it. How can you tell if you are set for autogeneration?

Quote Reply
Re: Defining Logon Authority: In reply to
Okay...found the autogeneration thing. I had it set to "1".

Has anyone run into problems with the Html.pl file getting so large that you cannot add any more text? I am having this problem on two different servers and on the home PC. Keeps saying that the file is too large or not enough memory. What's the fix for this?

Justin
> >