cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with getAliases().addNew() in BO 4.0?

Former Member
0 Kudos

I accidentially posted this in another forum - now I am reposting here.

If I have a user that only has an secEnterprise alias, and I then call this in a java program:

((IUser)iUser).getAliases().addNew(aliasString, false);

(and then a commit on the infostore), where aliasString is something like "secWinAD:CN=John Doe,CN=Users,DC=foo,DC=com", then the new alias is generated nicely, but the secEnterprise alias seems to be deleted under 4.X. In 3.1, both aliases would still be there after the call. There is a more precise code snippet below.

Is that intended?

Thanks,

/Noah

      IInfoObjects rUser = infoStore.query("Select SI_ID, SI_PROGID From "

          + "CI_SYSTEMOBJECTS Where SI_ID=" + newUserID);

      if (rUser.size() == 0) {

        //The query returned a blank collection (no object found).

        logger.setError("The user '" + newUserID + "' could not be found.\n");

      }

      IInfoObject iUser = (IInfoObject) rUser.get(0);

      // Check that the InfoObject has the User ProgID.

      String uProgID = (String) iUser.properties().getProperty(CePropertyID.SI_PROGID).getValue();

      if (uProgID.equals(CeProgID.USER)) {

        // Set the user object's plugin-specific properties.

         // [SNIP]

        if (createAdAliases) {

          String aliasString = buildAliasString(userName, ad);

          ((IUser)iUser).getAliases().addNew(aliasString, false);

        }

        infoStore.commit (rUser);

        return 1;

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Noah,

Let us know the BO Product version with patches(if any) you are using.

Thanks,

Prithviraj Shekhawat

Former Member
0 Kudos

Is that the info you asked for? It's from the CMC -> Settings window.

/Noah

Former Member
0 Kudos

No, This is not the version.

Version something like 14.0.2 with some specific build number say 657

14 corresponds to BI 4

0 corresponds to the minor version BI 4.0

2 corresponds to Support Pack --- BI 4.0 SP02

657 corresponds to the patch -- in this case its patch 14... So the complete version is Bi 4.0 SP02 Patch 14.

You can also find it through the control panel as well.

Thanks,

Prithvi

Former Member
0 Kudos

OK, thanks, so this us from the Control Panel:

/Noah