On Wed, Aug 6, 2014 at 5:40 PM, prabhjot singh <[email protected]> wrote:
> Hey Kiran, > > Appreciate your response. > > Can you please point me on how to perform the authentication? How do I use > a custom bind request (e.g. Ntlm) in order to support Active Directory > e.g.. > > try as shown below (I don't have access to any AD server but the below should work, let us know if you run into any issues) LdapNetworkConnection connection = new LdapNetworkConnection( adHost, adPort ); BindRequest bindRequest = new BindRequestImpl(); bindRequest.setName( userName ); bindRequest.setCredentials( "secret" ); BindResponse bindResponse = connection.bind(bindRequest); Thanks, > Prabhjot > > > On Wed, Aug 6, 2014 at 5:22 PM, Kiran Ayyagari <[email protected]> > wrote: > > > On Wed, Aug 6, 2014 at 4:25 PM, prabhjot singh <[email protected]> > > wrote: > > > > > Hi there, > > > > > > I've been given a task to build services which act as LDAP client > across > > > multiple vendors (OpenLDAP & ActiveDirectory to begin with). Basically, > > > others are free to call these services with basic queries to get all > > > users/groups etc. > > > > > > I'm looking for guidance on following points. > > > > > > we can help if you are stuck somewhere while trying out the code, can't > > teach you how to do it. > > There is source and a whole range of tests too, they should be your > guiding > > stars. > > > > > 1.) How do you recommend on implementing paging functionality? I see > this > > > post on SO and doesn't seem straight forward because of lack of support > > > from LDAP. > > > > > > > > > http://stackoverflow.com/questions/7679556/in-net-4-0-can-directorysearch-return-ldap-results-in-a-way-that-allows-me-to > > > > > > 2.) I've to build an "authentication" functionality as well. This > should > > > also support Simple, Digest & NTLM auth schemes. What's the best way of > > > going about it? I'm currently using LdapConnectionTemplate.authenticate > > > < > > > > > > http://directory.apache.org/api/gen-docs/1.0.0-M23/apidocs/org/apache/directory/ldap/client/template/LdapConnectionTemplate.html#authenticate(org.apache.directory.api.ldap.model.name.Dn > > > , > > > char[])>. How do I develop support for other auth mechanisms? > > > > > > Appreciate your help on this. > > > > > > -- > > > Thanks, > > > Prabhjot > > > > > > > > > > > -- > > Kiran Ayyagari > > http://keydap.com > > > > > > -- > Thanks, > Prabhjot > -- Kiran Ayyagari http://keydap.com
