Hi,
I am trying to get CAS working for the first time. I saw this thread: http://drupal.org/node/177564 and tried what was there. I tried metzlerd's suggestion: "https://cas.myschool.edu/cas/login, then your cas server setting would be cas.myschool.edu and your cas uri would be set to cas." This is exactly my scenario.
So, I have those setting now.
CAS Server = cas.myschool.edu
CAS URI = cas
I am using the Content Access module to password protect a test page that is a CCK Content Type. Under CAS Settings > Redirection Settings I have....
Require CAS login for: Specific Page
Specific Pages = content/test (the url of my test page.)
When I browse to the page content/test on my site, I get the message "You are not authorized to access this page." Is this what should be happening or should it redirect to my CAS server login page? Where do CAS users login? Via the standard Drupal login? mysite.com/user? I don't understand when/where my Drupal site "talks" to the CAS server to do the authentication.
I feel like I have CAS installed correctly but am not using/configuring/applying it correctly. Does anyone know of a step-by-step guide? I step-by-step on how to create a password protected test page would be fantastic.
Thanks everyone,
-Tim
Comments
Comment #1
metzlerd commentedI think you have it set up properly, but I think Content Access might be getting in the way here. Try setting this up for a page that is not access controlled, exactly the way you're don efor content/test. See if it works correctly. It should.
If content access is getting in the way, the next step is to adjust the module weight to make sure that CAS module hooks fire before content access. This can be done by either decreasing the weight of CAS or by increasing the weight of content access. More information about adjusting module weights can be found at:
http://drupal.org/node/110238
Comment #2
TimG1 commentedOkay, I tried it on a different CCK content type that is not using the Content Access module and it seems to be working okay. I get redirected to my login, then redirected back to my site after login with the message Logged in via CAS as username.. Cool! The only page using the Content Access module right now is my test page mentioned above actually.
However, now I don't seem to have permissions to view *any* page on my site once logged in with this CAS user. My top menu (primary links) is gone. All I see is my blank theme with no links anywhere except to view My account & log out.
I have CAS configured to auto set new users to the role "Authenticated User". So, I went to my User Mgmt > Permissions and set all the permissions of Authenticated User to be the same as Anonymous User for now to make sure I can see various content/pages on my site, like the homepage for example. I tried running cron, flushing cache, clearing cache & cookies in my browser after the permissions were updated, no dice.
So, right now Anonymous Users have the same permissions as Authenticated Users. Authenticated Users = CAS users, which can't view any content right now.
-Tim
Comment #3
TimG1 commentedOkay, it was the Content Access module. I tried disabling the Content Access module all together and now it's working! I'll try adjusting the module weight to see if I can get it working with Content Access.
Thanks for the help and taking a look metzlerd!
-Tim
Comment #4
TimG1 commented