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
0
votes
1 answer

How to get LDAP unboundid AttributeSyntax?

I'm trying to find out the unboundid AttributeSyntax type for a specific attribute name and it's simply not working. Here's the example test code that I'm using to achieve this: @Test public void testLDAPSchema() { try { …
Bruno Santos
  • 1,530
  • 1
  • 15
  • 22
0
votes
1 answer

UnboundID LDAP and Squid Proxy

I chose the UnboundID LDAP SDK for Java. I deployed, somewhere in cloud, a Bastion server and a Microsoft Active Directory in the same network. If I run the LDAP client code on the Bastion server, it works. Now I want to run the code locally. For…
Adrian
  • 395
  • 3
  • 13
0
votes
1 answer

How can I create a security group in LDAP server?

I am trying create a security group in LDAP server using unbounded-ldap-sdk but whenever I am trying to query the group with below filter, it is not returning the group. Filter: (&(groupType:1.2.840.113556.1.4.803:=2147483648)(cn=test_group*)) The…
bpa.mdl
  • 396
  • 1
  • 5
  • 19
0
votes
1 answer

In java Spring Boot ,How to pass in-memory LDAPConnection object to ldapService in integration testing?

I am writing integration tests for my API. I have to test flow that's why I implemented in-memory ldap. I have used InMemoryDirectoryServer which return LDAPConnection object for in memory operations. But in my LDAPService I have written function…
0
votes
1 answer

Search for a specific entry in ldap

I am trying to search an entry on ldap based on the name of the same entry. The search entries that I am getting are similar to this one: CN=nameOfTheUser,OU=firstGroupName,...,DC=domain1,DC=domain2 What I want to do is filter my search to just…
jose azevedo
  • 245
  • 2
  • 3
  • 19
0
votes
1 answer

Get all user's names from ldap servers

I'm a college student and i am doing an aplication in springboot to authenticate a user with ldap. I was able to do that with ldap.unboundid but now i want to display the name of all users on the ldap servers, is that possible and if so, could you…
jose azevedo
  • 245
  • 2
  • 3
  • 19
0
votes
2 answers

PASSWD_CANT_CHANGE flag not present in UserAccountControl attribute

I need to check through LDAP if an ActiveDirectory user has the PASSWD_CANT_CHANGE flag set. I found the UserAccountControl attribute (https://learn.microsoft.com/it-it/windows/desktop/ADSchema/a-useraccountcontrol): it works for all other flags but…
0
votes
0 answers

User Impersonation Using Java and Active Directory

I am developing Java application that uses Active Directory as user store. It is accessing AD using UnboundID LDAP SDK. Initially, I planned to use pool of connections that would bind to AD using service account and impersonate users as needed…
user2246051
  • 231
  • 1
  • 7
0
votes
1 answer

Removing the user's password from UnboundId LDAP search results

Using ApacheDS, I can do DefaultDirectoryService#setPasswordHidden to ensure that when I make LDAP queries, the records that come back remove the userPassword attribute from the result set. How would I achieve the same using UnboundId, say with…
jzheaux
  • 7,042
  • 3
  • 22
  • 36
0
votes
1 answer

java sasl authentication with openldap server

Can anyone see any reason this code doesn't work when ldapwhoami -U portal -h yorktown -Y PLAIN -ZZ works just fine? Is there something I'm doing that isn't equivalent? LDAPConnection connection = new…
Brad Mace
  • 27,194
  • 17
  • 102
  • 148
0
votes
1 answer

WeldClientProxy cannot be cast

I use the Unbound ID library that has a class LDAPConnection which has no default constructor and which implements LDAPInterface. I produce the LDAPConnection as follows: @Produces @SimpleLdapConnection @ApplicationScoped public LDAPInterface…
stefan.m
  • 1,912
  • 4
  • 20
  • 36
0
votes
1 answer

UnboundID LDIFReader unable to read entry

I am using the code below to read example 6 from http://www.ietf.org/rfc/rfc2849.txt I am using unboundid-ldapsdk version 4.0.6. I get the following exception Entries read:3 Entries with error:1 LDIFException(lineNumber=23, mayContinueReading=true,…
Jyothrilinga K
  • 307
  • 3
  • 10
0
votes
1 answer

UnboundId use the SSL KeyStore from Websphere

I'm working on a legacy application that always used UnboundId over a none SSL connection. Our infrastructure has changed and I need to rework it to SSL. So I changed the code to the following KeyStore trustStore =…
kenny
  • 1,157
  • 1
  • 16
  • 41
0
votes
1 answer

ldif to add 'user' class to org.zapodot.junit.ldap.EmbeddedLdapRule

Attempting to fire-up an AD-like server for verifying ldap queries for 'user' entities. The test: import org.zapodot.junit.ldap.EmbeddedLdapRule import org.zapodot.junit.ldap.EmbeddedLdapRuleBuilder class FooSpec extends Specification { @Rule …
pointyhat
  • 568
  • 5
  • 16
0
votes
0 answers

What is the LDAP Equivalent to the MySQL 'Select 1'?

I am attempting to update our LDAP Connection pool with a health check. The health check requires an "entryDN" that will be queried, and should the query fail (either b/c it doesn't exist or it took too long), then the connection will be marked as…
KevinO
  • 4,303
  • 4
  • 27
  • 36