Class ADInternalHybridUserSource
java.lang.Object
com.inductiveautomation.ignition.gateway.user.UserSourceProfileKernelWrapper
com.inductiveautomation.ignition.gateway.user.AbstractUserSourceProfile
com.inductiveautomation.ignition.gateway.authentication.impl.InternalUserSource
com.inductiveautomation.ignition.gateway.authentication.impl.ADInternalHybridUserSource
- All Implemented Interfaces:
SSOCompatibleADUserSource,UserSourceProfile,UserSourceProfileKernel
public class ADInternalHybridUserSource
extends InternalUserSource
implements SSOCompatibleADUserSource
-
Field Summary
Fields inherited from interface com.inductiveautomation.ignition.gateway.user.UserSourceProfile
PWD_EXPIRATION_BYPASS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidalterUser(User user, UICallback ui) authenticate(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.protected LongfindUserInternalId(PersistenceSession session, User user) Our superclass stores the internal user id as the User object's id, but we don't.Which of the editing functions are supported?Fetch aUserwith the given user name.getUsers()Retrieve all users from this profile.voidsetAllowAnon(boolean anon) voidsetEmailAttribute(String emailAttribute) voidsetFullNameAttribute(String fullNameAttribute) voidsetLdapHost(String ldapHost) voidsetLdapPort(String ldapPort) voidsetListUsersFromAD(boolean listUsersFromAD) voidsetPageSize(int size) voidsetPhoneAttribute(String phoneAttribute) voidsetPopulateUsersOnDemand(boolean populateUsersOnDemand) voidsetProfilePassword(String profilePassword) voidsetProfileUsername(String profileUsername) voidsetReadTimeout(Long readTimeOut) voidsetReferral(LDAPHelper.ReferralType referral) 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) voidsetUserSearchBase(String userSearchBase) voidsetUserSearchFilter(String userSearchFilter) voidsetUseSSL(boolean useSsl) voidstartup(UserSourceManager manager) Called when the user source is created before it is used.toString()Methods inherited from class com.inductiveautomation.ignition.gateway.authentication.impl.InternalUserSource
addRole, addUser, addUserInternal, alterPassword, createDefaultUserSource, createFirstUser, findInternalUser, getRoles, removeRole, removeUser, renameRole, validatePasswordMethods inherited from class com.inductiveautomation.ignition.gateway.user.AbstractUserSourceProfile
getName, getRoles, getUser, getUsersMethods inherited from class com.inductiveautomation.ignition.gateway.user.UserSourceProfileKernelWrapper
getCacheValidationTimeout, getContext, getManager, getProfileId, getProfileName, isLockedOut, notifyFailedAttempt, shutdownMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.gateway.user.UserSourceProfile
getCacheValidationTimeout, getProfileId, shutdown
-
Constructor Details
-
ADInternalHybridUserSource
-
-
Method Details
-
startup
Description copied from interface:UserSourceProfileKernelCalled when the user source is created before it is used.- Specified by:
startupin interfaceUserSourceProfile- Specified by:
startupin interfaceUserSourceProfileKernel- Overrides:
startupin classUserSourceProfileKernelWrapper
-
findUserInternalId
Our superclass stores the internal user id as the User object's id, but we don't. We store the username as the ID. This function looks up the internal database id of a user for the superclass's benefit.- Overrides:
findUserInternalIdin classInternalUserSource
-
alterUser
- Specified by:
alterUserin interfaceUserSourceProfile- Overrides:
alterUserin classInternalUserSource- Throws:
Exception
-
authenticate
Description 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 interfaceUserSourceProfile- Overrides:
authenticatein classInternalUserSource- 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
-
getUsers
Description 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 interfaceUserSourceProfile- Overrides:
getUsersin classInternalUserSource- Throws:
Exception
-
getUser
Description 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 interfaceUserSourceProfile- Overrides:
getUserin classInternalUserSource- Parameters:
userName- the user name of theUserto 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:
-
authenticateAD
Description copied from interface:SSOCompatibleADUserSourceCallback to the standard, non-SSO version of this user source's auth logic- Specified by:
authenticateADin interfaceSSOCompatibleADUserSource- Throws:
Exception
-
findSSOUser
Description 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 interfaceSSOCompatibleADUserSource- Throws:
Exception
-
toString
- Overrides:
toStringin classInternalUserSource
-
setPopulateUsersOnDemand
public void setPopulateUsersOnDemand(boolean populateUsersOnDemand) -
setListUsersFromAD
public void setListUsersFromAD(boolean listUsersFromAD) -
setLdapHost
-
setLdapPort
-
setSecondaryLdapHost
-
setSecondaryLdapPort
-
setUsernamePrefix
-
setUsernameSuffix
-
setProfileUsername
-
setReadTimeout
-
setProfilePassword
-
setUsePrefixAndSuffixForGatewayUser
public void setUsePrefixAndSuffixForGatewayUser(boolean usePrefixAndSuffixForGatewayUser) -
setUseSSL
public void setUseSSL(boolean useSsl) -
setAllowAnon
public void setAllowAnon(boolean anon) -
setSecurityAuthentication
-
setSecurityProtocol
-
setUserSearchBase
-
setUserSearchFilter
-
setUserListFilter
-
setUserNameAttribute
-
setFullNameAttribute
-
setEmailAttribute
-
setPhoneAttribute
-
setSmsAttribute
-
setPageSize
public void setPageSize(int size) -
setSSOEnabled
public void setSSOEnabled(boolean enabled) -
setSSODomain
-
setSaslConfig
-
setReferral
-
getEditFlags
Description copied from interface:UserSourceProfileWhich of the editing functions are supported?- Specified by:
getEditFlagsin interfaceUserSourceProfile- Overrides:
getEditFlagsin classInternalUserSource
-