THIS CODE WORKS against LDAP
THIS CODE FAILS against Active Directory (windows box)
*======================================================================
* Procedure: DSRV_Connect
*
* Description: DSRV Connect Procedure - The purpose of this procedure * is to establish a connection to the DirectoryServices server.
*
*====================================================================== P DSRV_Connect B Export
D DSRV_Connect PI LikeDS(DSRV_Parms)
D InpDSRV_Parms LikeDS(DSRV_Parms)
D DSRV_PTR S *
D rtnVal S LIKE(RtnSuccess)
D Wrk_Connector DS LikeDS(DSRV_Connector)
/Free
// Attempt the call to DSRV Open aka: ldap_init
DSRV_PTR = ldap_init(InpDSRV_Parms.Server:InpDSRV_Parms.PortNumber);
// Attempt the call to ldap_search
initialRtnVal =
ldap_search_st(DSRVID:Base:Scope:Filter
:%addr(AttrVal):AttrsOnly:%addr(Timeout):DSRV_Message);
*===================================================================== * Procedure: doActiveDir
*
* Description: doActiveDir Procedure - The purpose of this procedure
* is to provide a method that performs an AD operation
*====================================================================
P doActiveDir B
D PI LIKE(RtnSuccess)
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.