@ConnectionManagement(friendlyName="Configuration", configElementName="config") public class LDAPCacheConfig extends AbstractConfig
authentication, extendedConfiguration, referral, schemaEnabled, type, url
Constructor and Description |
---|
LDAPCacheConfig() |
Modifier and Type | Method and Description |
---|---|
void |
connect(String authDn,
String authPassword,
String authentication)
Establish the connection to the LDAP server and use connection management to handle different users.
|
int |
getInitialPoolSize() |
int |
getMaxPoolSize() |
long |
getPoolTimeout() |
void |
releaseConnection(LDAPConnection connection) |
void |
setInitialPoolSize(int initialPoolSize) |
void |
setMaxPoolSize(int maxPoolSize) |
void |
setPoolTimeout(long poolTimeout) |
connectionId, createPooledConnections, disconnect, getConnection, getExtendedConfiguration, getLdapConnectionPool, getMetadataBuilder, getReferral, getType, getUrl, isConnected, isSchemaEnabled, setExtendedConfiguration, setMetadataBuilder, setReferral, setSchemaEnabled, setType, setUrl
@Connect(strategy=SINGLE_INSTANCE) @TestConnectivity public void connect(@ConnectionKey@FriendlyName(value="Principal DN") String authDn, @Optional@FriendlyName(value="Password")@Password String authPassword, @Optional String authentication) throws org.mule.api.ConnectionException
authDn
- The DN (distinguished name) of the user (for example: uid=user,ou=people,dc=mulesoft,dc=org). If using Microsoft Active Directory, instead of the DN, you can
provide the user@domain (for example: user@mulesoft.org). DevKit doesn't support null values for the @Connect parameters. In order to have an anonymous bind, the authentication parameter should be "none" and a default value
should be provided as value for "authDn".authPassword
- The password of the userauthentication
- Specifies the authentication mechanism to use. For the Sun LDAP service provider, this can be one of the following strings:
org.mule.api.ConnectionException
- Holding one of the possible values in ConnectionExceptionCode
.public int getInitialPoolSize()
public void setInitialPoolSize(int initialPoolSize)
public int getMaxPoolSize()
public void setMaxPoolSize(int maxPoolSize)
public long getPoolTimeout()
public void setPoolTimeout(long poolTimeout)
public void releaseConnection(LDAPConnection connection)
releaseConnection
in class AbstractConfig
Copyright © 2010–2018. All rights reserved.