![]() Ray Davison is the person to ask about CAS.Ends up this comment from my initial look at TextWrangler is no longer true:Īnd so today is the first day since BBEdit 2.1 shipped in April 1992 that ![]() Tell me of any errors so I can correct them. It is not worth spending any more time on these instructions. The command for restarting (stopping/restarting) the webserver is: sudo apachectl graceful (This can also done in Terminal, and must be done in Terminal in Lion & Mountain Lion. So I just went into system preferences, stopped and restarted the webserver (duh.). ![]() Httpd: Could not reliably determine the server's fully qualified domain name, using. ta_applications/) I was redirected to the server name. To return things back to a clean state you need to stop Apache and empty the cache directory (/etc/apache2/cas in your case). This means that once you have logged in to a protected web page with one account, you can't test with another account even if you log out of CAS because the module has cached your login. This can be done by visiting the logout page at: Ģ) The mod_auth_cas module also caches logins so that if you have a web page with a bunch of images it doesn't repeatedly hit CAS to authenticate each of the images. This means if you want to test logging in with different accounts, you need to clear the cookie. From Ray- Some things to keep in mind when testing:ġ) CAS sets a cookie when you login so that single signon works. Problems? check the console for error messages (Go to Applications/utilities, or just type console in spotlight. htpasswd file (webapplicant is both username and password here) webapplicant:snxXBvTU7Z8lg htaccess file (you will have to change the path of AuthUserFile /pathto/.htpasswd) AuthType CASAuthName "login as SFU user or webapplicant"AuthUserFile /Library/WebServer/Documents/YourPath/.htpasswdrequire valid-sfu-userrequire valid-userĬontents of. Go to and htaccess.html for how to control access. LoadModule auth_cas_module /usr/libexec/apache2/mod_auth_cas.so and modify the cookie path: CASCookiePath /usr/local/apache2/cas/Ĭhange AllowOverride None to AllowOverride AuthConfig (in several places, depending on what you are doing).įinally, to activate your changes, go to system preferences and turn off web sharing, then turn it back on. Give the explicit path for mod_auth_cas.so e.g. (In Mountain Lion I also commented out mod_authn_default.so) open /private/etc/apache2/ Then backup and open nf in textwrangler.ĭownload this (from Snow Leopard) and use textwrangler to do a side by side comparison to the original and make modifications to your Apache config.Ĭomment out 5 lines LoadModule lines- mod_authz_groupfile.so, mod_authz_user.so, mod_authz_dbm.so, mod_auth_basic.so, mod_auth_digest.so. In terminal open the folder that the nf file is in /private/etc/apache2/. Hit return which will put you in the directory with the src code which can be compiled with sudo /usr/sbin/apxs -i -c mod_auth_cas.c If this does not work, you can check where apxs is by using which apxsĬreate a new directory to save cached logins: sudo mkdir /etc/apache2/cas Open terminal and type cd and then drag the src folder within the mod_auth_cas_sfu-1.0.8 folder to the terminal window. When you download that on your Mac, it should untar so you will end up with a mod_auth_cas_sfu-1.0.8 directory. ![]() More information about CAS is at SFU's CAS pages. Please email me with any corrections or suggestions.ĭownload a copy of mod_auth_cas which you can get from. Please email so they know you are using CAS and can inform you of any changes. To turn it on, go to system preferences/sharing and check the 'Web Sharing' box. Any mac will work as a web server- apache is built in. Textwrangler will make changes much easier. You need the Developer tools (Xcode) from Apple installed (with Mountain Lion & Lion you need to go to Xcode preferences and install the command line tools). Adding SFU's CAS support to Apache on Mac OS X Snow Leopard / Mountain Lion These directions are directly taken from information by Ray Davison (SFU ICAT, IT Services) and extensive help from Derek Warren (IT Services) but any error, confusion or ambiguity is completely my own.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |