openldap « jndi « Java Enterprise Q&A





1. Choosing an RDN for new objectClasses in LDAP?    stackoverflow.com

What are the best practices for choosing an RDN when creating new objectClasses in LDAP? I know you can choose from uid, cn, ou, and so on, but what practices should ...

2. Attribute is not being renamed by this code in Ldap    stackoverflow.com

/** * * ModifyRDN .java * Sample code to demostrate how ModifyRDN/ModifyDN works. * */ import javax.naming.; import javax.naming.directory.; import java.util.Hashtable; public class ModifyRDN { public static void main(String[] args) ...

3. Nexus and LDAP - JNDI-Problem while authenticating users against OpenLDAP Server    stackoverflow.com

I am using Nexus repository manager (nexus.sonatype.org) with the open source LDAP plugin (code.google.com/p/nexus-ldap/) and I get an error indicating that the wrong protocol version is used (details below). All the ...

4. How to get specific errors when using ppolicy in LDAP from Java using JNDI    stackoverflow.com

I'm using JNDI for authentication in a web app. On the OpenLDAP side I'm using ppolicy to (for example) block a user's account after three failed log in attempts. My problem ...

5. Java JNDI Delete entire LDAP subtree    stackoverflow.com

I need to delete entire LDAP subtree, by Java code, like the -r parameter of ldapdelete command. How can I do that? There is a simple way to delete entire LDAP ...

6. openLDAP with jndi    forums.oracle.com

import java.util.Hashtable; import java.util.Enumeration; import javax.naming.*; import javax.naming.directory.*; public class JNDIAdd{ public static String INITCTX = "com.sun.jndi.ldap.LdapCtxFactory"; public static String MY_HOST = "ldap://localhost:389"; public static String MGR_DN = "cn=Manager,dc=my-domain,dc=com"; public static String MGR_PW = "secret"; public static String MY_SEARCHBASE = "o=Guessant.com"; public static void main(String args[]){ try{ Hashtable env = new Hashtable();