0

I'm doing a POC to see if it's possible to leverage native Windows APIs through JNA to perform ldap search and query for users and other "objects". I know that LDAP programming is best done in .NET, but given my familiarity with Java, I wanted to explore JNA.

I've looked at advapi32 but that seems to have support only for authentication and not general ldap queries.

Any help would be appreciated.

  • Is there a specific reason why you want to do this with JNA? Java does support LDAP. – BackSlash Dec 05 '18 at 16:16
  • The idea is to develop this as a service running on Windows platform. I've seen JNDI code but that looks like a lot of boilerplate code. The auth via JNA is much more straightforward. I wanted to do something similar for ldap search too. – salmonroll Dec 06 '18 at 04:52
  • [18 lines of code](https://stackoverflow.com/a/2175525/1759845) don't seem "a lot of boilerplate code" to me. – BackSlash Dec 06 '18 at 07:48
  • I mean I would also do it in java but if you got some windows DLL then you should be able to access it... – Lonzak Dec 10 '18 at 07:48

0 Answers0