Class 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:
    केदार (km@dev.java.net)
    • Field Detail

      • basedn

        public volatile String basedn
      • url

        public volatile String url
      • ldapGroupName

        public volatile String ldapGroupName
      • 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:
        Constant Field Values
    • Constructor Detail

      • LDAPAdminAccessConfigurator

        public LDAPAdminAccessConfigurator()
    • Method Detail

      • 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