Problem:
Customer seeing 'ERROR reading resource file' when installing AD/LDS on a new PC install.
c:\\ADLDS>es-ldap-setup
es-ldap-setup: Initial LDAP security setup for Enterprise Server
Version 1.2.6
Copyright 2006-2008 Micro Focus (IP) Limited.  All rights reserved.
Run "es-ldap-setup /?" for usage information.
Press any key to continue . . .
Enter the information for the ADAM administrative user.
This user account will be automatically created if necessary.
Enter "-" to use your current logon credentials.
Enter LDAP user name: -
Enter LDAP partition DN [CN=Micro Focus,CN=Program Data,DC=local]:
Enter LDAP host:port [localhost:389]:
*** Checking password operations state...
ERROR reading resource file. Exiting.
*** Enabling password operations over unencrypted connections...
Press any key to continue . . .
ERROR reading resource file. Exiting.
*** Importing ES user class definitions...
Press any key to continue . . .
(setup) mfds -l "DC=X" 1 mfds-schema.ldf  1>nul
Processing -l option...
(setup) ldifde -i  -f mfds-schema.ldf -s localhost:389 -k -j . -c "DC=X" #schema
NamingContext
................................................................................
................................................................................
..............................
*** Creating ES containers
Press any key to continue . . .
(setup) ldifde -i  -f "mf-containers.ldf" -s localhost:389 -k -j . -c "DC=X" "CN
=Micro Focus,CN=Program Data,DC=local"
......
*** Adding MFReader as an ADAM Reader...
    Using container CN=ADAM Users,CN=Micro Focus,CN=Program Data,DC=local
Press any key to continue . . .
Creating temporary LDIF file C:\\Users\\blommel\\AppData\\Local\\Temp\\_tmp.ldf
Processing temporary LDIF file
.Removing temporary LDIF file
*** Importing users from CAS RDO file...
Press any key to continue . . .
Opened RDO file (in C:\\Program Files (x86)\\Micro Focus\\Studio Enterprise Edition
6.0\\Base\\files\\sys)
Name            Password OperID Class   Priority Timeout GroupPfx Description
CICSUSER                 SYS    000     255          0
FSVIEW                   SYS    000     255          0
SYSAD           SYSAD    SYS    000     255          0
No "mfuser" record found in RDO file; adding default...
No "JESUSER" record found in RDO file; adding default...
No "IMSUSER" record found in RDO file; adding default...
Added 6 users to AD
*** Extracting users from MFDS repository...
Press any key to continue . . .
(setup) mfds -e "CN=Micro Focus,CN=Program Data,DC=local" "CN=Enterprise Server
Users" "CN=Enterprise Server User Groups" "CN=Enterprise Server Resources" 1 mfd
s_users.ldf  1>nul
Processing -e option...
*** Importing MFDS users into ADAM...
Press any key to continue . . .
............................
*** Importing MTO resource definitions into ADAM...
Press any key to continue . . .
................................................................................
................................................................................
.........................
*** Disabling password operations over unencrypted connections...
Press any key to continue . . .
ERROR reading resource file. Exiting.
.
.
-----------------------------------------------------------------------
Setup results:
   8 tasks succeeded
   1 tasks reported an error
   Failing tasks were:  Create-MFReader
-----------------------------------------------------------------------
Resolution:
Reviewing the two places, the reading resource error occured when it was trying to run dsmgmt.exe but it was not installed on customer's machine.
The RSAT was installed before ADLDS so the tools were not installed.
Here is the download link for RSAT:
Remote Server Administration Tools for Windows 7 with Service Pack 1 (SP1)
If your machine is 64-bit, install the x64 and if 32-bit, install x86 version.
Customer had to uninstall Update for Microsoft Windows (KB958830) and reinstall it now that AD LDS was installed.
COPY FILES FROM BIN DIRECTORY
 
For 32-bit machines
Start Net Express 32-Bit command prompt run as administrator
For 64-Bit machines
Start Net Express 32-Bit command prompt run as administrator
set TEMP=C:\\ADLDS 
Create a new directory called C:\\ADLDS and copy the es-ldap-setup.cmd and the *.ldf files from $COBDIR\\base\\bin to it. 
From the ADLDS directory, run es-ldap-setup entering your userid and password and the localhost:port if not using 389 
 
RUN SCRIPT FROM THE ADLDS DIRECTORY
C:\\ADLDS>es-ldap-setup 
es-ldap-setup: Initial LDAP security setup for Enterprise Server 
Version 1.2.6 
Copyright 2006-2008 Micro Focus (IP) Limited.  All rights reserved. 
Run "es-ldap-setup /?" for usage information. 
Press any key to continue . . . 
 
Enter the information for the ADAM administrative user. 
This user account will be automatically created if necessary. 
Enter "-" to use your current logon credentials. 
Enter LDAP user name: cwa 
Enter LDAP password [password]: Xxxxxxx03 
Enter LDAP partition DN [CN=Micro Focus,CN=Program Data,DC=local]: 
Enter LDAP host:port [localhost:389]: 
*** Checking password operations state... 
 
*** Enabling password operations over unencrypted connections... 
Press any key to continue . . . 
dsmgmt: ds behavior 
AD DS/LDS behavior: connections 
server connections: set creds CORPDOM cwa Xxxxxxx03 
server connections: connect to server localhost:389 
Binding to localhost:389 as CORPDOM\\cwa... 
Connected to localhost:389 as CORPDOM\\cwa. 
server connections: quit 
AD DS/LDS behavior: allow passwd op on unsecured connection 
Successfully modified AD DS/LDS Behavior to reset password over unsecured networ 
k. 
AD DS/LDS behavior: quit 
dsmgmt: quit 
 
*** Importing ES user class definitions... 
Press any key to continue . . . 
 
(setup) mfds -l "DC=X" 1 mfds-schema.ldf  1>nul 
Processing -l option... 
 
(setup) ldifde -i -b cwa CORPDOM Xxxxxxxx03 -f mfds-schema.ldf -s localhost:389 -k 
 -j . -c "DC=X" #schemaNamingContext 
Connecting to "localhost:389" 
Logging in as "cwa" in domain "CORPDOM" using SSPI 
Importing directory from file "mfds-schema.ldf" 
Loading entries................................................................. 
................................................................................ 
............................................. 
189 entries modified successfully. 
 
The command has completed successfully 
 
*** Creating ES containers 
Press any key to continue . . . 
 
(setup) ldifde -i -b cwa CORPDOM Xxxxxxx03 -f "mf-containers.ldf" -s localhost:38 
9 -k -j . -c "DC=X" "CN=Micro Focus,CN=Program Data,DC=local" 
Connecting to "localhost:389" 
Logging in as "cwa" in domain "CORPDOM" using SSPI 
Importing directory from file "mf-containers.ldf" 
Loading entries...... 
5 entries modified successfully. 
 
The command has completed successfully 
 
*** Adding MFReader as an ADAM Reader... 
    Using container CN=ADAM Users,CN=Micro Focus,CN=Program Data,DC=local 
Press any key to continue . . . 
Creating temporary LDIF file C:\\ADLDS\\_tmp.ldf 
Processing temporary LDIF file 
Press any key to continue . . . 
Connecting to "localhost:389" 
Logging in as "cwa" in domain "CORPDOM" using SSPI 
Importing directory from file "C:\\ADLDS\\_tmp.ldf" 
Loading entries... 
2 entries modified successfully. 
 
The command has completed successfully 
Removing temporary LDIF file 
 
*** Adding cwa as an ADAM Administrator... 
    Using container CN=ADAM Users,CN=Micro Focus,CN=Program Data,DC=local 
    Setting password to Xxxxxxxx03 
Press any key to continue . . . 
Creating temporary LDIF file C:\\ADLDS\\_tmp.ldf 
Processing temporary LDIF file 
Connecting to "localhost:389" 
Logging in as "cwa" in domain "CORPDOM" using SSPI 
Importing directory from file "C:\\ADLDS\\_tmp.ldf" 
Loading entries... 
2 entries modified successfully. 
 
The command has completed successfully 
Removing temporary LDIF file 
 
*** Importing users from CAS RDO file... 
Press any key to continue . . . 
Opened RDO file (in C:\\Program Files (x86)\\Micro Focus\\Studio Enterprise Edition 
 6.0\\Base\\files\\sys) 
 
Name            Password OperID Class   Priority Timeout GroupPfx Description 
CICSUSER                 SYS    000     255          0 
FSVIEW                   SYS    000     255          0 
SYSAD           SYSAD    SYS    000     255          0 
 
No "mfuser" record found in RDO file; adding default... 
 
No "JESUSER" record found in RDO file; adding default... 
 
No "IMSUSER" record found in RDO file; adding default... 
 
Added 6 users to AD 
 
*** Extracting users from MFDS repository... 
Press any key to continue . . . 
 
(setup) mfds -e "CN=Micro Focus,CN=Program Data,DC=local" "CN=Enterprise Server 
Users" "CN=Enterprise Server User Groups" "CN=Enterprise Server Resources" 1 mfd 
s_users.ldf  1>nul 
Processing -e option... 
 
*** Importing MFDS users into ADAM... 
Press any key to continue . . . 
Connecting to "localhost:389" 
Logging in as "cwa" in domain "CORPDOM" using SSPI 
Importing directory from file "mfds_users.ldf" 
Loading entries............................. 
27 entries modified successfully. 
 
The command has completed successfully 
 
*** Importing MTO resource definitions into ADAM... 
Press any key to continue . . . 
Connecting to "localhost:389" 
Logging in as "cwa" in domain "CORPDOM" using SSPI 
Importing directory from file "es_default_ldap.ldf" 
Loading entries................................................................. 
................................................................................ 
........................................ 
179 entries modified successfully. 
 
The command has completed successfully 
 
*** Disabling password operations over unencrypted connections... 
Press any key to continue . . . 
dsmgmt: ds behavior 
AD DS/LDS behavior: connections 
server connections: set creds CORPDOM cwa Xxxxxxx03 
server connections: connect to server localhost:389 
Binding to localhost:389 as CORPDOM\\cwa... 
Connected to localhost:389 as CORPDOM\\cwa. 
server connections: quit 
AD DS/LDS behavior: allow passwd op on unsecured connection 
Successfully modified AD DS/LDS Behavior to reset password over unsecured networ 
k. 
AD DS/LDS behavior: quit 
dsmgmt: quit 
. 
. 
----------------------------------------------------------------------- 
Setup results: 
   10 tasks succeeded 
   0 tasks reported an error 
-----------------------------------------------------------------------
#ES-ldap-setup
#ERRORreadingresourcefile

