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 Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Default group search filter for finding all groupsstatic final String
Default group search filter for finding all usersstatic final String
Default user search filter for looking for a single userFields inherited from interface com.inductiveautomation.ignition.gateway.user.UserSourceProfile
PWD_EXPIRATION_BYPASS
-
Constructor Summary
Constructors -
Method Summary
Modifier 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 aUser
with the given user name.getUsers()
Retrieve all users from this profile.static void
void
setAllowAnon
(boolean anon) void
setBadgeAttribute
(String badgeAttribute) void
setBadgeSearchFilter
(String badgeSearchFilter) void
setEmailAttribute
(String emailAttribute) void
setFullNameAttribute
(String fullNameAttribute) void
setLdapHost
(String ldapHost) void
setLdapPort
(String ldapPort) void
setPageSize
(int size) void
setPhoneAttribute
(String phoneAttribute) void
setProfilePassword
(String profilePassword) void
setProfileUsername
(String profileUsername) void
setReadTimeout
(Long readTimeout) void
setReferral
(LDAPHelper.ReferralType referral) void
setRoleNameAttribute
(String roleNameAttribute) void
setRoleSearchBase
(String roleSearchBase) void
setRoleSearchFilter
(String roleSearchFilter) void
setSaslConfig
(SASLConfig saslConfig) void
setSecondaryLdapHost
(String secondaryLdapHost) void
setSecondaryLdapPort
(String secondaryLdapPort) void
setSecurityAuthentication
(LDAPHelper.AuthType securityAuthentication) void
setSecurityProtocol
(LDAPHelper.ProtocolType securityProtocol) void
setSmsAttribute
(String smsAttribute) void
setSSODomain
(String ssoDomain) void
setSSOEnabled
(boolean enabled) void
setUsePrefixAndSuffixForGatewayUser
(boolean usePrefixAndSuffixForGatewayUser) void
setUserListFilter
(String userListFilter) void
setUserNameAttribute
(String usernameAttribute) void
setUsernamePrefix
(String usernamePrefix) void
setUsernameSuffix
(String usernameSuffix) void
setUserRoleAttribute
(String userRoleAttribute) void
setUserSearchBase
(String userSearchBase) void
setUserSearchFilter
(String userSearchFilter) void
setUseSSL
(boolean useSsl) void
startup
(UserSourceManager manager) Called when the user source is created before it is used.Methods inherited from class com.inductiveautomation.ignition.gateway.user.AbstractUserSourceProfile
addRole, addUser, alterPassword, alterUser, getEditFlags, getName, getRoles, getUser, getUsers, removeRole, removeUser, renameRole
Methods inherited from class com.inductiveautomation.ignition.gateway.user.UserSourceProfileKernelWrapper
getCacheValidationTimeout, getContext, getManager, getProfileId, getProfileName, isLockedOut, notifyFailedAttempt, shutdown
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.gateway.user.UserSourceProfile
getCacheValidationTimeout, getProfileId, shutdown, validatePassword
-
Field Details
-
DEFAULT_USER_SEARCH_FILTER
Default user search filter for looking for a single user- See Also:
-
DEFAULT_USER_LIST_FILTER
Default group search filter for finding all users- See Also:
-
DEFAULT_ROLE_LIST_FILTER
Default group search filter for finding all groups- See Also:
-
-
Constructor Details
-
ActiveDirectoryUserSource
-
-
Method Details
-
startup
Description copied from interface:UserSourceProfileKernel
Called when the user source is created before it is used.- Specified by:
startup
in interfaceUserSourceProfile
- Specified by:
startup
in interfaceUserSourceProfileKernel
- Overrides:
startup
in classUserSourceProfileKernelWrapper
-
getUsers
Description copied from interface:UserSourceProfile
Retrieve 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:
getUsers
in interfaceUserSourceProfile
- Specified by:
getUsers
in classAbstractUserSourceProfile
- Throws:
Exception
-
getUser
Description copied from interface:UserSourceProfile
Fetch aUser
with 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:
getUser
in interfaceUserSourceProfile
- Overrides:
getUser
in classAbstractUserSourceProfile
- Parameters:
userName
- the user name of theUser
to fetch- Returns:
- an
Optional
User
with 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:
-
authenticate
Description copied from interface:UserSourceProfile
Called to both verify authentication for a given username/password pair, and to find the security roles for that user.- Specified by:
authenticate
in interfaceUserSourceProfile
- 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 resetException
- if there was an unexpected problem encountered during authentication
-
authenticateAD
Description copied from interface:SSOCompatibleADUserSource
Callback to the standard, non-SSO version of this user source's auth logic- Specified by:
authenticateAD
in interfaceSSOCompatibleADUserSource
- Throws:
Exception
-
findSSOUser
Description copied from interface:SSOCompatibleADUserSource
Used 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:
findSSOUser
in interfaceSSOCompatibleADUserSource
- Throws:
Exception
-
getRoles
- Specified by:
getRoles
in interfaceUserSourceProfile
- Specified by:
getRoles
in classAbstractUserSourceProfile
- 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
-
setUsePrefixAndSuffixForGatewayUser
public void setUsePrefixAndSuffixForGatewayUser(boolean usePrefixAndSuffixForGatewayUser) -
setUseSSL
public void setUseSSL(boolean useSsl) -
setAllowAnon
public void setAllowAnon(boolean anon) -
setSecurityAuthentication
-
setSecurityProtocol
-
setReadTimeout
-
setUserSearchBase
-
setUserSearchFilter
-
setUserListFilter
-
setRoleNameAttribute
-
setFullNameAttribute
-
setBadgeAttribute
-
setBadgeSearchFilter
-
setUserRoleAttribute
-
setEmailAttribute
-
setPhoneAttribute
-
setSmsAttribute
-
setPageSize
public void setPageSize(int size) -
setSSOEnabled
public void setSSOEnabled(boolean enabled) -
setSSODomain
-
setSaslConfig
-
setReferral
-