/* * Copyright (c) 2006, Axel Nennker - nennker.de * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ CAVEAT This installs a copy of your webservers private key to the alias directory This might not be what you want. INSTALL Assumptions: Access Manager and AppServer are installed and running The AppServer must support SSL (currently the SUN ONE server must run as root when AM is used) 1) Edit Makefile to adapt to your environment 1a) # http://docs.sun.com/source/816-6773-10/amadmin.html # read "Loading the Login Module Sample into Access Manager" # http://docs-pdf.sun.com/817-7649/817-7649.pdf # --runasdn uid=amAdmin,ou=People, \ # --password --data amadmin.xml # root_suffix can be found in /etc/opt/SUNWam/config/AMConfig.properties # com.iplanet.am.rootsuffix=dc=e1,dc=i3alab,dc=net # /opt/SUNWam/bin/amadmin --runasdn uid=amAdmin,ou=People,dc=e1,dc=i3alab,dc=net --password password --data amadmin.xml 2) make && make deploy 3) redeploy amserver 4) stop && start websrvr 5) test: notice the httpS. InfoCard login does not work without SSL https://n1v1.e1.i3alab.net/amserver/UI/Login?module=LoginInfoCard - This first authentication fails because you have to administer user Add a user with uid= and password= in the AM's user database - The default password is "password". Change it! Remember: This is only a demo. NO WARRANTY! 6) Modify the success page and the layout DEBUG /var/opt/SUNWam/debug/amAuth search for "Exception" /opt/SUNWwbsvr/https-n1v1.e1.i3alab.net/logs/errors