5

Does anyone have examples or pointers on how to integrate LDAP with Apex? We are running Apache DS and are looking to use our existing LDAP system to manage roles in our customer portal. Before I embark on integrating into the LDAP API from scratch, I thought I would see if anyone else has solved the same req before.

To be clear, this is not about the SSO/SAML capabilities that salesforce has built into the platform.

2 Answers 2

4

The only protocol supported from within Salesforce to connect to external services is HTTP(S), so you won't be able to code up LDAP requests from Apex. If your LDAP service also supports an HTTP(S) based API you could call it from Apex, or you could run an integration externally to both systems that talks LDAP to your DS, and uses the Web services APIs to update Salesforce.

3
  • while ldap is an application protocol I imagine one could reverse engineer post and responses pretty quickly. being that ldap responds over HTTPS its just the payload and headers and need to be implemented (unless Im missing something).
    – ebt
    Commented Aug 9, 2012 at 20:40
  • 1
    @ebt LDAPS uses TLS for security and has a URN format that looks like a web link it does not use HTTP(S) for data transport. It has it's own protocoll that isn't HTTP compliant and I don't think salesforce would respond to well. Commented Aug 9, 2012 at 23:57
  • hmm, your probably right.
    – ebt
    Commented Aug 10, 2012 at 5:36
2

Directory Services Markup Language (DSML) is a representation of directory service information in an XML syntax, typically carried over SOAP/HTTPS. You might want to look at the Fedora DSML Gateway - you should be able to send DSML from Apex to the gateway, and have it translate into LDAP for Apache DS.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .