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 group by primaryGroupId ? How to convert primaryGroupId to dn?

I can read user primaryGroupId: val entry = ldapConnectionPool.getEntry(userDn) primaryGroupID = entry.getAttributeValue(PRIMARY_GROUP_ID.ldapFieldName) it is a string which contains number. In my case it is always 513 As I understand user must…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
0 answers

AD compatible Embedded/in-memory LDAP server solution

Currently in tests we use ldap server which provides unboundId ldap sdk https://docs.ldap.com/ldap-sdk/docs/in-memory-directory-server.html But I've found that in contrast with AD it uses entryUUID instead of ObjectGUID. Also by default there is no…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
0 answers

How to add user to multiple groups in AD using LDAP protocol?

Using this code I can add user to group val addUser: Modification = Modification(ModificationType.ADD, "member", userDn) val ldapResult = ldapConnectionPool.modify(groupDn, addUser) Now I want to add user to multiple groups. I underdstand that I…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
0 answers

InMemoryDirectoryServer allows to have to 2 users with the same username. How to fix it?

For testing purposes I started to use in-memory ldap server val config = InMemoryDirectoryServerConfig(baseDn) config.addAdditionalBindCredentials("cn=$LOGIN", PASSWORD) config.schema = null val server = InMemoryDirectoryServer(config) val…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
0 answers

How to import ldif file in a manner insensitive to entries order

Based on this I use following code to start in memory ldap server // Create the configuration to use for the server. InMemoryDirectoryServerConfig config = new…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
0 answers

Error while using paged query with Active Directory

I want to make paginated LDAP queries to my Active Directory, and I am using SimplePagedResultsControl of UnboundID SDK. As per my use cases, I have 2 types of filters - Querying users:…
0
votes
1 answer

LDAP/AD: How to get username or user with samaccountname?

I started to use the unboundid SDK to connect and work with LDAP/AD. With the WhoAmIExtendedRequest i can get the samaccountname. But who can i get the user and the full username? Is there an other request or a DN? Thanks
weclu
  • 1
0
votes
0 answers

Java connection to LDAP server

I am struggling to make a connection to a LDAP server using java. I've tried JNDI and failed, I read that unboundid sdk is probably the way to go.. but still having some issues :( End Goal: I want to be able to connect to the LDAP server using…
0
votes
1 answer

LDAPException(resultCode=84 (decoding error)

I am trying to connect to an LDAP server and log in from simple Adnroid app where i have login form (Active Directory username and password), but I get the following error: LDAPException(resultCode=84 (decoding error), errorMessage='The connection…
0
votes
1 answer

Need help on NTLM signing over LDAP authentication

I need to do NTLM authentication over LDAP protocol. For this I am trying to use Unbound ID LDAP SDK and jcifs-ng together. Everything works fine if domain controllers doesn't require LDAP signing (integrity check). If LDAP signing is enabled, code…
0
votes
0 answers

Active Directory: tracking large group membership changes

I'm writing application that sync users and groups from Active Directory. Specifically, I need to track their IDs, DNs and group membership, save them to local database. I'm afraid of member attribute, as it can possibly have millions of…
0
votes
1 answer

How to check if LDAP user account is expired in Java using UnboundID LDAP SDK

I have a working LdapConnection object that I can use to bind and search with, but I am quite new to UnboundID LDAP SDK and was wondering if there is a way for me to find information about the users account from an LDAP search: I currently use…
Jack_Frost
  • 169
  • 2
  • 8
0
votes
0 answers

Opened LDAP Connections from connection pool after server restart (UnboundId)

I'm using UnboundID LDAP SDK for Java to query Active Directory using LDAP. I'm creating the connection every time now so I'd like to change my code to use connections pool. I've found some examples how to create a connections pool, how to get and…
dj_universe
  • 372
  • 5
  • 17
0
votes
1 answer

Password policy is not working completely in Windows server 2016 AD while using UnboundID in springboot app

I'm having issues with an AD in Windows server 2016 with a passsword policy like this one: Now in a Springboot app with UnboundID the first issue that I've found is that the Minimum password age rule is being ignored while I change a password,…
0
votes
1 answer

com.unboundid.ldap.sdk.controls.PasswordExpiredControl is not detecting expired password (Java)

I adapted the proposed example code in https://docs.ldap.com/ldap-sdk/docs/javadoc/com/unboundid/ldap/sdk/controls/PasswordExpiredControl.html to my needs. public Boolean checkExpiration(String user, String pass) throws LDAPException { …
Takatalvi
  • 670
  • 8
  • 17