09-10-2008 05:36 PM
I am using the BB-JDE 4.6.0.12.
My question is if I am required to authenticate into the LDAP Server, how do I accomplish this?
LDAPQuery query = new LDAPQuery();
query.setAuthType(LDAPQuery.LDAP_AUTH_SIMPLE);
I looked in the API, and there isn't any .set() for Principal and Password.
Thank you for any light you can shed on this.
-brian
09-13-2008 04:07 PM
I too have been looking for an answer to this. There is ZERO information about doing LDAP lookups in the API.
There is the sample application in the API documentation but it's very basic and doesn't even work for me using the MDS simulator.
I tried doing:
LDAPPasswordCache passcache = new LDAPPasswordCache(); passcache.setPassword(ldapServer, ldapBaseDN, ldapUserDN, ldapPass);
But the JDE complain:
C:\src\test\RIMLDAPTest.java:24: LDAPPasswordCache() has private access in net.rim.device.api.ldap.LDAPPasswordCache
Any help would be appreciated as I need to get LDAP results from our internal LDAP servers inside my app!
09-14-2008 12:51 PM
09-14-2008 02:10 PM
That gives me a build error:
C:\src\test\RIMLDAPTest.java:42: cannot find symbol
symbol : class getInstance
location: class net.rim.device.api.ldap.LDAPPasswordCache
LDAPPasswordCache passcache = new LDAPPasswordCache.getInstance();