Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3fb46a5e
authored
Apr 17, 2010
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a typo in autentikaation asennus and removed extra group definitions
1 parent
da6108d3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
8 deletions
code/Autentikaation asennus glassfishiin.
code/LanBortalAuthModule/src/fi/insomnia/bortal/BortalRealm.java
code/LanBortalBeans/ejbModule/META-INF/sun-ejb-jar.xml
code/LanBortalWeb/WebContent/WEB-INF/web.xml
code/Autentikaation asennus glassfishiin.
0 → 100644
View file @
3fb46a5
bortal realmin lisääminen glassfishiin.
1. Lisää code/LanBortalAuthModule.jar tiedosto hakemistoon glassfish/glassfish/lib/
2. lisää tiedostoon glassfish/glassfish/domains/login.conf tiedostoon:
bortalRealm {
fi.insomnia.bortal.BortalLoginModule required;
};
3. suorita seuraava komento hakemistossa glassfish/glassfish/bin/
./asadmin create-auth-realm --classname fi.insomnia.bortal.BortalRealm --property jaas-context=bortalRealm omniarealm
code/LanBortalAuthModule/src/fi/insomnia/bortal/BortalRealm.java
View file @
3fb46a5
...
@@ -103,7 +103,7 @@ public class BortalRealm extends AppservRealm {
...
@@ -103,7 +103,7 @@ public class BortalRealm extends AppservRealm {
}
}
private
static
void
log
(
String
s
)
{
private
static
void
log
(
String
s
)
{
System
.
out
.
println
((
new
StringBuilder
()).
append
(
"
Sample
Realm::"
).
System
.
out
.
println
((
new
StringBuilder
()).
append
(
"
Bortal
Realm::"
).
append
(
s
).
toString
());
append
(
s
).
toString
());
}
}
...
...
code/LanBortalBeans/ejbModule/META-INF/sun-ejb-jar.xml
View file @
3fb46a5
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 EJB 3.0//EN" "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-0.dtd">
<!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 EJB 3.0//EN" "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-0.dtd">
<sun-ejb-jar>
<sun-ejb-jar>
<security-role-mapping>
<role-name>
admin
</role-name>
<group-name>
admin
</group-name>
</security-role-mapping>
<enterprise-beans
/>
<enterprise-beans
/>
</sun-ejb-jar>
</sun-ejb-jar>
code/LanBortalWeb/WebContent/WEB-INF/web.xml
View file @
3fb46a5
...
@@ -33,10 +33,10 @@
...
@@ -33,10 +33,10 @@
<login-config>
<login-config>
<auth-method>
FORM
</auth-method>
<auth-method>
FORM
</auth-method>
<realm-name>
testirealmi
</realm-name>
<realm-name>
omniarealm
</realm-name>
<form-login-config>
<form-login-config>
<form-login-page>
/
generic
/login.jsf
</form-login-page>
<form-login-page>
/
auth
/login.jsf
</form-login-page>
<form-error-page>
/
generic
/loginError.jsf
</form-error-page>
<form-error-page>
/
auth
/loginError.jsf
</form-error-page>
</form-login-config>
</form-login-config>
</login-config>
</login-config>
<security-role>
<security-role>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment