cancel
Showing results for 
Search instead for 
Did you mean: 

User Created in LDAP is in disabled status after created by IUserAccount

Former Member
0 Kudos

Hello Gurus,

I have created custom Self Registration page in SAP EP. Here we cant use standard registration page due to its visual limitations.

So I have created new Self Registration page and I am using IUserMaint and IUserAccount classes to create users when user press submit button.

We are using Windows Active Directory LDAP-External for user storage.

User is getting created in portal as well as in LDAP. But when checked in LDAP, I found that user is in disabled status and because of that I am not able to login using the same.

However if I create user by standard registration page, it gets created properly.

Procedure I am following to create user is like this,

1. Create User using IUserMaint, set its rest of the attributes, save and commit.

2. Create User Account using IUserAccount with passing unique Id of IUserMaint, set rest of the attributes, save and commit.

As per blogs and posts present in scn I did this but now I find that, after this User is in disabled status at LDAP level.

When I checked LDAP events for standard and my custom registration page, there is one event missing for custom - 4722(For Enabling the user in LDAP).

I have tried to use setLocked() method of IUserAccount so that this event can be triggered. But whatever I try neither this event is getting triggered or user is not getting set to Enabled in LDAP.

Can anyone suggest where I am going wrong? Or is any step missing?

Thanks,

Omkar

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

What do mean by disabled state in LDAP - Is it user account locked in LDAP or validity has got expired.? Are you setting a valid value for "End Date of Account Validity" when creating the account through API? What is the status of the user account in portal UME?

Also, compare the properties of the newly created user object with a valid existing user id in UME. This should give you the clues..

Former Member
0 Kudos

Hi,

By disabled I mean they are locked kind of thing if u say in terms of UME. But we are not using UME at all. If I check in Portal, user is Active but in LDAP directory they are inactive.

For End Date Account Validity, its a proper value. I have compared both types of users in LDAP as well as in Portal but they are exactly same except user being inactive in LDAP.

When I checked Event Logs on LDAP Server for user creation for standard it make 4 different events as 4720, 4724, 4738 and last 4722. But for my custom page, it makes only 4720, 4724 and 4738. Last call is not being made which is for enabling user account in LDAP.

So do you know, any way by which we can enable user account?

Thanks,

Omkar