There is something called Connector Development Kit(CDK) that you can write your own adapter to do so. However you’ll need to be quite technical and understanding of how underlying LDAP works before you can write a proper custom adapter for that.
There is no out of the box adapter available to connect to LDAP, aside the public services available under WmPublic.
#webMethods#Integration-Server-and-ESB