...
The Bedework quickstart authenticates to the packaged ApacheDS directory server. Most sites choose to authenticate their Bedework users against their centralized directory service. For installations that will not be authenticating to a local domain, the Apache DS server shipped with Bedework is acceptable for a production deployment. Add users to ApacheDS using the tools outlined in Getting started → Authentication and user accounts, and add superusers to the System tab → "Manage “Manage system preferences" preferences” page in the admin client.
...
- Create a Bedework superuser with an account that already exists in your authentication domain. To achieve this, log into the administrative web client (http://localhost:8080/caladmin) as user "admin" “admin” (default password "bedework"), select the "System" “System” Tab → "Manage “Manage system preferences" preferences” and add the accounts that exist in your local domain. Do not remove the "admin" “admin” user from the list of superusers, as a number of services rely on that account (though it does not need to authenticate or exist in your directory).
- Create a user in your domain, e.g. "admin"“admin”, that is already set up as a superuser in the Bedework quickstart.
...
- Configure JBoss to point at your local LDAP server:
- Edit <quickstart>/jboss-5.1.0.GA /server/default/conf/login-config.xml
- Modify the <application-policy name="bedeworkdemo"> ”bedeworkdemo”> section found near line 110 to point to your local LDAP server. This will typically involve modifying three properties:
- principalDNPrefix, e.g. "uid="
- principalDNSuffix, e.g. ",ou=accounts, dc=rpi, dc=edu"
- java.naming.provider.url, e.g "ldap://login.myserver.edu/"
- Prepare your group properties by modifying /home/<userid>/bwbuild/jboss-mysql/cal.options.xml: Set the <user-ldap-group> options on or around lines 68-87
- Rebuild the system:
- stop JBoss
- build Bedework
- restart JBoss
- Test the web clients. Login to the admin or user client to test Ldap auth.
Note | ||
---|---|---|
| ||
If you choose to change the name "bedeworkdemo" “bedeworkdemo” to something more reasonable for your site, you must update the references to "bedeworkdemo" in bwbuild/cal.options (four places) to reflect the new policy name.) |
Option: Use CAS for authentication
- Download the CAS Java Client
- Unzip the file and copy the CAS client to Bedework:## unzip cas-client-3.1.10-release.zip## cd cas-client-3.1.10/modules## cp cas-client-core-3.1.10.jar <qs>/jboss-5.1.0.GA/common/lib/
- Add a CAS filter to each application that requires a log in (eventsubmit, ucal, caladmin). Do caladmin last; you may want access to it while you are debugging this procedure. The files to edit are:
In each file, add the lines in the code box below replacing the URLs with those that work at your site. The CAS filter must come BEFORE any other filters. Also, delete any and all of the following elements:Code Block <qs>/bedework/projects/webapps/websubmit/war/WEB-INF/web.xml <qs>/bedework/projects/webapps/webclient/war/WEB-INF/userweb.xml <qs>/bedework/projects/webapps/webadmin/war/WEB-INF/web.xml
- <security-role-ref>
- <security-constraint>
- <security-role>
- (optionally) Point the logout buttons on the Bedework clients that have them (Admin Client, Personal Calendar Client, Submissions Client) at your CAS server by editing the corresponding stylesheets. For example, in the Submissions Client (<quickstart>/bedework/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl), change the logout "span" to look something like this:
Code Block <span class="logout"> <a href="https://yourserver:8443/cas/logout?service=http%3A%2F%2Fyourserver%2Feventsubmit%2F" id="bwLogoutButton"> <xsl:copy-of select="$bwStr-Hedr-Logout"/> </a> </span>
- build Bedework
...