Examples of LdapServerConfigurationDTO


Examples of com.sonatype.security.ldap.api.dto.LdapServerConfigurationDTO

      throws Exception
  {
    PlexusResource pr = this.lookup(PlexusResource.class, "LdapUserAndGroupConfigTestPlexusResource");

    LdapServerRequest ldapServerRequest = new LdapServerRequest();
    ldapServerRequest.setData(new LdapServerConfigurationDTO());

    ldapServerRequest.getData().setName("testSuccess");

    LdapConnectionInfoDTO connDto = new LdapConnectionInfoDTO();
    ldapServerRequest.getData().setConnectionInfo(connDto);
View Full Code Here

Examples of com.sonatype.security.ldap.api.dto.LdapServerConfigurationDTO

  {

    PlexusResource pr = this.lookup(PlexusResource.class, "LdapUserAndGroupConfigTestPlexusResource");

    LdapServerRequest ldapServerRequest = new LdapServerRequest();
    ldapServerRequest.setData(new LdapServerConfigurationDTO());

    ldapServerRequest.getData().setName("testFailure");

    LdapConnectionInfoDTO connDto = new LdapConnectionInfoDTO();
    ldapServerRequest.getData().setConnectionInfo(connDto);
View Full Code Here

Examples of com.sonatype.security.ldap.api.dto.LdapServerConfigurationDTO

  public void testInvalidLogin()
      throws Exception
  {
    LdapServerLoginTestRequest ldapServerLoginTestRequest = new LdapServerLoginTestRequest();
    ldapServerLoginTestRequest.setData(new LdapServerLoginTestDTO());
    ldapServerLoginTestRequest.getData().setConfiguration(new LdapServerConfigurationDTO());

    LdapConnectionInfoDTO connDto = new LdapConnectionInfoDTO();
    ldapServerLoginTestRequest.getData().getConfiguration().setConnectionInfo(connDto);
    connDto.setAuthScheme("simple");
    connDto.setHost("localhost");
View Full Code Here

Examples of com.sonatype.security.ldap.api.dto.LdapServerConfigurationDTO

      throws Exception
  {

    LdapServerLoginTestRequest ldapServerLoginTestRequest = new LdapServerLoginTestRequest();
    ldapServerLoginTestRequest.setData(new LdapServerLoginTestDTO());
    ldapServerLoginTestRequest.getData().setConfiguration(new LdapServerConfigurationDTO());

    LdapConnectionInfoDTO connDto = new LdapConnectionInfoDTO();
    ldapServerLoginTestRequest.getData().getConfiguration().setConnectionInfo(connDto);
    connDto.setAuthScheme("simple");
    connDto.setHost("localhost");
View Full Code Here

Examples of com.sonatype.security.ldap.api.dto.LdapServerConfigurationDTO

      throws Exception
  {

    LdapServerLoginTestRequest ldapServerLoginTestRequest = new LdapServerLoginTestRequest();
    ldapServerLoginTestRequest.setData(new LdapServerLoginTestDTO());
    ldapServerLoginTestRequest.getData().setConfiguration(new LdapServerConfigurationDTO());

    LdapConnectionInfoDTO connDto = new LdapConnectionInfoDTO();
    ldapServerLoginTestRequest.getData().getConfiguration().setConnectionInfo(connDto);
    connDto.setAuthScheme("simple");
    connDto.setHost("localhost");
View Full Code Here

Examples of com.sonatype.security.ldap.api.dto.LdapServerConfigurationDTO

      throws Exception
  {

    LdapServerLoginTestRequest ldapServerLoginTestRequest = new LdapServerLoginTestRequest();
    ldapServerLoginTestRequest.setData(new LdapServerLoginTestDTO());
    ldapServerLoginTestRequest.getData().setConfiguration(new LdapServerConfigurationDTO());

    LdapConnectionInfoDTO connDto = new LdapConnectionInfoDTO();
    ldapServerLoginTestRequest.getData().getConfiguration().setConnectionInfo(connDto);
    connDto.setAuthScheme("none");
    connDto.setHost("localhost");
View Full Code Here

Examples of com.sonatype.security.ldap.api.dto.LdapServerConfigurationDTO

  public void testPutInvalidPass()
      throws Exception
  {
    LdapServerLoginTestRequest ldapServerLoginTestRequest = new LdapServerLoginTestRequest();
    ldapServerLoginTestRequest.setData(new LdapServerLoginTestDTO());
    ldapServerLoginTestRequest.getData().setConfiguration(new LdapServerConfigurationDTO());

    ldapServerLoginTestRequest.getData().getConfiguration().setId(null); // not set
    ldapServerLoginTestRequest.getData().getConfiguration().setName("testPost");
    ldapServerLoginTestRequest.getData().getConfiguration().setUrl(null); // set on the return, not the request
View Full Code Here

Examples of com.sonatype.security.ldap.api.dto.LdapServerConfigurationDTO

  protected LdapServerConfigurationDTO getDefaultServerConfiguration() {
    LdapConnectionInfoDTO connInfo = getDefaultConnectionInfo();
    LdapUserAndGroupAuthConfigurationDTO userGroupConf = getDefaultUserAndGroupConfiguration();

    LdapServerConfigurationDTO dto = new LdapServerConfigurationDTO();
    dto.setId(null); // not set
    dto.setName("default");
    dto.setUrl(null); // set on the return, not the request
    dto.setConnectionInfo(connInfo);
    dto.setUserAndGroupConfig(userGroupConf);
    return dto;
  }
View Full Code Here

Examples of com.sonatype.security.ldap.api.dto.LdapServerConfigurationDTO

  public void testPut()
      throws Exception
  {
    LdapServerLoginTestRequest ldapServerLoginTestRequest = new LdapServerLoginTestRequest();
    ldapServerLoginTestRequest.setData(new LdapServerLoginTestDTO());
    ldapServerLoginTestRequest.getData().setConfiguration(new LdapServerConfigurationDTO());

    ldapServerLoginTestRequest.getData().getConfiguration().setId(null); // not set
    ldapServerLoginTestRequest.getData().getConfiguration().setName("testPost");
    ldapServerLoginTestRequest.getData().getConfiguration().setUrl(null); // set on the return, not the request
View Full Code Here

Examples of com.sonatype.security.ldap.api.dto.LdapServerConfigurationDTO

  public void testPutInvalidServerConfig()
      throws Exception
  {
    LdapServerLoginTestRequest ldapServerLoginTestRequest = new LdapServerLoginTestRequest();
    ldapServerLoginTestRequest.setData(new LdapServerLoginTestDTO());
    ldapServerLoginTestRequest.getData().setConfiguration(new LdapServerConfigurationDTO());

    ldapServerLoginTestRequest.getData().getConfiguration().setId(null); // not set
    ldapServerLoginTestRequest.getData().getConfiguration().setName("testPost");
    ldapServerLoginTestRequest.getData().getConfiguration().setUrl(null); // set on the return, not the request
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.