7021042: “Syntax error in the input file Failed on line 1” when extending ldap directory structure

This document (7021042) is provided subject to the disclaimer at the end of this document.


NetIQ Privileged Account Manager 3.2


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 ‘?’.


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.


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


Reported to Engineering

Additional Information


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

C:UsersAdministrator> 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.


This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented “AS IS” WITHOUT WARRANTY OF ANY KIND.


Leave a Reply