Class LDAPAdminAccessConfigurator
- java.lang.Object
-
- org.glassfish.security.services.commands.LDAPAdminAccessConfigurator
-
- All Implemented Interfaces:
AdminCommand
,AdminCommandSecurity.Preauthorization
@Service(name="configure-ldap-for-admin") @PerLookup @ExecuteOn({DAS,INSTANCE}) @TargetType({DAS,STANDALONE_INSTANCE,CLUSTER,CONFIG}) public class LDAPAdminAccessConfigurator extends Object implements AdminCommand, 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:
- केदार ([email protected])
-
-
Field Summary
Fields Modifier and Type Field Description String
basedn
static String
DEFAULT_SSL_LDAP_SOCKET_FACTORY
static String
FIXED_ADMIN_REALM_NAME
Field denoting the name of the realm used for administration.static String
LDAP_SOCKET_FACTORY
String
ldapGroupName
static String
LDAPS_URL
static String
ORIG_ADMIN_REALM_NAME
String
url
-
Constructor Summary
Constructors Constructor Description LDAPAdminAccessConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(AdminCommandContext context)
Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter valuesboolean
preAuthorization(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(AdminCommandContext context)
- Specified by:
preAuthorization
in interfaceAdminCommandSecurity.Preauthorization
-
execute
public void execute(AdminCommandContext context)
Description copied from interface:AdminCommand
Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter values- Specified by:
execute
in interfaceAdminCommand
- Parameters:
context
- information
-
-