cancel
Showing results for 
Search instead for 
Did you mean: 

How to add LDAP User using Java SDK?

kalpesh_pandey
Contributor
0 Kudos

Dear All, I am developing a customized web application using Java SDK. My aim is to create LDAP users from my application as we create using CMC. We are on BOXI R2 SP3 using Tomcat as web apps on windows server 2003. We have already integrated LDAP and can create LDAP users using CMC. I want to create users using my custom application so that I can setup many rights automatically. This will save administrators lots of time while creating a new LDAP user. We have to setup lots of right and has delegated this user creation admin work to Business Users. I can already create enterprise users. I tried various options but it creates enterprise users not LDAP.

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

ted_ueda
Employee
Employee
0 Kudos

You don't create LDAP users on BusinessObjects Enterprise.

You configure LDAP authentication on BusinessObjects Enterprise, then define the groups you want it to import.

Sincerely,

Ted Ueda

kalpesh_pandey
Contributor
0 Kudos

Thanks Ted for the reply. May be I was not clear in my explanation. We already have LDAP authentication setup in CMC. I could add LDAP users using CMC but I want to do the same using Java SDK. I don't want to import all the users but only the one we want. Actually I am looking for the code which is present in CMC ( in Users Object) while adding a new user. When we click on new user in CMC and select authentication type as LDAP then new page for creating new users appears. We enter the Account name as LDAP name of same user and we select radio button for concurrent or Named users and then click on OK.. Authentication type of this new user would be LDAP.

Thanks,

ted_ueda
Employee
Employee
0 Kudos

There's a distinction between a User and the authentications for the User.

You'd IUser.getAliases().addNew("secLDAP:" + username, isDisabled) to define the LDAP auth for a created User.

Sincerely,

Ted Ueda

kalpesh_pandey
Contributor
0 Kudos

In the below section. I replaced the code to add Enterprise users with the one for LDAP. This will help developers in future

Old Code is replaced by new code:

// Set the user object's InfoObject properties.

iObject.setTitle (accountName);

iObject.setDescription (description);

objectID = iObject.getID();

New LDAP Code which replaced above code:

// Set the user object's InfoObject properties.

IUser user = (IUser)newInfoObjects.get(0);

user.setTitle(accountName);

user.setDescription (description);

objectID = user.getID();

user.getAliases().addNew("secLDAP:" + accountName,false);

This works great. Thanks to this Forum. Next step for me is to assign individual Advanced rights on this user ( and its Inbox) to other groups. So lets see how it goes.

Thanks,

Answers (0)