query « ldap « Java Enterprise Q&A





1. Java: Query Active Directory information with minimal user information    stackoverflow.com

So, here's the situation. We'd like to be able to query active directory for a user's roles/group memberships, etc. Now, I can already do that using standard Java API (javax.naming), but ...

4. LDAP query    coderanch.com

Hi All, I am beginner to LDAP. Can any one tell me how to create a user,actually i have a form when i click save it should insert the user data in the oracle database and LDAP database,i know how to insert into oracle database,and using JAVA it should work. Thanks a lot

5. LDAP query throws error    coderanch.com

Yes I have googled and I have also read http://www.coderanch.com/t/329533/Java-General-advanced/java/Connecting-Active-Directory-using-LDAP before asking this question. My simple LDAP Java code, public void testLDAPConnect() throws NamingException { Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.PROVIDER_URL, "ldap://my company url"); env.put(Context.SECURITY_AUTHENTICATION, "simple"); env.put(Context.SECURITY_PRINCIPAL, "cn=webtool,ou=Users,dc=company,dc=com"); env.put(Context.SECURITY_CREDENTIALS, "pwd*"); DirContext ctx = new InitialLdapContext(env, null); SearchControls controls = new SearchControls(); controls.setSearchScope(SearchControls.SUBTREE_SCOPE); LinkedList list = new LinkedList(); //System.out.println(ctx.lookup("ou=Users")); NamingEnumeration ...

6. Problem with LDAP query    coderanch.com

I have a simple java LDAP client that is throwing an error 'Missing 'equals'; remaining name '''. I have posted the code below. I know it must be something simple I am missing. Please advise. import javax.naming.*; import javax.naming.directory.*; import java.util.Hashtable; public class SimpleQuery { public static void main(String[] args) { //if (args.length != 2) { // System.out.println("Syntax: SimpleQuery query attribute"); ...

7. LDAP query    forums.oracle.com

I'm working on a program for my internship, and I'm not sure how to implement it. I need to write a program that gets all the dn's from a tree on our LDAP server. Ex: dn: cn=itemName,ou=directoryZ,ou=directoryY,o=directoryX Such that I retrieve the cn's in directoryZ. I will then use each of those cn's to do a query on our SQL database, ...

8. LDAP Query from Java taking abnormally long    forums.oracle.com

Hi, thanks. I tried these, unfortunately I don't know enough about ldap to set the onelevel_scope properly. I have narrowed it down as a combination of load and login issues. For example, in our test environment the java program returns instantly with anonymous. In our production environment it returns in about 30-40 seconds with no login credentials supplied. (it does allow ...