Examples of NetId


Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.NetId

      getEnterpriseIdDomain() + ".");

    // Verify that all message objects required are in AppConfig.
    // Get a configured NetId object out of AppConfig.
    try {
      NetId netId = (NetId)getAppConfig().getObject("NetId");

      EnterpriseUser entUser = (EnterpriseUser)getAppConfig()
        .getObject("EnterpriseUser");
      EnterpriseUserPassword entUserPassword =
        (EnterpriseUserPassword)getAppConfig()
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.NetId

    // Get a list of NetIds.
    List netIds = entUser.getNetId();
   
    // Iterate through the NetIds for the EnterpriseUser and find the
    // EnterpriseId and return it.
    NetId netId = new NetId();
    for (int i=0; i < netIds.size(); i++) {
      netId = (NetId)netIds.get(i);
      logger.debug("[PasswordSyncCommand.getEnterpriseId] Found NetId: "
        + toString(netId));
      if (netId.getDomain().equals(m_enterpriseIdDomain)) {
        logger.debug("[PasswordSyncCommand.getEnterpriseId] Found " +
          "EnterpriseId: " + toString(netId));
        return netId;
      }
    }
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.NetId

    }

    // Verify that all message objects required are in AppConfig.
    // Get a configured NetId object out of AppConfig.
    try {
      NetId netId = (NetId)getAppConfig().getObject("NetId");

      EnterpriseUser entUser = (EnterpriseUser)getAppConfig()
        .getObject("EnterpriseUser");
      EnterpriseUserPassword entUserPassword =
        (EnterpriseUserPassword)getAppConfig()
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.NetId

        // Otherwise, the user already exists in the directory, so reset the
        // user's password to be the new value indicated in the message.
        else {
          // -- Get the dn for the EnterpriseUser.
          NetId enterpriseId = new NetId();
          enterpriseId = getEnterpriseId(newEntUserPassword.getEnterpriseUser());
          String dn = "uid=" + enterpriseId.getPrincipal() + "," + getUserDirectoryTreeBase();

          // Specify the modification.
          String newPassword = newEntUserPassword.getPassword().getValue();
          // SHA algorithm is assumed here.  Maybe this should be made configurable.
          String shaPw = makeSHA(newPassword);
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.NetId

    // Get a list of NetIds.
    List netIds = entUser.getNetId();
   
    // Iterate through the NetIds for the EnterpriseUser and find the
    // EnterpriseId and return it.
    NetId netId = new NetId();
    for (int i=0; i < netIds.size(); i++) {
      netId = (NetId)netIds.get(i);
      logger.debug("[" + getServiceName() + ".getEnterpriseId] Found NetId: "
        + toString(netId));
      if (netId.getDomain().equals(getEnterpriseIdDomain())) {
        logger.debug("[" + getServiceName() + ".getEnterpriseId] Found " +
          "EnterpriseId: " + toString(netId));
        return netId;
      }
    }
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.NetId

      LightweightPerson lPerson = eu.newLightweightPerson();
    logger.info("["+portletName+"] Got LightweightPerson...");
    lPerson.setInstitutionalId(instID);
    logger.info("["+portletName+"] Set instid on lightweight person...");

    NetId netId = eu.newNetId();
    logger.info("["+portletName+"] Got NetId...");
    netId.setPrincipal(principal);
    netId.setDomain(domain);
     
      eu.setLightweightPerson(lPerson);
      eu.addNetId(netId);
     
      EnterpriseUserPassword eup=(EnterpriseUserPassword)appConfig.getObject(ENTERPRISE_USER_PASSWORD);
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.NetId

  private EnterpriseUserPassword lookupEnterpriseUserPassword(String principal, String domain) throws EnterpriseFieldException, EnterpriseConfigurationObjectException, EnterpriseObjectQueryException
    {
      EnterpriseUser eu = (EnterpriseUser)appConfig.getObject(ENTERPRISE_USER);
      System.out.println("["+this.getClass().getSimpleName()+"] Got " + ENTERPRISE_USER
          + " from AppConfig, performing Query...");
      NetId netId=eu.newNetId();
      netId.setPrincipal(principal);
      netId.setDomain(domain);
      List euQueryList=eu.query(netId,p2p);
      if (euQueryList.size()==0) {
        System.out.println("["+this.getClass().getSimpleName()+"] No EnterpriseUser for "+principal+"@"+domain+".");
        return null;
      }
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.NetId

      LogService.log(LogService.INFO, "got EnterpriseUser...");

      LightweightPerson lPerson = eu.newLightweightPerson();
      lPerson.getEnterpriseFields().setIgnoreValidation(true);

      NetId netId = eu.newNetId();
      netId.setPrincipal(principal);
      netId.setDomain(domain);
      eu.addNetId(netId);

      if (instId != null && instId.length() > 0) {
        lPerson.setInstitutionalId(instId);
        Name name = lPerson.newName();
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.NetId

      getEnterpriseIdDomain() + ".");

    // Verify that all message objects required are in AppConfig.
    // Get a configured NetId object out of AppConfig.
    try {
      NetId netId = (NetId)getAppConfig().getObject("NetId");

      EnterpriseUser entUser = (EnterpriseUser)getAppConfig()
        .getObject("EnterpriseUser");
      EnterpriseUserPassword entUserPassword =
        (EnterpriseUserPassword)getAppConfig()
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.NetId

  if (netIds==null || netIds.size()==0) {
      logger.info("[PasswordSyncCommand.getUserId] No NetId found in EnterpriseUserPassword: "
          + newEntUserPassword);
    return null;
  } else {
    NetId ni = (NetId)netIds.get(0);
    String userId = ni.getPrincipal();
      logger.info("[PasswordSyncCommand.getUserId] UserId "+userId+"  found in EnterpriseUserPassword: "
          + newEntUserPassword);   
    return userId;
  }
}
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.