I have the script in a password protected directory. I am using authentication in the script. The usernames and passwords were setup (and are the same) for both the directory and the script. The permissions are working correctly. I'm using auto generate.
I have the auth_user_field set to field 11. However, the userid is not showing up in field 11. I looked at the auth.pl and if the dbman script is using authentication then it checks to see if you logged in or if you were authenticated through the server. Either way it should grab the right userid and have a value in $db_userid.
What is wrong?
The userid field doesn't work in the default database either.
Here is my .cfg file stuff:
db_def = (
ID => [0, 'numer', 5, 8, 1, '', '' ],
Date => [1, 'date', 12, 15, 1, '', '' ],
Organization_URL => [2, 'alpha', 40, 255, 1, 'http://', '^http://' ],
Organization_Name => [3, 'alpha', 25, 100, 1, '', '' ],
Contact_Name => [4, 'alpha', 25, 40, 1, '', '' ],
Contact_Phone => [5, 'alpha', 20, 20, 0, '', '' ],
Contact_Email => [6, 'alpha', 30, 255, 0, '', '.+@.+..+' ],
Posted_PSA => [7, 'alpha', 0, 3, 1, 'Yes', 'Yes|No' ],
Followup_Needed => [8, 'alpha', 0, 3, 0, '', 'Yes' ],
Comments => [9, 'alpha', '40x5', 500, 3, '', '' ],
Last_Modified => [10, 'date', -2, 15, 1, &get_date, '' ],
Userid => [11, 'alpha', -2, 255, 0, '', '' ]
);
$auth_no_authentication = 0;
$auth_user_field = 11;
I have the auth_user_field set to field 11. However, the userid is not showing up in field 11. I looked at the auth.pl and if the dbman script is using authentication then it checks to see if you logged in or if you were authenticated through the server. Either way it should grab the right userid and have a value in $db_userid.
What is wrong?
The userid field doesn't work in the default database either.
Here is my .cfg file stuff:
db_def = (
ID => [0, 'numer', 5, 8, 1, '', '' ],
Date => [1, 'date', 12, 15, 1, '', '' ],
Organization_URL => [2, 'alpha', 40, 255, 1, 'http://', '^http://' ],
Organization_Name => [3, 'alpha', 25, 100, 1, '', '' ],
Contact_Name => [4, 'alpha', 25, 40, 1, '', '' ],
Contact_Phone => [5, 'alpha', 20, 20, 0, '', '' ],
Contact_Email => [6, 'alpha', 30, 255, 0, '', '.+@.+..+' ],
Posted_PSA => [7, 'alpha', 0, 3, 1, 'Yes', 'Yes|No' ],
Followup_Needed => [8, 'alpha', 0, 3, 0, '', 'Yes' ],
Comments => [9, 'alpha', '40x5', 500, 3, '', '' ],
Last_Modified => [10, 'date', -2, 15, 1, &get_date, '' ],
Userid => [11, 'alpha', -2, 255, 0, '', '' ]
);
$auth_no_authentication = 0;
$auth_user_field = 11;