on 04-18-2007 3:58 PM
Hi Guys,
I have a problem with mass creating users in UME using the UME API when the users are persisted into LDAP.
The same code works fine when the users are persisted into DB.
<u>This is the code used:</u>
<i> IUserMaint userMaint = UMFactory.getUserFactory().newUser(userName, copyFromUser);
userMaint.setFirstName(userName);
userMaint.setLastName("");
userMaint.save();
<b>userMaint.commit();</b>
IUserAccountFactory accountFact = UMFactory.getUserAccountFactory();
IUserAccount account = accountFact.newUserAccount(userName, userMaint.getUniqueID());
account.setPassword(password);
account.setPasswordChangeRequired(false);
account.save();
account.commit();</i>
I get the following exception at userMaint.commit() line:
<i>com.sap.security.core.persistence.datasource.PersistenceException: The given ID "CN=DE_WDF_200_AP_ENG_09,OU=200,OU=WDF,OU=DE,OU=EMEA,OU=GS,OU=GFI,OU=Resources,DC=sap,DC=corp" is not valid!</i>
The user creation works fine from the UME console. What should I configure or modify?
Thank you,
Robert
Hi Robert,
could you describe the data which is contained in the copyFromUser (e.g. by providing the result of copyFromUser.toString())?
Please provide also the full stack trace of the Exception.
Best regards,
Uwe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.