Class LDAPAdminAccessConfigurator

java.lang.Object
org.glassfish.security.services.commands.LDAPAdminAccessConfigurator
All Implemented Interfaces:
org.glassfish.api.admin.AdminCommand, org.glassfish.api.admin.AdminCommandSecurity.Preauthorization

@Service(name="configure-ldap-for-admin") @PerLookup @ExecuteOn({DAS,INSTANCE}) @TargetType({DAS,STANDALONE_INSTANCE,CLUSTER,CONFIG}) public class LDAPAdminAccessConfigurator extends Object implements org.glassfish.api.admin.AdminCommand, org.glassfish.api.admin.AdminCommandSecurity.Preauthorization
A convenience command to configure LDAP for administration. There are several properties and attributes that user needs to remember and that's rather user unfriendly. That's why this command is being developed.
Since:
GlassFish V3
Author:
केदाinvalid input: '&#2352' ([email protected])
  • Field Details

    • basedn

      public volatile String basedn
    • url

      public volatile String url
    • ldapGroupName

      public volatile String ldapGroupName
    • LDAP_SOCKET_FACTORY

      public static final String LDAP_SOCKET_FACTORY
      See Also:
    • DEFAULT_SSL_LDAP_SOCKET_FACTORY

      public static final String DEFAULT_SSL_LDAP_SOCKET_FACTORY
      See Also:
    • LDAPS_URL

      public static final String LDAPS_URL
      See Also:
    • FIXED_ADMIN_REALM_NAME

      public static final String FIXED_ADMIN_REALM_NAME
      Field denoting the name of the realm used for administration. This is fixed in entire of v3. Note that the same name is used in admin GUI's web.xml and sun-web.xml. The name of the realm is the key, the underlying backend (LDAP, File, Database) can change.
      See Also:
    • ORIG_ADMIN_REALM_NAME

      public static final String ORIG_ADMIN_REALM_NAME
      See Also:
  • Constructor Details

    • LDAPAdminAccessConfigurator

      public LDAPAdminAccessConfigurator()
  • Method Details

    • preAuthorization

      public boolean preAuthorization(org.glassfish.api.admin.AdminCommandContext context)
      Specified by:
      preAuthorization in interface org.glassfish.api.admin.AdminCommandSecurity.Preauthorization
    • execute

      public void execute(org.glassfish.api.admin.AdminCommandContext context)
      Specified by:
      execute in interface org.glassfish.api.admin.AdminCommand