Gossamer Forum
Home : Products : DBMan : Installation :

User ID/Password creation

Quote Reply
User ID/Password creation
Heya

I'm trying to have users set up their own username and passwords using the call as in the readme file.

http://myserver.com/cgi-bin/db.cgi?signup_form=1

I get the standard login screen when using this. Do I need to change anything on this? (except for the server name)

For completeness...here are my Authorization settings:

# Authorization Options
# --------------------------------------------------------
# No Authentication? (1 = "there is no authentication", 0 = "there is authentication")
# If you choose no authentication, then set the permissions of what
# people can do with: @auth_default_permissions below.
$auth_no_authentication = 0;

# The amount of time in seconds that user files are kept in the
# auth directory before the program removes them. 2-6 hours is
# probably a good value.
$auth_time = 21600; # 6 hours (in seconds)

# Enable (1) or disable (0) logging.
$auth_logging = 1;

# Allow a default user? This means you can specify a user via the URL
# and skip the logon process. Use this to allow people to search without
# logging on, but require log in if they want to add/modify/remove etc.
# (1 = "yes", 0 = "no")
$auth_allow_default = 1;

# Default permissions used if there is no authentication, or for a default
# user. (View, Add, Delete, Modify, Admin), 1 = enable, 0 = disable.
@auth_default_permissions = (1,0,0,0,0);

# Allow people to sign up for their own userid/passwords? They will
# recieve default permissions.
$auth_signup = 1;

# Permissions a new signup should get.
@auth_signup_permissions = (1,1,1,1,0);

# Registered users: can modify/delete _only_ own records. For this to make
# sense you should set default off or to 1,0,0,0.
$auth_modify_own = 1;

# Registered users: can view _only_ own records. For this to make sense
# you should turn off default permissions.
$auth_view_own = 0;

# Auth user field. This is the field position in the database used for storing
# the userid who owns the record. Set to -1 if not used.
$auth_user_field = 16;

# URL to send user if they chose log off. Leave blank and the script will return to
# the logon prompt (although this only makes sense if you are using authentication).
$auth_logoff = "http://www.dropzone.com/";
Quote Reply
Re: User ID/Password creation In reply to
Are you using the default.cfg or have you changed it? If you're using any other name than default.cfg, you need to use:

http://myserver.com/cgi-bin/db.cgi?db=database&signup_form=1

Even if you're using the default, try

http://myserver.com/cgi-bin/db.cgi?db=default&signup_form=1

It can't hurt and might help.


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


Quote Reply
Re: User ID/Password creation In reply to
Thank you! Worked for me.

------------------
Safe swoops
Sangiro

www.dropzone.com
Quote Reply
Re: User ID/Password creation In reply to
I have the same problem too, even when I've tried your suggestion, it still gave me that same screen. How can I allow a user to create their own username themselves?

Quote Reply
Re: User ID/Password creation In reply to
Check your default.cfg file and make sure you have
$auth_signup = 1;





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


Quote Reply
Re: User ID/Password creation In reply to
Yes I'm sure I have that set to 1. So what could be the problem?
Quote Reply
Re: User ID/Password creation In reply to
I don't know. I've found that it's never fully safe to say "I'm sure it's set." I've said that too many times when I was sure, but it wasn't.

But, if it is set, what I would suggest is that you give us the URL where we can go to your site and you make your .cfg file available in a web-accessible directory in text form, and let us know where that is. Looking at the script and what it's doing is the best way to figure out what's wrong.


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


Quote Reply
Re: User ID/Password creation In reply to
http://mudmud.net/icqcgi/
Thanks...so much Smile
Quote Reply
Re: User ID/Password creation In reply to
You'll need to give the files a .txt extension so I can read them. If these are your working files, make copies of them and save the copies with names like "html_pl.txt" or something like that.

Also, it would be a good idea for you to give us the URL of the site so we can see for ourselves what is (or isn't) happening.

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





Quote Reply
Re: User ID/Password creation In reply to
Can you try looking at it again? It's in
http://mudmud.net/icqcgi/test

Thanks so much!
Quote Reply
Re: User ID/Password creation In reply to
I found the problem.

$auth_no_authentication = 1;

This needs to be set to 0. It seems kind of backwards, I know, but in order to have the login page come up, you need to have

$auth_no_authentication = 0;

I also see two problems in your .cfg file that are unrelated to the current issue:

@auth_default_permissions = (1,0,0,0,1);

Are you sure you want a default user to have admin permissions?

$auth_user_field = 9;

Your field #9 is City. The only field that looked like it might be a field for the userid is "Nick." If that's what you intend, you need to set $auth_user_field to 2. If not, either you need to create a field for the userid, or set $auth_modify_own to 0. (Without a userid field, having $auth_modify_own = 1 doesn't work.)




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





Quote Reply
Re: User ID/Password creation In reply to
 
Quote:
$auth_no_authentication = 1;

It seems kind of backwards, I know,

I hate using negatives, but it made sense in the code at the time. Wink

Cheers,

Alex
Quote Reply
Re: User ID/Password creation In reply to
I'm having a problem getting DBman to allow users to modify and delete their own records. When they try to they get: Error: no matching records. I have put a .txt version on my server for those that wish to take a look and help. Go to:

http://www.aamc.net/cfg.txt

Thanks in advance.
Quote Reply
Re: User ID/Password creation In reply to
I'm not sure if this is the problem, but there's something else I saw. You have

@auth_default_permissions = (1,1,1,1,0);

If you want people to only be able to modify their own records, you cannot allow a default user to add, modify or delete. Change this to

@auth_default_permissions = (1,0,0,0,0);

This could be the answer to your problem, though.

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





Quote Reply
Re: User ID/Password creation In reply to
I just can't get this right. It either allows them to delete anything or Error: No records found. I have no hair left. Smile I have posted the file again for review at.

http://www.aamc.net/cfg.txt

Again thanks for any help you can give me.

Here is the script:

http://www.aamc.net/cgi-bin/dbman/db.cgi?db=ow

[This message has been edited by PokiMo (edited March 16, 1999).]
Quote Reply
Re: User ID/Password creation In reply to
I tried to test it out, using the path as given in the .cfg file, but it wouldn't work.

It really helps if I can look at the .cfg file and try out the script.


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





Quote Reply
Re: User ID/Password creation In reply to
For some reason your Userid field isn't being written to the database. I also notice that the record doesn't show when you add a record. It could be that there's a problem with your .db file somewhere -- a record with a field missing or something.


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





Quote Reply
Re: User ID/Password creation In reply to
JPDeni you can find the URL in my last post. Thanks for your help.
Quote Reply
Re: User ID/Password creation In reply to
JDPeni, first thanks for taking the time to help. I made the userid field a -2 in the cfg file because users were complaining that it was showing up. Go figure. Anyway the fields just started showing up blank yesterday. I have no clue as to why. Users can modify records they just can't delete them. I guess it's time to just do away with DBMan all together. Before I go crazy.

Does the cfg file look right for allowing deletion of entries for logged on users of their own records? If so I guess I will try reinstalling with that configuration, and if that doesn't work.... I QUIT! Frown