cancel
Showing results for 
Search instead for 
Did you mean: 

Mass creation of users via UME API - to LDAP

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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