[Users] Petals web console: looking for 2.0.6 release

pguillot pguillot at e-citiz.com
Tue Sep 29 18:12:45 CEST 2015


Hi Victor,

Since I don't know the default passwords, I didn't tried them. Instead, I
tried to change the passwords, using this command:
 java org.ow2.petals.tools.webconsole.services.security.util.CipherHelper
"petals" 
It produced a hashed password, which I put in security.xml (located in
petals-webconsole-ui-2.1-SNAPSHOT\WEB-INF\classes\security.xml):
<ns:EntityPrincipals
xmlns:ns="xmlmap://org.ow2.petals.tools.webconsole.services.security.auth/unversioned"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="xmlmap://org.ow2.petals.tools.webconsole.services.security.auth/unversioned
security.xsd ">
  <ns:EntityPrincipal name="administrator"
password="70bc33a8dd0f5fca418ddd833b908e2ed990024b">
    <roles>administrator</roles>
  </ns:EntityPrincipal>
  <ns:EntityPrincipal name="operator"
password="70bc33a8dd0f5fca418ddd833b908e2ed990024b">
    <roles>operator</roles>
  </ns:EntityPrincipal>
  <ns:EntityPrincipal name="viewer"
password="70bc33a8dd0f5fca418ddd833b908e2ed990024b">
    <roles>viewer</roles>
  </ns:EntityPrincipal>
</ns:EntityPrincipals>

When I try to login using e.g. "administrator" / "petals", I get an
exception stating that jaas.config file cannot be found:
 java.io.IOException: Impossible de trouver une configuration de connexion
com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:250)
com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:91)

"Impossible de trouver une configuration de connexion" => "unable to find a
connection configuration"

Here my configuration:

jaas.config:
=======
WebconsoleJAAS {

  
org.ow2.petals.tools.webconsole.services.security.auth.EntityJAASLoginModule
required debug="true";

};
=======

webapps\petals-webconsole-ui-2.1-SNAPSHOT\WEB-INF\classes\security.xml:
=======
<?xml version="1.0" encoding="UTF-8"?>

<Context docBase="petals-webconsole-ui" path="/petals-webconsole-ui"
reloadable="false"
source="org.eclipse.jst.j2ee.server:petals-webconsole-ui">
	<Realm className="org.apache.catalina.realm.JAASRealm"
appName="WebconsoleJAAS"
userClassNames="org.ow2.petals.tools.webconsole.services.security.auth.EntityPrincipal"
roleClassNames="org.ow2.petals.tools.webconsole.services.security.auth.EntityRolePrincipal"/>
</Context>
=======

catalina.bat (apache-tomcat-6.0.32):
=======
set
AUTH_CONFIG=-Djava.security.auth.login.config="C:\xxxxxx\petals\apache-tomcat-6.0.32\conf\jaas.config"
SET JAVA_OPT=%JAVA_OPT%  %AUTH_CONFIG%
=======

Here is the command executed by catalina.bat:
start "Tomcat" "C:\_dev_\tmp\jdk1.6.0_24\bin\java" 
-Djava.util.logging.config.file="
C:\xxxxxx\petals\apache-tomcat-6.0.32\conf\logging.properties"
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManage
r   -Djava.endorsed.dirs="C:\xxxxxx\petals\apache-tomcat-6.0.32\endorsed"
-classpath "C:\xxxxxx\petals\apache-tomcat-6.0.32\
bin\bootstrap.jar" -Dcatalina.base="C:\xxxxxx\petals\apache-tomcat-6.0.32"
-Dcatalina.home="C:\xxxxxx\petals\apache-tomcat-6
.0.32" -Djava.io.tmpdir="C:\xxxxxx\petals\apache-tomcat-6.0.32\temp"
org.apache.catalina.startup.Bootstrap  start

Any idea?
Thanks in advance for any suggestion you may have.
Regards,
Patrick




--
View this message in context: http://forum.petalslink.com/Petals-web-console-looking-for-2-0-6-release-tp4025712p4025719.html
Sent from the Users (get help, provide help) mailing list archive at Nabble.com.


More information about the Users mailing list