Hello Erik,
For this type of processing, the AD can be attacked directly with LDAP functions as Robert points out.
These functions are available in RPG IV and they work fine.
The first difficulty is to have the prototypes of these functions. You can find them here (by Scott Klement).
The second is, depending on what you want to do, to manage the many nested loops and pointers in quantity.
What you ask for is still quite simple because it is a question of making a connection to check if the AD account / password pair is correct. A ldap_init followed by a ldap_simple_bind_s should be enough. These are two very simple functions.
Then you will finish with a ldap_unbind to properly close the connection.
------------------------------
Dominique Gayte
------------------------------
Original Message:
Sent: Thu April 13, 2023 03:50 PM
From: Erik Aasland
Subject: AD lookup from application
We are going to implement SSO very soon for our IBMi's.
But we have an application for insurances where we today have password check inside the application to/from the userprofile when payments are made.
We want to use AD for this in the future ad as we are going to use sso/kerberos.
Our insurance system is an RPG from the start. But other modern language is used as well.
Is there an api for password check from AD? or any another solution?
------------------------------
Erik Aasland
IBMi administrator
Fremtind Insurance
------------------------------