Custom User Manager
Although the XmlUserManager is easy enough to get started with, you may want to integrate with an already established directory system, such as LDAP.
It should be fairly straight forward to implement a custom UserManager.
The UserManager is a java interface. There are only a few methods needed to implement.
public interface UserManager { public User getUser(String username, String password) throws UserManagerException; public boolean validateUser(String username); public boolean validateGroup(String group); public Role getRole(String roleName); public boolean validateProxyUser(String proxyUser, User realUser); }
The constructor should take an azkaban.utils.Props object. The contents of azkaban.properties will be available for the UserManager for configuration.
Package your new custom UserManager into a jar and drop it into the ./extlib directory or alternatively into the plugins directory (i.e. ./plugins/ldap/linkedin-ldap.jar).
Change the azkaban.properties configuration to point to the custom UserManager. Add additional parameters into azkaban.properties if needed by your custom user manager.
{.parameter}Parameter | {.default}Default | |
---|---|---|
user.manager.class | azkaban.user.CustomUserManager | |
{.params}