[jboss-user] [JBoss Portal] - Re: login portlet and CMS admin

noicangi do-not-reply at jboss.com
Tue Sep 26 01:44:07 EDT 2006


Sohil- 

ok, correct me if i'm wrong please:


!!!! this is the original DB file (example)

  | <?xml version="1.0" encoding="UTF-8"?>
  | <datasources>
  |   <local-tx-datasource>
  |     <jndi-name>PortalDS</jndi-name>
  |     <connection-url>jdbc:mysql://localhost:3306/jbossportal?useServerPrepStmts=false</connection-url>
  |     <driver-class>org.gjt.mm.mysql.Driver</driver-class>
  |     <user-name>root</user-name>
  |     <password>admin</password>
  |   </local-tx-datasource>
  | 
  | ------here i add my other DB config -----
  | 
  | <datasources>
  |   <local-tx-datasource>
  |     <jndi-name>PortalDS</jndi-name>
  |     <connection-url>jdbc:mysql://localhost:3306/nicolas?useServerPrepStmts=false</connection-url>
  |     <driver-class>org.gjt.mm.mysql.Driver</driver-class>
  |     <user-name>nicolas</user-name>
  |     <password>nicolas</password>
  |   </local-tx-datasource>
  | </datasources>

here i add all DB i want to connect

now the login-config.xml:


  |  <application-policy name="portal">
  |       <authentication>
  |          <login-module code="org.jboss.portal.core.security.jaas.ModelLoginModule" flag="required">
  |             <module-option name="unauthenticatedIdentity">guest</module-option>
  |             <module-option name="hashAlgorithm">MD5</module-option>
  |             <module-option name="hashEncoding">HEX</module-option>
  |             <module-option name="userModuleJNDIName">java:/portal/UserModule</module-option>
  |             <module-option name="additionalRole">Authenticated</module-option>
  |             <module-option name="password-stacking">useFirstPass</module-option>
  |          </login-module>
  |       </authentication>
  |    </application-policy>
  | 

now i have to change java:/portal/UserModule by java:/myportal  , thats all?

and every time i create a portal and i want a unique database for this portal i do this?


about the CMS repository i tried to change the cms by the portal instances without result, i download the portal source to modify cms managaer portlet and force it to change root folder by an xml file but where its the code? i found many java files.

thanks for your time and for helping this noob

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974103#3974103

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974103



More information about the jboss-user mailing list