Usage Note 30425: "ERROR: Invalid handle specified" occurs when running the sample program IMPORTAD.SAS
The Importing Identities from Active Directory sample program
IMPORTAD.SAS uses custom LDAP search filters to retrieve persons and
groups from an Active Directory server. These filters select the
entries that will be processed by the program. In some cases you might
code a valid filter that does not qualify any records.
If a valid filter returns zero records, the LDAPS_FREE call will return
this error:
ERROR: Invalid handle specified.
If you anticipate that a filter will return an empty set of attributes, making the
following change to the sample code will enable the program to run
successfully. Note that the code will need to be changed for both
Section 3 (Extract User Information from Active Directory) and Section
4 (Extract Group Information from Active Directory).
Change this code:
/* free search resources */
call ldaps_free(shandle,rc);
if rc NE 0 then do;
msg = sysmsg();
put msg;
end;
to the following code:
/* free search resources */
if shandle NE 0 then do;
call ldaps_free(shandle,rc);
if rc NE 0 then do;
msg = sysmsg();
put msg;
end;
end;
Operating System and Release Information
SAS System | SAS Integration Technologies | Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
HP-UX IPF | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Linux | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Linux on Itanium | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
OpenVMS Alpha | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Tru64 UNIX | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Date Modified: | 2008-01-17 16:23:41 |
Date Created: | 2007-10-26 13:56:56 |