Menu

Error:You don't have access rights to this co

Help
amoayedi
2004-09-07
2004-09-14
  • amoayedi

    amoayedi - 2004-09-07

    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

     
    • Justin Koivisto

      Justin Koivisto - 2004-09-07

      What URI are your trying to access, and how is "all privileges" defined?

       
    • amoayedi

      amoayedi - 2004-09-08

      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?

       
      • Justin Koivisto

        Justin Koivisto - 2004-09-08

        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.

         
        • Justin Koivisto

          Justin Koivisto - 2004-09-13

          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.

           
    • amoayedi

      amoayedi - 2004-09-09

      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!

       
    • amoayedi

      amoayedi - 2004-09-14

      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

       
      • Justin Koivisto

        Justin Koivisto - 2004-09-14

        See my reply from the 13th in this thread.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.