ldap « jndi « Java Enterprise Q&A





1. Web-based LDAP Browser    stackoverflow.com

Is anyone aware of an "web-based" application that allows developers to browse an LDAP server and view objectClasses and attributeClasses? Ideally I would love something open source that is written in ...

2. How do I accomplish the following in LDAP?    stackoverflow.com

I would like to accomplish this goal using AD/ADAM

  • The ability to make an email or other attributeClass as part of inetOrgPerson globally unique across entries
  • The ability to attach a regular expression ...

3. Adding LDAP entries using JNDI    stackoverflow.com

I am trying to add an entry to an LDAP server using JNDI. I could successfully read the entries from the LDAP server. But when I try to add a new ...

4. can not import inbuilt java class file (javax.naming.ldap.SortControl)    stackoverflow.com

I have downloaded Openfire sources and started to run it on Eclipse. I got a error saying javax.naming.ldap.SortControl class is not there, as illustrated on the following image:

5. How do I run range queries on LDAP    stackoverflow.com

I am trying to retrieve data about groups on LDAP. As I need to paginate results, I need to run range queries. My setup uses JNDI to connect to LDAP. I ...

6. Java, LDAP, ADAM - How do I create a container with a forward slash in the name    stackoverflow.com


I am having trouble writing some Java code, which will create a container/folder in ADAM, where the container name and distinughed name contain a forward slash.
e.g.
cn=test/test
...

7. JNDI Obtain the size of a LDAP search without retrieving all the data    stackoverflow.com

I need to know how many users and groups are in my LDAP directory. The search looks fairly simple:

(| (objectClass=group)(objectClass=user))
The problem is that the API is very limited. I ...

8. LDAP: using a filter to avoid a sub CN in Active Directory    stackoverflow.com

I am trying to query nearly all users in Active Directory. My normal users are in various OUs, and I want to retrieve those. But my system users are stored in the ...

9. JNDI Add Users to Groups with ADS    stackoverflow.com

We have been trying to add users to groups using JNDI. Our directory server is Active Directory on Windows 2003. We were able to create users and groups just fine. However, making ...





10. What does sub error code 568 mean for Ldap Error 49 with Active Directory    stackoverflow.com

I am writing some Java code that authenticates to Active Directory using SASL GSSAPI. Mostly this code is working fine but for one user I am getting the response:

javax.naming.AuthenticationException: [LDAP: ...

11. How to add OU into LDAP using JNDI    stackoverflow.com

I am very new to LDAP and JNDI. Basically i would like to add a new OU into LDAP from JNDI. My LDAP server is setup from OpenDS. Here's my code:

public static ...

12. what is the difference between LDAP and FileSystem JNDIs    stackoverflow.com

Please tell me where one should use LDAP JNDI and where FileSystem JNDI. I also want to know what should be the value of Context.PROVIDER_URL in each case. Where one can find ...

13. JNDI Ldap Class Not Found    stackoverflow.com

I am using JNDI Ldap to connect to an LDAP server in a Maven project.

    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.LdapCtxFactory");
It fails at this line because it cannot find this class. I ...

14. How to create a partition in the root in ApacheDS server programmatically using JNDI/LDAP?    stackoverflow.com

I'm trying to create a new partition in the root of a ApacheDS Lightweight Directory using JNDI/LDAP. I've failed trying to add it using bind and createSubcontext within the root context. ...

15. Add new object class in LDAP schema using JNDI    stackoverflow.com

I wrote code to add object class in LDAP schema. It works fine with SunOne directory service. But it gives "InvalidAttributeValueException" in case of OpenLdap and gives "OperationNotSupportedException" in case ...

16. JNDI with Active Directory PartialResultException    stackoverflow.com

So I am basically walking the LDAP tree in active directory. At each level I query for "(objectClass=*)". When I do this on the root eg "dc=example,dc=com" I get the exception ...





17. how to show all attributes definition present in LDAP schema using JNDI    stackoverflow.com

i want to show all attributes definition present in ldap schema to user. DirContext schema = ctx.getSchema(""); Attributes answer = schema.getAttributes("AttributeDefinition/telephonenumber"); This code gives description about one attribute at a time and user also ...

18. Jndi-Ldap paging    stackoverflow.com

I managed to get pagination working like described here. The problem is I need to expose an API which would look like this:getUsers(pageSize, PageNumber), which does not really go ...

19. What's the simplest (i.e least complex) possible LDAP operation    stackoverflow.com

I have implemented a pool for LDAP connections using Apache commons-pool. I cannot use the pooling feature provided by JNDI (http://download.oracle.com/javase/jndi/tutorial/ldap/connect/pool.html) because I use SSL connection (with a custom (Oracle-provided) socket ...

20. Updating LDAP encrypted passsword via JNDI    stackoverflow.com

I need some pointers how to update an encrypted password in an LDAP (OpenLDAP) of a user within an LDAP tree. The passwords in the LDAP server are prefixed with {crypt} ...

21. Fetching data from LDAP active directory by using id?    stackoverflow.com

I want to fetch some user information from LDAP Active directory by using Id. here is the code I'm trying to connect and fetch it.

SearchControls ctls = new SearchControls();
ctls.setSearchScope(SearchControls.SUBTREE_SCOPE);
NamingEnumeration results = ctx.search("DC=erieinsurance,DC=com", ...

22. What "domain" should I specify in JNDI login to an Active Directory Server?    stackoverflow.com

I'm wondering what "principal" I should specify to login in to an Active Directory server. Should the principal be a user inside the AD I try to log into? Or it ...

23. LDAP and JNDI    coderanch.com

Hi, I am trying to authenticate a user against LDAP server and get the information about the user from the server. So far I found ways to Authenticate user by creating a context with the environment variables. But this does not return attributes of this user. So I have to search for this user again and get attributes. Does anybody know ...

24. JNDI, LDAP, renaming to different part of namespace    coderanch.com

Hi, Running following code to rename entries: ****************************************************************************** Hashtable hashtableEnvironment = new Hashtable(); hashtableEnvironment.put( Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory" ); hashtableEnvironment.put( Context.PROVIDER_URL, "ldap://ip ort" ); Hashtable env; //read parameters from properties file readParameters(); env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY,initialContextFactoryLDAP); env.put(Context.PROVIDER_URL,providerUrlLDAP); env.put(Context.SECURITY_PRINCIPAL,securityPrincipalLDAP); env.put(Context.SECURITY_CREDENTIALS,securityCredentialsLDAP); env.put("java.naming.ldap.version","3"); DirContext dirContext = new InitialDirContext(env); String DNa = "o=testiPT, o=testiPT, o=testiRP, o=Juuri, l=Ammattilaiset, c=fi"; String DNb = "ou=testiPT, o=testiPT, o=testiRP, o=Juuri, l=Ammattilaiset, ...

25. JNDI & LDAP    coderanch.com

26. cannot connect to LDAP through JNDI    coderanch.com

Hello, I'm using JNDI to connect to our LDAP server and get the list (i just need to print it out) of organizational units. I am following the tutorial from here and but i'm still getting this error (code that i ended up with is the filter search below): javax.naming.CommunicationException: hostname:636 [Root exception is java.net.ConnectException: Connection timed out] at com.sun.jndi.ldap.Connection.(Connection.java:204) at ...

27. noob to ldap and jndi    forums.oracle.com

28. JNDI and LDAP    forums.oracle.com

29. Displaying binary ldap attribute using JNDI    forums.oracle.com

I am trying to display the x500UniqueIdentifier attribute using JNDI. I couldn't figure out why I wasn't successful since the other atttributes that I was displaying in my jsp page were displaying fine. Apparently, the x500UniqueIdentifier attribute is an LDAP binary attribute. Does anyone know how I can convert this attribute as a string to display? Thanks.