Written by

Question Will · Sep 30

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.

Product version: IRIS 2024.1
$ZV: IRIS for UNIX (Red Hat Enterprise Linux 8 for x86-64) 2024.1.1 (Build 347U) Thu Jul 18 2024 17:09:39 EDT [HealthConnect:7.2.0-2.m1]

Comments

Enrico Parisi · Oct 6

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

0
Will  Oct 6 to Enrico Parisi

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.

0
Alexey Maslov  Oct 6 to Will

You should write include directive as `Include %syLDAP` without ".inc" because ".inc" program file type is being added automatically.

0