Content | Navigation |


On pubweb the mod_auth_cas client is used. This CAS client sets server environment variables, enabling you to access CAS attributes set for your enhanced site. Only the CAS attributes enabled for your enhanced site will be available. Access the server variables using your programming language of choice (assuming it is available on pubweb), for example PHP or Perl.

HTML documents cannot retrieve CAS attributes, even though the document itself cannot be accessed without logging in to CAS. A common workaround to adapt existing HTML documents is to rename the file from .htm(l) to .php, adding PHP code snippets where needed, for example, <?php echo $_SERVER['HTTP_CAS_UID']; ?>


Get the attributes from the environment, where each attribute is in the format HTTP_CAS_YOURCASATTRIBUTE


For example, $_SERVER{'HTTP_CAS_MAIL'} to get the logged-in user's email address (according to NDSU LDAP).

Student Focused. Land Grant. Research University.

Follow NDSU
  • Facebook
  • Twitter
  • RSS
  • Google Maps

North Dakota State University
Phone: +1 (701) 231-7961 / Fax: (701) 231-8541
Campus address: Quentin Burdick Building 206
Physical/delivery address: 1320 Albrecht Blvd., Fargo, ND 58102
Mailing address: NDSU Dept. 4530 / PO Box 6050 / Fargo, ND 58108-6050
Page manager: ECI Contacts Page

Last Updated: Wednesday, December 10, 2014 1:00:22 PM
Privacy Statement