I created a user test which has access rights to all sites defined in psa. However, after I typed in the username (test) + the password I always get the Error:
You do not have access rights to this content.
I do not know why because the username and password are right and the user has all privileges. I appreciate any help.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
With "all privileges' I meant that
a) the user is activated
b) in "users->user access rights" the user "test" is member of the "phpSecurityAdmin - All UI Pages" profile
c) in "profiles->phpSecurityAdmin - All UI Pages->Edit" "Admin Privileges" and "test2_site(that's my test2.php file)" are checked.
d) in "structure->test2_site->Edit" my file is added with the name "test2_site" and the location "/test2.php".
I'm don't know why it doesn't work. Any suggestions?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do you get any error or warning messages in your logs or on screen (other than the no rights one)? I haven't tested on IIS6 at all, and only a little on IIS5, that may be part of the problem, depending on what $_SERVER keys are set.
Send me an email with the URL of a phpinfo call so I can take a look and see that certain keys are set and what settings you have may be causing problems.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After looking at the phpinfo output, I'm not exactly sure what is happening. If there are no errors, notices, etc. for the database, then things should be working if it's all configured.
IIS doesn't provide $_SERVER['REQUEST_URI'] which may be part of the problem. If you have PEAR::MDB available, I'd suggest downloading the 4.0 alpha release and see if that version works. There were some minor changes in the hasRights (which is now called allowed_access) method.
One last thing I'd suggest is to send me an SQL dump file so I can check that everything is set up as it should be. If everything looks good from that end, then I wouldn't be sure where to look after that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi @all,
I created a user test which has access rights to all sites defined in psa. However, after I typed in the username (test) + the password I always get the Error:
You do not have access rights to this content.
I do not know why because the username and password are right and the user has all privileges. I appreciate any help.
Thanks
What URI are your trying to access, and how is "all privileges" defined?
The URI is: http://ap-server/phpsecurityadmin/test2.php
(it's a Windows Server with IIS6.0 + PHP4 installed).
With "all privileges' I meant that
a) the user is activated
b) in "users->user access rights" the user "test" is member of the "phpSecurityAdmin - All UI Pages" profile
c) in "profiles->phpSecurityAdmin - All UI Pages->Edit" "Admin Privileges" and "test2_site(that's my test2.php file)" are checked.
d) in "structure->test2_site->Edit" my file is added with the name "test2_site" and the location "/test2.php".
I'm don't know why it doesn't work. Any suggestions?
Do you get any error or warning messages in your logs or on screen (other than the no rights one)? I haven't tested on IIS6 at all, and only a little on IIS5, that may be part of the problem, depending on what $_SERVER keys are set.
Send me an email with the URL of a phpinfo call so I can take a look and see that certain keys are set and what settings you have may be causing problems.
After looking at the phpinfo output, I'm not exactly sure what is happening. If there are no errors, notices, etc. for the database, then things should be working if it's all configured.
IIS doesn't provide $_SERVER['REQUEST_URI'] which may be part of the problem. If you have PEAR::MDB available, I'd suggest downloading the 4.0 alpha release and see if that version works. There were some minor changes in the hasRights (which is now called allowed_access) method.
One last thing I'd suggest is to send me an SQL dump file so I can check that everything is set up as it should be. If everything looks good from that end, then I wouldn't be sure where to look after that.
Only a notice that: at line 7 in _restrict.php session already started session_start().
I've tested it with apache too and still it doesn't work. Must be something with the $_SERVER keys. I will send you the url asap.
Thanks!
Hi,
did you get my email? my email account didn't work right the last days so I'm not sure I recieved your answer or not.
thanks
See my reply from the 13th in this thread.