Skip to Content

How to add LDAP User using Java SDK?

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,

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Aug 25, 2010 at 03:53 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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,

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.