Site aware LDAPS Provider

Provides Site Aware LDAP server names, possibly using LDAPS.

License

License

MIT
Categories

Categories

IDE Development Tools
GroupId

GroupId

com.github.marschall
ArtifactId

ArtifactId

site-aware-ldaps-provider
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

Site aware LDAPS Provider
Provides Site Aware LDAP server names, possibly using LDAPS.
Project URL

Project URL

https://github.com/marschall/site-aware-ldaps-provider
Source Code Management

Source Code Management

https://github.com/marschall/site-aware-ldaps-provider

Download site-aware-ldaps-provider

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.marschall/site-aware-ldaps-provider/ -->
<dependency>
    <groupId>com.github.marschall</groupId>
    <artifactId>site-aware-ldaps-provider</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.marschall/site-aware-ldaps-provider/
implementation 'com.github.marschall:site-aware-ldaps-provider:1.0.0'
// https://jarcasting.com/artifacts/com.github.marschall/site-aware-ldaps-provider/
implementation ("com.github.marschall:site-aware-ldaps-provider:1.0.0")
'com.github.marschall:site-aware-ldaps-provider:jar:1.0.0'
<dependency org="com.github.marschall" name="site-aware-ldaps-provider" rev="1.0.0">
  <artifact name="site-aware-ldaps-provider" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.marschall', module='site-aware-ldaps-provider', version='1.0.0')
)
libraryDependencies += "com.github.marschall" % "site-aware-ldaps-provider" % "1.0.0"
[com.github.marschall/site-aware-ldaps-provider "1.0.0"]

Dependencies

test (3)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-api jar
org.junit.jupiter : junit-jupiter-engine jar
org.mockito : mockito-core jar 3.5.5

Project Modules

There are no modules declared in this project.

Site-aware LDAPS Provider

Provides LDAPS site awareness.

  • RFC 2782 only mentions LDAP and not LDAPS
  • Active Directory per default does not create SRV DNS records for LDAPS
  • site-awareness is a proprietary Active Directory feature

JDK-8192975

Currently requires the JNDI DNS client and Java 12.

Usage

Put the JAR in the classpath or module path.

<dependency>
  <groupId>com.github.marschall</groupId>
  <artifactId>site-aware-ldaps-provider</artifactId>
  <version>1.0.0</version>
</dependency>
Hashtable<String, String> env = new Hashtable<>();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldaps:///dc=example,dc=com"); // ldap also supported
env.put(ActiveDirectoryContext.SITE, "site-name"); // optional
DirContext ctx = new InitialDirContext(env);

WildFly

Dropping the JAR directly in $JBOSS_HOME/modules should add it to the Java module path (-mp)

Versions

Version
1.0.0