From portal-commits at lists.jboss.org Sat Mar 3 11:38:30 2007 Content-Type: multipart/mixed; boundary="===============8445738188563838147==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r6500 - docs/trunk/referenceGuide/en/modules. Date: Sat, 03 Mar 2007 11:38:30 -0500 Message-ID: --===============8445738188563838147== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: bdaw Date: 2007-03-03 11:38:30 -0500 (Sat, 03 Mar 2007) New Revision: 6500 Added: docs/trunk/referenceGuide/en/modules/ldap.xml Log: ldap chapter in reference guide Added: docs/trunk/referenceGuide/en/modules/ldap.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- docs/trunk/referenceGuide/en/modules/ldap.xml (= rev 0) +++ docs/trunk/referenceGuide/en/modules/ldap.xml 2007-03-03 16:38:30 UTC (= rev 6500) @@ -0,0 +1,159 @@ + + + + Boleslaw + Dawidowicz + boleslaw.dawidowicz at jboss dot com + + + LDAP + This chapter describes how to setup LDAP support in JBoss Portal<= /para> + + How to enable LDAP usage in JBoss Portal + We'll describe here the simple steps that you'll need to enabl= e LDAP support in JBoss Portal. + For additional information you need to study more about configura= tion of identity and specific implementations of identity modules + There are two ways to achieve this: + + + In + jboss-porta.sar/META-INF/jboss-serv= ice.xml + in section: + + + + portal:service=3DHibernate + + java:/portal/IdentityServiceController + true + conf/identity/identity-config.xml + conf/identity/standardidentity-co= nfig.xml +]]> + + change + identity-config.xml + to + ldap_identity-config.xml + + + + Swap the names or content of files in + jboss-porta.sar/conf/identity/ident= ity-config.xml + and + jboss-porta.sar/conf/identity/ldap_= identity-config.xml + + + + + + After doing one of above changes you need to edit configuration f= ile that you choose to + use (identity-config.xml or ldap_identity-config.xml) and configu= re LDAP connection options in section: + + + LDAP + + + + + + +]]> + + You also need to specify options for your LDAP tree (described in= configuration documentation) like those: + + + common + + +]]> + + + Under PORTAL_SOURCES/identity/src/resourc= es/example/ you can find a sample ldif that + you can use to populate LDAP server and quickly start playing wit= h it. + + + + + Configuration of LDAP connection + + SSL + The setup is very similar to the one described in LdapLogin= Module wiki page + You need to modify your identity configuration file and add= "protocol" + + LDAP + + ... + + ... + +]]> + + Then you need to have LDAP server certificate imported into yo= ur keystore. You can use following command: + keytool -import -file ldapcert.der -keystore l= dap.truststore + + + Now you need to change the settings to use the alternative tru= ststore. That can be done in the properties-service.xml in deploy directory: + + javax.net.ssl.trustStore=3D../some/path/to/ldap.truststore + javax.net.ssl.trustStorePassword=3Dsomepw +]]> + + + + ExternalContext + Instead of configuring your own connection you can use JNDI= context federation mechanism in JBoss Application Server. Configuration of + ExternalContext is described in JBoss Applicatio= n Server documentation + When you have ExternalContext configured you can use it in = JBoss Portal by providing proper JNDI name in the configuration: + + LDAP + + + +]]> + When using "externalContextJndiName" you don't need to s= pecify any other option for this datasource + + + + + Place holder 2 + TODO: + + + Place holder 3 + TODO: + + + --===============8445738188563838147==--