"Syntax error in the input file Failed on line 1" when extending ldap directory structure

  • 7021042
  • 29-Jun-2017
  • 29-Jun-2017

Environment

NetIQ Privileged Account Manager 3.2

Situation

Schema extension fails with some syntax error.
When extending the LDAP Directory Schema for Active Directory (AD), using the provided schema file from the PAM Manager server (ad-schema-cv.ldif), the following error appears:
There is a syntax error in the input file
Failed on line 1.  The last token starts with '?'.

Resolution

Please follow the steps below to save the file with a Unicode encoding:

  1. Open the ad-schema-cv.ldif file in Notepad.
  2. Select File > Save As.
  3. Select Save as type and set to All Files
  4. Select Encoding drop-down to the left of Save, and select Unicode
  5. Enter in some new filename and select Save.
  6. Modify the command to use this new file and then execute:
    ldifde -i -u -f c:\ad-schema-cv-uni.ldif -s localhost:389 -j . -c "cn=Configuration,DC=X"
    Note: Please replace "c:\ad-schema-cv-unicode.ldif" with the proper file-path to the newly saved unicode file.

Cause

The LDIF file is not of a Unicode text format before the schema extension command is executed.

Status

Reported to Engineering

Additional Information

https://bugzilla.novell.com/show_bug.cgi?id=1046720

The following appears when executing the documented command to extend the schema:

C:\Users\Administrator> ldifde -i -u -f C:\ad-schema-cv.ldif -s localhost:389 -j . -c "cn=Configuration,DC=X"
Connecting to "serverDNSAddress"
Logging in as current user using SSPI
Importing directory from file "C:\ad-schema-cv.ldif"
Loading entries.
There is a syntax error in the input file
Failed on line 1.  The last token starts with '?'.
0 entries modified successfully.
An error has occurred in the program
No log files were written.  In order to generate a log file, please
specify the log file path via the -j option.