Search in sources :

Example 1 with LdapAuthProvider

use of com.gitblit.auth.LdapAuthProvider in project gitblit by gitblit.

the class LdapAuthenticationTest method newLdapAuthentication.

private LdapAuthProvider newLdapAuthentication(IStoredSettings settings) {
    XssFilter xssFilter = new AllowXssFilter();
    RuntimeManager runtime = new RuntimeManager(settings, xssFilter, GitBlitSuite.BASEFOLDER).start();
    userManager = new UserManager(runtime, null).start();
    LdapAuthProvider ldap = new LdapAuthProvider();
    ldap.setup(runtime, userManager);
    return ldap;
}
Also used : LdapAuthProvider(com.gitblit.auth.LdapAuthProvider) IUserManager(com.gitblit.manager.IUserManager) UserManager(com.gitblit.manager.UserManager) AllowXssFilter(com.gitblit.utils.XssFilter.AllowXssFilter) XssFilter(com.gitblit.utils.XssFilter) RuntimeManager(com.gitblit.manager.RuntimeManager) AllowXssFilter(com.gitblit.utils.XssFilter.AllowXssFilter)

Aggregations

LdapAuthProvider (com.gitblit.auth.LdapAuthProvider)1 IUserManager (com.gitblit.manager.IUserManager)1 RuntimeManager (com.gitblit.manager.RuntimeManager)1 UserManager (com.gitblit.manager.UserManager)1 XssFilter (com.gitblit.utils.XssFilter)1 AllowXssFilter (com.gitblit.utils.XssFilter.AllowXssFilter)1