changed: README.MD
updated: MDMLoginModule (ConnectorService lookup)
4 files changed
tree: ed8964ccafde7b90d7380c923e7411821cca5815
  1. org.eclipse.mdm.realm.login.glassfish/
  2. .gitignore
  3. README.md
README.md

available realms

1. Glassfish Login Realm (org.eclipse.mdm.realm.login.glassfish)

Before you can install and build the realm, you have to checkout and install: (gradlew install)

  • org.eclipse.mdm.api.base
  • org.eclipse.mdm.api.odsadapter
  • org.eclipse.mdm.nucleus (see also README.md)

The command ‘gradlew installRealm’ at org.eclipse.mdm.realms/org.eclipse.mdm.realm.login.glassfish creates the jar file for this login module.

The jar file will be generated at org.eclipse.mdm.realms/org.eclipse.mdm.realm.login.glassfish/build/libs/org.eclipse.mdm.realm.login.glassfish-1.0.0.jar

  1. Install MDM Login Realm plugin at Glassfish
  • copy the jar file org.eclipse.mdm.realm.login.glassfish-1.0.0.jar to GLASSFISH4_ROOT/glassfish/domains/domain1/lib

  • open the Glassfish login configuration file at GLASSFISH4_ROOT/glassfish/domains/domain1/config/login.conf

  • add MDM realm module entry to this config file

    MDMLoginRealm {
      org.eclipse.mdm.realm.login.glassfish.LoginRealmModule required;
    };    
    
  • start Glassfish and open administration website (e.g. localhost:4848)

  • open site: Configurations/server-config/Security/Realms

  • create new realm (“New” Button)

    Name: MDMLoginRealm, Class Name: org.eclipse.mdm.realm.login.glassfish.LoginRealm (choose a specific class name (with radio button))

    add Property: Name: jaas-context, Value: MDMLoginRealm

  • open site: Configurations/server-config/Virtual Servers

  • choose server and enable SSO (Value: Enabled)

  • save and restart the Glassfish application server