Skip to content

Instantly share code, notes, and snippets.

View NicolasSchindler's full-sized avatar

Nicolas Schindler NicolasSchindler

View GitHub Profile
@NicolasSchindler
NicolasSchindler / README.md
Last active August 20, 2024 11:43
How to connect IBM i to LDAP Server

How to connect a LDAP Server to IBM i

In this Project i provide a simple example how to connect to a LDAP Server from IBM i. I added some Constants and Functions from the LDAP Headerfile provided by IBM, not all Functions are implemented in this example. The Serviceprogramm is written in Fixed Format RPGLE and uses the provided LDAP API written in C, which is included in the OS. The Documentation of the LDAP API can be found here

Thanks to @ScottKlement, who has published an example of a copybook on his site, which I have used as a guide. You can find his example here. Also thanks to @m1h43l for helping me with handling the null-terminated strings in the RPG Code.