Package org.sakaiproject.unboundid
Interface LdapConnectionManagerConfig
-
- All Known Implementing Classes:
UnboundidDirectoryProvider
public interface LdapConnectionManagerConfigBean interface for collectingLdapConnectionManagerconfiguration.This interface was introduced to retain forward compatibility of <=2.3.0 config files, which configure a single
UnboundidDirectoryProviderbean. As of this writing, that class now implements this interface as a mixin and makes itself available to theLdapConnectionManageras a side-effect ofUnboundidDirectoryProvider.init().- Author:
- Dan McCallum, Unicon Inc
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetBatchSize()String[]getLdapHost()StringgetLdapPassword()int[]getLdapPort()StringgetLdapUser()intgetMaxResultSize()intgetOperationTimeout()intgetPoolMaxConns()booleanisAutoBind()Access the LDAP auto-bind configurationbooleanisFollowReferrals()Access LDAP referral following configurationbooleanisSecureConnection()Iftrue, connect to LDAP over a secure protocol.voidsetAutoBind(boolean autoBind)Configure the LDAP auto-bind configuration param autoBind iftrueconnection allocation (LdapConnectionManager#getConnection()) will include a bind attemptvoidsetBatchSize(int batchSize)voidsetEnableAid(boolean enable)voidsetFollowReferrals(boolean followReferrals)Configures LDAP referral followingvoidsetLdapHost(String[] ldapHost)voidsetLdapPassword(String ldapPassword)voidsetLdapPort(int[] ldapPort)voidsetLdapUser(String ldapUser)voidsetMaxResultSize(int maxResultSize)voidsetOperationTimeout(int operationTimeout)voidsetPoolMaxConns(int maxConns)voidsetSecureConnection(boolean secureConnection)Set totrueif LDAP connections should occur over a secure protocol.
-
-
-
Method Detail
-
isSecureConnection
boolean isSecureConnection()
Iftrue, connect to LDAP over a secure protocol.
-
setSecureConnection
void setSecureConnection(boolean secureConnection)
Set totrueif LDAP connections should occur over a secure protocol.
-
getOperationTimeout
int getOperationTimeout()
- Returns:
- the directory operation timeout
-
setOperationTimeout
void setOperationTimeout(int operationTimeout)
- Parameters:
operationTimeout- the directory operation timeout to set.
-
getLdapHost
String[] getLdapHost()
- Returns:
- the LDAP host address or name.
-
setLdapHost
void setLdapHost(String[] ldapHost)
- Parameters:
ldapHost- The LDAP host address or name.
-
getLdapPort
int[] getLdapPort()
- Returns:
- the LDAP connection port.
-
setLdapPort
void setLdapPort(int[] ldapPort)
- Parameters:
ldapPort- The LDAP connection port to set.
-
getLdapUser
String getLdapUser()
- Returns:
- the LDAP user to bind as, typically a manager acct.
-
setLdapUser
void setLdapUser(String ldapUser)
- Parameters:
ldapUser- The user to bind to LDAP as, typically a manager acct, leave blank for anonymous.
-
getLdapPassword
String getLdapPassword()
- Returns:
- Returns the LDAP password corresponding to the current default bind-as user.
- See Also:
getLdapUser()
-
setLdapPassword
void setLdapPassword(String ldapPassword)
- Parameters:
ldapPassword- the LDAP password corresponding to the current default bind-as user.
-
isFollowReferrals
boolean isFollowReferrals()
Access LDAP referral following configuration- Returns:
- if
true, directory accesses will follow referrals
-
setFollowReferrals
void setFollowReferrals(boolean followReferrals)
Configures LDAP referral following- Parameters:
followReferrals- iftrue, directory accesses will follow referrals
-
isAutoBind
boolean isAutoBind()
Access the LDAP auto-bind configuration- Returns:
- if
trueconnection allocation (LdapConnectionManager#getConnection()) will include a bind attempt
-
setAutoBind
void setAutoBind(boolean autoBind)
Configure the LDAP auto-bind configuration param autoBind iftrueconnection allocation (LdapConnectionManager#getConnection()) will include a bind attempt
-
getPoolMaxConns
int getPoolMaxConns()
- Returns:
- The maximum number of physical connections in the pool
-
setPoolMaxConns
void setPoolMaxConns(int maxConns)
- Parameters:
maxConns- The maximum number of physical connections in the pool
-
getBatchSize
int getBatchSize()
- Returns:
- The maximum number of objects to lookup in one query.
-
setBatchSize
void setBatchSize(int batchSize)
- Parameters:
batchSize- The maximum number objects to lookup in one query.
-
getMaxResultSize
int getMaxResultSize()
- Returns:
- The maximum number of results to ever get back from LDAP.
-
setMaxResultSize
void setMaxResultSize(int maxResultSize)
- Parameters:
maxResultSize- The maximum number of results to ever get back from LDAP.
-
setEnableAid
void setEnableAid(boolean enable)
- Parameters:
enable- Iftruethen perform searches for users by Authentication ID.
-
-