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.
NOTE: The problem appears tro be on line 34, NamingEnumeration enumeration = context.search("", query, ctrl);
The problem with your code was only the variables you were submitting...
If your not sure about the LDAP attributes, download the LDAPBrowser from Softerra, it's free and will allow you to walk the LDAP environment like folders on a computer. it also shows all the attributes available to your ID (remember that many attributes are unlocked based on security).
While I am here I would also suggest breaking out the PROVIDER_URL information and setting these values as Strings to keep things easier to find in the future