on 03-30-2015 10:29 AM
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;
Hi Noah,
Let us know the BO Product version with patches(if any) you are using.
Thanks,
Prithviraj Shekhawat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.