cancel
Showing results for 
Search instead for 
Did you mean: 

could not create new user in LDAP using java ume api

fanglin_ye
Participant
0 Kudos

Hello all,

we are using SAP Netweaver Application Server Java 7.40. I have to write a java program to create new user in LDAP:

....

IUserMaint user = UMFactory.getUserFactory().newUser(username);

...

IUserAccount userAccount = UMFactory.getUserAccountFactory().newUserAccount(username, user.getUniqueID());

By debugging i found the call "user.getUniqueID()" returned a null object. Why? I think the "uniqueID" should be created after running UMFactory.getUserFactory().newUser(username). Could someone help me? By the way the SAP Note 777640 i have read and configured our server following this article. But i got always the error:

com.sap.security.core.persistence.datasource.imp.ldap.LDAPBindException: Unique attribute is configured but during creation no unique attribute is provided nor fallback

Could someone help me? thx.

best regards,

Fanglin

Accepted Solutions (0)

Answers (2)

Answers (2)

AntalP
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Fanglin,

Try to capture a trace with the security troubleshooting wizard:

- call http://host:port/tshw

- create a new incident based on "authentication" and add the tracing locations

  com.sap.security.core.persistence

  com.sap.security.core.performance

with DEBUG severity level to the new incident

- start tracing

- replicate the issue

- stop tracing

In the create report look for the sent and received LDAP requests and results.

Best Regards,

Antal

former_member193379
Active Contributor
0 Kudos

Hi Fanglin,

Have you checked your LDAP connection if not, please first check your LDAP connection.

Thanks,

Hamendra

fanglin_ye
Participant
0 Kudos

Hello Hamendra,

thx for your reply. The LDAP connection is there and it is HPPS connection. In NWA I tested the connection und was successful.

regards,

Fanglin