Class ActiveDirectoryUserSource
java.lang.Object
com.inductiveautomation.ignition.gateway.user.UserSourceProfileKernelWrapper
com.inductiveautomation.ignition.gateway.user.AbstractUserSourceProfile
com.inductiveautomation.ignition.gateway.authentication.impl.ActiveDirectoryUserSource
- All Implemented Interfaces:
- SSOCompatibleADUserSource,- UserSourceProfile,- UserSourceProfileKernel
public class ActiveDirectoryUserSource
extends AbstractUserSourceProfile
implements SSOCompatibleADUserSource
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringDefault group search filter for finding all groupsstatic final StringDefault group search filter for finding all usersstatic final StringDefault user search filter for looking for a single userFields inherited from interface com.inductiveautomation.ignition.gateway.user.UserSourceProfilePWD_EXPIRATION_BYPASS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionauthenticate(AuthChallenge challenge) Called to both verify authentication for a given username/password pair, and to find the security roles for that user.authenticateAD(AuthChallenge challenge) Callback to the standard, non-SSO version of this user source's auth logicfindSSOUser(String uname) Used by the SSO helper in order to search for a user with a given username.getRoles()Fetch aUserwith the given user name.getUsers()Retrieve all users from this profile.static voidvoidsetAllowAnon(boolean anon) voidsetBadgeAttribute(String badgeAttribute) voidsetBadgeSearchFilter(String badgeSearchFilter) voidsetEmailAttribute(String emailAttribute) voidsetFullNameAttribute(String fullNameAttribute) voidsetLdapHost(String ldapHost) voidsetLdapPort(String ldapPort) voidsetPageSize(int size) voidsetPhoneAttribute(String phoneAttribute) voidsetProfilePassword(String profilePassword) voidsetProfileUsername(String profileUsername) voidsetReadTimeout(Long readTimeout) voidsetReferral(LDAPHelper.ReferralType referral) voidsetRoleNameAttribute(String roleNameAttribute) voidsetRoleSearchBase(String roleSearchBase) voidsetRoleSearchFilter(String roleSearchFilter) voidsetSaslConfig(SASLConfig saslConfig) voidsetSecondaryLdapHost(String secondaryLdapHost) voidsetSecondaryLdapPort(String secondaryLdapPort) voidsetSecurityAuthentication(LDAPHelper.AuthType securityAuthentication) voidsetSecurityProtocol(LDAPHelper.ProtocolType securityProtocol) voidsetSmsAttribute(String smsAttribute) voidsetSSODomain(String ssoDomain) voidsetSSOEnabled(boolean enabled) voidsetUsePrefixAndSuffixForGatewayUser(boolean usePrefixAndSuffixForGatewayUser) voidsetUserListFilter(String userListFilter) voidsetUserNameAttribute(String usernameAttribute) voidsetUsernamePrefix(String usernamePrefix) voidsetUsernameSuffix(String usernameSuffix) voidsetUserRoleAttribute(String userRoleAttribute) voidsetUserSearchBase(String userSearchBase) voidsetUserSearchFilter(String userSearchFilter) voidsetUseSSL(boolean useSsl) voidstartup(UserSourceManager manager) Called when the user source is created before it is used.Methods inherited from class com.inductiveautomation.ignition.gateway.user.AbstractUserSourceProfileaddRole, addUser, alterPassword, alterUser, getEditFlags, getName, getRoles, getUser, getUsers, removeRole, removeUser, renameRoleMethods inherited from class com.inductiveautomation.ignition.gateway.user.UserSourceProfileKernelWrappergetCacheValidationTimeout, getContext, getManager, getProfileId, getProfileName, isLockedOut, notifyFailedAttempt, shutdownMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.gateway.user.UserSourceProfilegetCacheValidationTimeout, getProfileId, shutdown, validatePassword
- 
Field Details- 
DEFAULT_USER_SEARCH_FILTERDefault user search filter for looking for a single user- See Also:
 
- 
DEFAULT_USER_LIST_FILTERDefault group search filter for finding all users- See Also:
 
- 
DEFAULT_ROLE_LIST_FILTERDefault group search filter for finding all groups- See Also:
 
 
- 
- 
Constructor Details- 
ActiveDirectoryUserSource
 
- 
- 
Method Details- 
startupDescription copied from interface:UserSourceProfileKernelCalled when the user source is created before it is used.- Specified by:
- startupin interface- UserSourceProfile
- Specified by:
- startupin interface- UserSourceProfileKernel
- Overrides:
- startupin class- UserSourceProfileKernelWrapper
 
- 
getUsersDescription copied from interface:UserSourceProfileRetrieve all users from this profile. This can execute slowly (block) if need be. It will be called periodically by the manager and the results will be cached. Users from failover sources will be returned if hard failover is configured and triggered.- Specified by:
- getUsersin interface- UserSourceProfile
- Specified by:
- getUsersin class- AbstractUserSourceProfile
- Throws:
- Exception
 
- 
getUserDescription copied from interface:UserSourceProfileFetch aUserwith the given user name. If more than one user exists with the given user name, the first user returned from the underlying data source is returned. Failover sources will be queried if hard failover is configured and the primary sources are unable to fetch the user due to an error. Failover sources will also be queried if soft failover is configured and the user is not found in the primary sources.- Specified by:
- getUserin interface- UserSourceProfile
- Overrides:
- getUserin class- AbstractUserSourceProfile
- Parameters:
- userName- the user name of the- Userto fetch
- Returns:
- an OptionalUserwith the given user name. the user may be from a failover user source (checkUser.getProfileName()to confirm)
- Throws:
- Exception- if there is an unexpected problem fetching the user with the given user name
- See Also:
 
- 
authenticateDescription copied from interface:UserSourceProfileCalled to both verify authentication for a given username/password pair, and to find the security roles for that user.- Specified by:
- authenticatein interface- UserSourceProfile
- Returns:
- An AuthenticatedUser that contains the user's roles if authentication succeeded, or null if it did not.
- Throws:
- PasswordExpiredException- if the user's password has expired and must be reset
- Exception- if there was an unexpected problem encountered during authentication
 
- 
authenticateADDescription copied from interface:SSOCompatibleADUserSourceCallback to the standard, non-SSO version of this user source's auth logic- Specified by:
- authenticateADin interface- SSOCompatibleADUserSource
- Throws:
- Exception
 
- 
findSSOUserDescription copied from interface:SSOCompatibleADUserSourceUsed by the SSO helper in order to search for a user with a given username. Return null if no user with this username is found.- Specified by:
- findSSOUserin interface- SSOCompatibleADUserSource
- Throws:
- Exception
 
- 
getRoles- Specified by:
- getRolesin interface- UserSourceProfile
- Specified by:
- getRolesin class- AbstractUserSourceProfile
- Returns:
- a collection of all possible role names for this profile. May be empty. Roles from failover sources will be returned if hard failover is configured and triggered.
- Throws:
- Exception
 
- 
main
- 
setLdapHost
- 
setLdapPort
- 
setProfilePassword
- 
setProfileUsername
- 
setRoleSearchBase
- 
setRoleSearchFilter
- 
setSecondaryLdapHost
- 
setSecondaryLdapPort
- 
setUserNameAttribute
- 
setUsernamePrefix
- 
setUsernameSuffix
- 
setUsePrefixAndSuffixForGatewayUserpublic void setUsePrefixAndSuffixForGatewayUser(boolean usePrefixAndSuffixForGatewayUser) 
- 
setUseSSLpublic void setUseSSL(boolean useSsl) 
- 
setAllowAnonpublic void setAllowAnon(boolean anon) 
- 
setSecurityAuthentication
- 
setSecurityProtocol
- 
setReadTimeout
- 
setUserSearchBase
- 
setUserSearchFilter
- 
setUserListFilter
- 
setRoleNameAttribute
- 
setFullNameAttribute
- 
setBadgeAttribute
- 
setBadgeSearchFilter
- 
setUserRoleAttribute
- 
setEmailAttribute
- 
setPhoneAttribute
- 
setSmsAttribute
- 
setPageSizepublic void setPageSize(int size) 
- 
setSSOEnabledpublic void setSSOEnabled(boolean enabled) 
- 
setSSODomain
- 
setSaslConfig
- 
setReferral
 
-