File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes LDAP: Add Users Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "LDAP: Add Users" Watch "LDAP: Add Users" New topic
Author

LDAP: Add Users

Balaji Soundarajan
Ranch Hand

Joined: Jan 23, 2009
Posts: 59
Hi All,

I am trying to add the user in LDAP through Java API. But i am getting the following error when executing the createSubcontext(entryDN, entry); method.

Error:

Error Details :

AddUser: error adding entry.javax.naming.PartialResultException: [LDAP: error code 10 - 0000202B: RefErr: DSID-031006E0, data 0, 1 access points
ref 1: 'testtesttest.com'
remaining name 'uid=TesUser1,DC=testtesttest, dc=com'


Please find the code for your reference.


Please do the needful.

Regards,
-Balaji.S


[EDIT: cleaned up some references to company specific information and possible passwords]
Balaji Soundarajan
Ranch Hand

Joined: Jan 23, 2009
Posts: 59
Error Details :

AddUser: error adding entry.javax.naming.PartialResultException: [LDAP: error code 10 - 0000202B: RefErr: DSID-031006E0, data 0, 1 access points
ref 1: 'testtesttest.com'
remaining name 'uid=TesUser1,DC=testtesttest, dc=com'


[EDIT: cleaned up some references to company specific information]
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

Please UseCodeTags when posting code. It will highlight your code and make it much easier to read. It probably will also increase the number of people helping you. You can edit your post with the button.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: LDAP: Add Users