My client wanted me to secure his entire site, so I added .htaccess password protection. As soon as I did this, I discovered that dbman no longer asked for a login, meaning that no one could specify a dbman username. I need to restrict access of database output to only the records associated with the user logging in, so they have to be forced to log in.
I enabled that by commenting out the following lines in auth.pl:
# elsif ($server_auth) { # The user has logged in via server authentication.
# return ('ok', $server_auth, &auth_check_permissions($server_auth));
# }
But now of course the user has to log in twice... If dbman can recognize that the user is already authenticated, can it also extract the username from somewhere, so I could restore the above lines, and add code to tell it what to use for a username? That would make the site much more user friendly. Customers don't like to be hassled with multiple password requests during the same session at a site!
Any one have a fix for this?
Cheers,
Bruce
------------------
Bruce Dienes
bdienes@iname.com
I enabled that by commenting out the following lines in auth.pl:
# elsif ($server_auth) { # The user has logged in via server authentication.
# return ('ok', $server_auth, &auth_check_permissions($server_auth));
# }
But now of course the user has to log in twice... If dbman can recognize that the user is already authenticated, can it also extract the username from somewhere, so I could restore the above lines, and add code to tell it what to use for a username? That would make the site much more user friendly. Customers don't like to be hassled with multiple password requests during the same session at a site!
Any one have a fix for this?
Cheers,
Bruce
------------------
Bruce Dienes
bdienes@iname.com

