Examples of ADRealm


Examples of com.stimulus.archiva.security.realm.ADRealm

  public static void setConfig(Config config) {
    Config.setConfig(config);
  }
 
  public static ArrayList<ADRealm.AttributeValue> getLDAPAttributeValues(LDAPIdentity identity, String username, String password) throws ArchivaException {
      ADRealm ar = new ADRealm();
      return ar.getADAttributes((ADIdentity)identity,username,password);

  }
View Full Code Here

Examples of com.stimulus.archiva.security.realm.ADRealm

      return ar.getADAttributes((ADIdentity)identity,username,password);

  }
 
  public static String testAuthenticate(Config config, String username, String password)  {
      ADRealm ar = new ADRealm();
      //Principal p = ar.authenticate(username,password);
      MailArchivaPrincipal cgp = null;
      try {
          cgp = (MailArchivaPrincipal)ar.authenticate(config,username,password);
          if (cgp!=null) {
              String roleName = cgp.getRole();
              return "Authentication success. Role "+roleName+" is assigned.";
          } else
              return "Authentication failed.";
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.