public class JAASAuthenticationComponent extends AbstractAuthenticationComponent
login.config.url.1=file:${java.home}/lib/security/java.login.config
Example configuration entries for Kerberos would be:
Alfresco {
com.sun.security.auth.module.Krb5LoginModule sufficient;
};
com.sun.net.ssl.client {
com.sun.security.auth.module.Krb5LoginModule sufficient;
};
other {
com.sun.security.auth.module.Krb5LoginModule sufficient;
};
This sets up authentication using Kerberos for Alfresco and some defaults that would use the same mechanism if sasl failed for example.
You could use kerberos and LDAP combined against an Active Directory server.AuthenticationComponent.UserNameValidationMode
Constructor and Description |
---|
JAASAuthenticationComponent() |
Modifier and Type | Method and Description |
---|---|
protected void |
authenticateImpl(String userName,
char[] password)
Implement Authentication
|
protected boolean |
implementationAllowsGuestLogin()
Jaas does not support guest login
|
void |
setJaasConfigEntryName(String jaasConfigEntryName) |
void |
setRealm(String realm) |
authenticate, clearCurrentSecurityContext, getAllowGuestLogin, getCurrentAuthentication, getCurrentUserName, getDefaultAdministratorUserNames, getDefaultGuestUserNames, getGuestUserName, getGuestUserName, getNodeService, getNumberFailedAuthentications, getNumberSuccessfulAuthentications, getPersonService, getSystemUserName, getSystemUserName, getTransactionService, getUserDetails, getUserDomain, guestUserAuthenticationAllowed, isCurrentUserTheSystemUser, isGuestUserName, isSystemUserName, onAuthenticate, onFail, setAllowGuestLogin, setAuthenticationContext, setCurrentAuthentication, setCurrentUser, setCurrentUser, setDefaultAdministratorUserNameList, setDefaultAdministratorUserNames, setDefaultGuestUserNameList, setDefaultGuestUserNames, setGuestUserAsCurrentUser, setNodeService, setPersonService, setSystemUserAsCurrentUser, setSystemUserAsCurrentUser, setTransactionService, setUserDetails, setUserRegistrySynchronizer
public void setJaasConfigEntryName(String jaasConfigEntryName)
public void setRealm(String realm)
protected boolean implementationAllowsGuestLogin()
implementationAllowsGuestLogin
in class AbstractAuthenticationComponent
protected void authenticateImpl(String userName, char[] password) throws org.alfresco.repo.security.authentication.AuthenticationException
authenticateImpl
in class AbstractAuthenticationComponent
userName
- Stringpassword
- char[]org.alfresco.repo.security.authentication.AuthenticationException
Copyright © 2005–2017 Alfresco Software. All rights reserved.