public interface LdapConnectionManagerConfig
LdapConnectionManager configuration.
This interface was introduced to retain forward compatibility of
<=2.3.0 config files, which configure a single JLDAPDirectoryProvider
bean. As of this writing, that class now implements this interface as a
mixin and makes itself available to the LdapConnectionManager
as a side-effect of JLDAPDirectoryProvider.init().
| Modifier and Type | Method and Description |
|---|---|
int |
getBatchSize() |
String |
getKeystoreLocation() |
String |
getKeystorePassword() |
String |
getLdapHost() |
String |
getLdapPassword() |
int |
getLdapPort() |
String |
getLdapUser() |
int |
getMaxObjectsToQueryFor()
Deprecated.
|
int |
getMaxResultSize() |
int |
getOperationTimeout() |
int |
getPoolMaxConns() |
com.novell.ldap.LDAPSocketFactory |
getSecureSocketFactory()
Assign a
LDAPSocketFactory appropriate for your
environment, e.g. |
com.novell.ldap.LDAPSocketFactory |
getSocketFactory()
The socket factory to be used when creating insecure connections.
|
boolean |
isAutoBind()
Access the LDAP auto-bind configuration
|
boolean |
isFollowReferrals()
Access LDAP referral following configuration
|
boolean |
isPooling()
Access the LDAP pooling configuration
|
boolean |
isSecureConnection()
If
true, connect to LDAP over a secure protocol. |
void |
setAutoBind(boolean autoBind)
Configure the LDAP auto-bind configuration
param autoBind if
true connection allocation
(LdapConnectionManager.getConnection()) will include a
bind attempt |
void |
setBatchSize(int batchSize) |
void |
setEnableAid(boolean enable) |
void |
setFollowReferrals(boolean followReferrals)
Configures LDAP referral following
|
void |
setKeystoreLocation(String keystoreLocation) |
void |
setKeystorePassword(String keystorePassword) |
void |
setLdapHost(String ldapHost) |
void |
setLdapPassword(String ldapPassword) |
void |
setLdapPort(int ldapPort) |
void |
setLdapUser(String ldapUser) |
void |
setMaxObjectsToQueryFor(int maxObjectsToQueryFor)
Deprecated.
|
void |
setMaxResultSize(int maxResultSize) |
void |
setOperationTimeout(int operationTimeout) |
void |
setPooling(boolean pooling)
Configure the LDAP connection pooling configuration
param pooling if
true connections will be maintained
in a connection pool. |
void |
setPoolMaxConns(int maxConns) |
void |
setSecureConnection(boolean secureConnection)
Set to
true if LDAP connections
should occur over a secure protocol. |
void |
setSecureSocketFactory(com.novell.ldap.LDAPSocketFactory secureSocketFactory) |
void |
setSocketFactory(com.novell.ldap.LDAPSocketFactory socketFactory) |
boolean isSecureConnection()
true, connect to LDAP over a secure protocol.void setSecureConnection(boolean secureConnection)
true if LDAP connections
should occur over a secure protocol.String getKeystoreLocation()
void setKeystoreLocation(String keystoreLocation)
keystoreLocation - the location of an SSL keystoreString getKeystorePassword()
void setKeystorePassword(String keystorePassword)
keystoreLocation - SSL keystore passwordcom.novell.ldap.LDAPSocketFactory getSecureSocketFactory()
LDAPSocketFactory appropriate for your
environment, e.g. LDAPJSSESecureSocketFactory
or LDAPJSSEStartTLSFactory. This
factory will only be used if isSecureConnection()
returns truevoid setSecureSocketFactory(com.novell.ldap.LDAPSocketFactory secureSocketFactory)
the - current secureSocketFactory. Should not return null.com.novell.ldap.LDAPSocketFactory getSocketFactory()
isSecureConnection() returns
false. Can return null if no socket factory
needs to be used.void setSocketFactory(com.novell.ldap.LDAPSocketFactory socketFactory)
socketFactory - the socketFactory to use.int getOperationTimeout()
void setOperationTimeout(int operationTimeout)
operationTimeout - the directory operation timeout to set.String getLdapHost()
void setLdapHost(String ldapHost)
ldapHost - The LDAP host address or name.int getLdapPort()
void setLdapPort(int ldapPort)
ldapPort - The LDAP connection port to set.String getLdapUser()
void setLdapUser(String ldapUser)
ldapUser - The user to bind to LDAP as, typically a manager acct,
leave blank for anonymous.String getLdapPassword()
getLdapUser()void setLdapPassword(String ldapPassword)
ldapPassword - the LDAP password corresponding to the
current default bind-as user.boolean isFollowReferrals()
true, directory accesses will
follow referralsvoid setFollowReferrals(boolean followReferrals)
followReferrals - if true, directory
accesses will follow referralsboolean isAutoBind()
true connection allocation
(LdapConnectionManager.getConnection()) will include a
bind attemptvoid setAutoBind(boolean autoBind)
true connection allocation
(LdapConnectionManager.getConnection()) will include a
bind attemptboolean isPooling()
true connections will be maintained in a
connection pool.void setPooling(boolean pooling)
true connections will be maintained
in a connection pool. This automatically sets autoBind to true as
wellint getPoolMaxConns()
void setPoolMaxConns(int maxConns)
maxConns - The maximum number of physical connections in the poolint getMaxObjectsToQueryFor()
getBatchSize()void setMaxObjectsToQueryFor(int maxObjectsToQueryFor)
setBatchSize(int)maxObjectsToQueryFor - The maximum number objects to lookup in one query.int getBatchSize()
void setBatchSize(int batchSize)
batchSize - The maximum number objects to lookup in one query.int getMaxResultSize()
void setMaxResultSize(int maxResultSize)
maxResultSize - The maximum number of results to ever get back from LDAP.void setEnableAid(boolean enable)
enable - If true then perform searches for users by Authentication ID.Copyright © 2003–2022 Sakai Project. All rights reserved.