public void addSecurityWithAdminConfig() throws Exception { addLdapSecurityWith( new LdapConfig(new GoCipher()), true, new PasswordFileConfig(addPasswordFile().getAbsolutePath()), new AdminsConfig(new AdminUser(new CaseInsensitiveString("admin1")))); }
public void addSecurityWithNonExistantPasswordFile() throws IOException { addLdapSecurityWith( new LdapConfig(new GoCipher()), true, new PasswordFileConfig(new File("invalid", "path").getAbsolutePath()), new AdminsConfig()); }
public void addSecurityWithBogusLdapConfig(boolean anonymous) { addLdapSecurityWith( new LdapConfig("uri", "dn", "pw", null, true, new BasesConfig(new BaseConfig("sb")), "sf"), anonymous, new PasswordFileConfig(), new AdminsConfig()); }
public File addSecurityWithPasswordFile() throws IOException { addLdapSecurityWith( new LdapConfig(new GoCipher()), true, new PasswordFileConfig(addPasswordFile().getAbsolutePath()), new AdminsConfig()); return passwordFile; }
public void addLdapSecurity( String uri, String managerDn, String managerPassword, String searchBase, String searchFilter) { LdapConfig ldapConfig = new LdapConfig( uri, managerDn, managerPassword, null, true, new BasesConfig(new BaseConfig(searchBase)), searchFilter); addLdapSecurityWith(ldapConfig, true, new PasswordFileConfig(), new AdminsConfig()); }
public void addLdapSecurityWithAdmin( String uri, String managerDn, String managerPassword, String searchBase, String searchFilter, String adminUser) { LdapConfig ldapConfig = new LdapConfig( uri, managerDn, managerPassword, null, true, new BasesConfig(new BaseConfig(searchBase)), searchFilter); addLdapSecurityWith( ldapConfig, true, new PasswordFileConfig(), new AdminsConfig(new AdminUser(new CaseInsensitiveString(adminUser)))); }