Questions tagged [unboundid-ldap-sdk]

The UnboundID LDAP SDK for Java is a fast, powerful, user-friendly, and completely free Java API for communicating with LDAPv3 directory servers.

The UnboundID LDAP SDK for Java is a fast, powerful, user-friendly, and completely free Java API for communicating with LDAPv3 directory servers.

Home page: https://www.unboundid.com/products/ldapsdk/

Mailing list: ldap-sdk-discuss@lists.sourceforge.net

Maven download from the central repository:

<dependency>
    <groupId>com.unboundid</groupId>
    <artifactId>unboundid-ldapsdk</artifactId>
    <version>2.3.4</version>
</dependency>
210 questions
3
votes
2 answers

Setting up Spring Data LDAP Embedded for tests with base DN

I have a weird behaviour of Spring Data Ldap and was wondering how I can fight it. From the looks of it, it seems that the base information is either lost or handled differently when I use a "proper" LDAP server and the embedded version. The…
3
votes
1 answer

Bind to Active Directory via SSL using unbound id

I'm looking to authenticate with AD using unboundID but I get a serverdown error on the bind action. The requests work fine when I do this via JNDI instead of unboundID. I've looked it up online and most seem to have a similar way of doing…
dozer
  • 861
  • 1
  • 11
  • 22
3
votes
2 answers

How to provide password authentication for LDAP server in Java?

Okay, so I have most of the pieces, but I can't seem to put them together properly. I'm basically trying to protect database data with a simple authentication process (maybe with a GUI) to ensure that the correct people are viewing the data. Right…
Niko
  • 984
  • 1
  • 7
  • 15
3
votes
0 answers

How to get users from Active Directory using Unboundid LDAP SDK?

I need to get users from Active Directory. According to many places include MSDN https://msdn.microsoft.com/en-us/library/ms677643%28v=vs.85%29.aspx the correct query is this (&(objectClass=user)(objectCategory=person)). Unfortunately, I was not…
Michael
  • 10,063
  • 18
  • 65
  • 104
3
votes
1 answer

LDAP UnboundId: get all values of attribute from single entry

I have this code // get the search results, getConnection = LDAPConnection SearchResult searchResults = getConnection().search(basedn, SearchScope.SUB, "(cn=JacobKranz)", "description"); …
Jacob Kranz
  • 921
  • 3
  • 11
  • 24
3
votes
1 answer

UnboundID LDAP Java SDK - need to list descendants of a given parent DN

How do I query all descendants of a parent entry in LDAP using UnboundID LDAP SDK? I am looking for something like a Filter which can say filter based on parent DN. Or some way to list all children of a given Entry. Is either of it possible using…
3
votes
3 answers

Retrieve All Members of Large AD Groups

Working with an Microsoft Active Directory and Unboundid SDK and there is a group with >29k members. I am trying to utilize the range values to get all the groups, but can not determine when the end has been reached. I am using this method: (Updated…
jwilleke
  • 10,467
  • 1
  • 30
  • 51
3
votes
1 answer

Password Reset Enforcing Directory Policies with UnboundID

I'm developing a web app that let users reset their own passwords in Active Directory. I've been doing it by binding as an administrator and it works fine, but the directory policies (reuse history, characters, etc) are not being enforced. I can't…
David Cifuentes
  • 564
  • 5
  • 16
3
votes
1 answer

Adding an SSL listener to UnboundID

I would like to start an in-memory UnboundID server using an SSL listener. So far I am only able to create a non-SSL one, as could be seen in many examples. Unfortunately, I can't seem to be able to find an example which illustrates how to add an…
carlspring
  • 31,231
  • 29
  • 115
  • 197
3
votes
2 answers

How do I find all the roles a user has in LDAP using the UnboundID LDAP SDK?

I am having trouble finding the roles a user belongs to, I've tried the following code and it gives a lot of attributes, but what I am interested in is what roles the user belongs to in a certain app. The user I am searching for belongs to the…
kajafls
  • 89
  • 1
  • 2
  • 11
3
votes
2 answers

LDAPException size limit exceeded

I am using unboundid ldap sdk for executing ldap query. I am facing a strange problem while running ldap search query. I am getting a Exception when i run query against a group which contains 50k entries. My Exception : LDAPException(resultCode=4…
Ashish Panery
  • 1,196
  • 3
  • 13
  • 24
3
votes
1 answer

How to make LdapContextSource pointing to UnboundID InMemoryDirectoryServer?

I have a set of old automated test cases which are based on Spring LDAP framework. They connect to an external LDAP server. I am thinking about replacing the external server with an embedded one. The UnboundID InMemoryDirectoryServer appears…
SolutionMill
  • 667
  • 6
  • 23
2
votes
1 answer

Is there way to use ObjectGuid instead of dn in ldap api?

We have an application which use ldap protocol. We use unboundId library for that // ldap implementation("com.unboundid:unboundid-ldapsdk:6.0.9") We found out that most api calls use dn as argument. For example: ldapConnectionPool.getEntry(dn) But…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
2
votes
1 answer

UnboundID trying to add attribute getting an exception

Using an LDAP connecting I am trying to write a method that adds/replaces an attribute "postalCode" for a user in the database. public void addPostcodeAttributeToUser(String postcode, String user, LDAPConnection conn) { try { …
nixon
  • 41
  • 6
2
votes
1 answer

one ldap sdk who can create the user and assign security groups using unbounded-ldap-sdk

I am trying to improve the performance so rather than making a separate call to AD through java LDAP SDK is there any way where I can just build one request where I can create the user, assign the attributes, add the members into security groups and…
NDD
  • 57
  • 1
  • 7
1
2
3
13 14