Hi,
I want to build an application using Java and C++ to convert LDAP responses (sub tree search, tree with multi level hierarchy) into LDIF file. Are there any open source libraries which can be used for this use case.
Thanks Abhijit
On Thu, Dec 12, 2024 at 03:10:37PM -0000, duttaa@hotmail.com wrote:
Hi,
I want to build an application using Java and C++ to convert LDAP responses (sub tree search, tree with multi level hierarchy) into LDIF file. Are there any open source libraries which can be used for this use case.
Hi Abhijit, you can have a look at ldif.h and ldif_put_wrap() which is how ldapsearch does it[0], should be straightforward to use from C++ as well. I'm not very familiar with Java LDAP/LDIF libraries but there is a list you might want to evaluate[1].
[0]. https://git.openldap.org/openldap/openldap/-/blob/master/clients/tools/ldaps... [1]. https://directory.apache.org/api/java-api.html
Regards,
On Dec 13, 2024, at 4:17 AM, Ondřej Kuzník ondra@mistotebe.net wrote:
I'm not very familiar with Java LDAP/LDIF libraries but there is a list you might want to evaluate[1].
[0]. https://git.openldap.org/openldap/openldap/-/blob/master/clients/tools/ldaps... [1]. https://directory.apache.org/api/java-api.htm
There is some support in the Apache LDAP API[1] for conversion between LDAP and LDIF. I have not used it but you can contact their mailing list[2] for guidance.
— Shawn
[1](https://nightlies.apache.org/directory/api/1.0.2/apidocs/org/apache/director...) [2](https://lists.apache.org/list.html?api@directory.apache.org)
On Dec 13, 2024, at 9:38 AM, Shawn McKinney smckinney@symas.com wrote:
[1](https://nightlies.apache.org/directory/api/1.0.2/apidocs/org/apache/director...)
Use 2.x instead:
https://nightlies.apache.org/directory/api/2.1.7/apidocs/org/apache/director...
openldap-technical@openldap.org