Issue Details (XML | Word | Printable)

Key: MGP-14
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Dave Whitla
Reporter: David Matějček
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
maven-glassfish-plugin

Unwanted setting of the default realm

Created: 27/Mar/09 12:01 AM   Updated: 27/Mar/09 12:03 AM
Return to search
Component/s: None
Affects Version/s: 2.2
Fix Version/s: None


 Description  « Hide
I want to create-domain

In pom.xml I have this:
<configuration>
.....
                      <property>
                        <name>server.security-service.default-realm</name>
                        <value>file</value>
                      </property>
....
                    <auth>
                      <realm>
                        <name>myrealm</name>
                        <className>com.sun.enterprise.security.auth.realm.file.FileRealm</className>
                        <properties>
                          <property>
                            <name>jaas-context</name>
                            <value>fileRealm</value>
                          </property>
                          <property>
                            <name>file</name>
                            <value>${app.directory}/config/app-realm-file</value>
                          </property>
                      </properties>
                      </realm>
                    </auth>
....


The result is this:

[INFO] set --port 4849 --passwordfile /aspasswd --host localhost --interactive=false --echo=true --user admin server.security-service.default-realm=file
[INFO] server.security-service.default-realm = file
[INFO] create-auth-realm --port 4849 --passwordfile /aspasswd --host localhost --interactive=false --classname com.sun.enterprise.security.auth.realm.file.FileRealm --target server --property jaas-context=fileRealm:file=/app/config/app-realm-file --echo=true --user admin app-realm
[INFO] set --port 4849 --passwordfile /aspasswd --host localhost --interactive=false --echo=true --user admin server.security-service.default-realm=app-realm
[INFO] server.security-service.default-realm = app-realm

But I don't want to set the default realm to the app-realm :(


David Matějček added a comment - 27/Mar/09 12:03 AM
Sorry, there should be this:
<name>app-realm</name>