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.PreauthorizationA 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 Summary
Fields Modifier and Type Field Description Stringbasednstatic StringDEFAULT_SSL_LDAP_SOCKET_FACTORYstatic StringFIXED_ADMIN_REALM_NAMEField denoting the name of the realm used for administration.static StringLDAP_SOCKET_FACTORYStringldapGroupNamestatic StringLDAPS_URLstatic StringORIG_ADMIN_REALM_NAMEStringurl
-
Constructor Summary
Constructors Constructor Description LDAPAdminAccessConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(org.glassfish.api.admin.AdminCommandContext context)booleanpreAuthorization(org.glassfish.api.admin.AdminCommandContext context)
-
-
-
Field Detail
-
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:
- Constant Field Values
-
DEFAULT_SSL_LDAP_SOCKET_FACTORY
public static final String DEFAULT_SSL_LDAP_SOCKET_FACTORY
- See Also:
- Constant Field Values
-
LDAPS_URL
public static final String LDAPS_URL
- See Also:
- Constant Field Values
-
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
-
ORIG_ADMIN_REALM_NAME
public static final String ORIG_ADMIN_REALM_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
preAuthorization
public boolean preAuthorization(org.glassfish.api.admin.AdminCommandContext context)
- Specified by:
preAuthorizationin interfaceorg.glassfish.api.admin.AdminCommandSecurity.Preauthorization
-
execute
public void execute(org.glassfish.api.admin.AdminCommandContext context)
- Specified by:
executein interfaceorg.glassfish.api.admin.AdminCommand
-
-