Problem/Motivation
I've marked this support request as critical, because it is preventing me from setting up the server at all.
I've successfully installed and activated the "CAS Server" Drupal Module 2.x-3.1 in our Drupal 6.22 installation, but I haven't been able to figure out how it works. The only settings I've been able to see are for the CAS client. I've also tried visiting https://[our domain]/cas, but I receive the message "The requested page could not be found".
I've opened up a question on Stack Overflow in case someone has an answer and wants some SO points! http://stackoverflow.com/questions/8584300/drupal-as-a-cas-server
Comments
Comment #1
jbulcher CreditAttribution: jbulcher commentedI just discovered that the authentication is working, if I use an adapted version of the example script on github. If phpCAS uses the https port (443), how does it communicate with Drupal using a page that doesn't exist?
Comment #2
bfroehle CreditAttribution: bfroehle commentedjbulcher:
https://example.com/cas is never accessed, instead the CAS login process uses https://.../cas/login, ../cas/logout, .../cas/validate, etc.
You can read about it in the CAS protocol.
Comment #3
metzlerd CreditAttribution: metzlerd commentedThe CAS server module does not currenlty require any configuration that's why you don't see any options for the module. The phpCAS library does require that communication occur over ssl. So you need to make sure that your drupal site at least responds to ssl requests before the cas server module can be used effectively.
Ideally your drupal site is set up on a server with a valid certificate and SSL certification can be turned on for the cas clients. I'd recommend that you can navigate to https://yoursite.example.com and get a validated cert before proceeding.
Comment #4
jbulcher CreditAttribution: jbulcher commentedThat makes sense. Thanks for your input! Expecting to see a page named 'cas' really threw me for a while.
Comment #5
jbulcher CreditAttribution: jbulcher commentedComment #5.0
jbulcher CreditAttribution: jbulcher commentedchange http->https
Comment #6
gfoltete CreditAttribution: gfoltete commentedHello,
I installed Drupal 7.39 (on Debian), cas modules (cas + cas_server) and apache ssl.
I have no user in Drupal, I selected the option " Automatically create Drupal accounts ".
When I log me, I can register my login + password in the CAS window but I'm never redirected to my site Drupal.
In my log file, these lines are repeated. We can see that the connection is made a success but I never reach the site.
I voluntarily modified the IP address and the server CAS URL.
Thank you for your help
Comment #7
metzlerd CreditAttribution: metzlerd as a volunteer commentedDid you install the cas server and the cas client on the same drupal site by chance? The cas and cas server modules should never be enabled on the same site.
Comment #8
gfoltete CreditAttribution: gfoltete commentedThank you for your response.
Yes, I installed the both modules on the same drupal site.
What of both modules do I have to install somewhere else ?
Comment #9
gfoltete CreditAttribution: gfoltete commentedPerhaps, only the CAS module is useful?
Comment #10
bkosborneWe need to know more about your specific use case.
You should install the "cas" sub module if you want users of your site to authenticate with an outside CAS server.
You should install the "cas_server" sub module if you want your Drupal site to act as a CAS server. Other websites would specify your Drupal site as the CAS server.
Comment #11
gfoltete CreditAttribution: gfoltete commentedHello,
As I wish that the users authenticates with an extern server CAS, I have to deactivate the module server_cas.
Regrettably, after having recorded my login + password in the CAS window, I still can't to return to the homepage of my site and I have exactly the same logs.
I specify that I installed Drupal with the core/theme octopus_video.
Thank you for your help.
Comment #12
gfoltete CreditAttribution: gfoltete commentedPerhaps, it's a redirection problem after connection ?