How to include %syLDAP.INC
Hi,
%SYS.LDAP - InterSystems IRIS Data Platform 2025.2 - including private class members states that
"abstract class %SYS.LDAP
Requires %syLDAP.INC to be included in your COS routine for some macro definitions."
How can I include %syLDAP.INC for the compilation of my code which uses %SYS.LDAP ? I need the definitions for the $$$LADPxxxx macros (such as $$$LDAPSUCCESS).
Thank you.
W.
Comments
In the very first line at the top of your class insert the line:
Include %syLDAP.INC
Edit to correct, as pointed out below, sorry!
Include %syLDAP
Enrico,
I tried that already and got
Compiling routine UHNuREST2.impl.1
ERROR: UHNuREST2.impl.cls
ERROR: UHNuREST2.impl.1(7) : MPP5635 : No include file '%syLDAP.INC'
Is that because %syLDAP.INC is not available in my HealthConnect version ? But I've seen posts from 2017 discussing LDAP authentication such as this one: https://community.intersystems.com/post/programatic-user-authentication…
W.
You should write include directive as `Include %syLDAP` without ".inc" because ".inc" program file type is being added automatically.