Grammar for LDIF format (LDAP Data Interchange Format)

Version 2

    We recently developed the need to parse a LDIF file. Since none of the grammar files supported this particular format we had to develop one on the fly.


    The grammar file provided allows for snapshots, audits and remediations for changes, omissions and additions.

    The expectation is that each line for a given section be correctly associated with the begining "dn" entry as follows.



    Here are the instructions for importing the grammar file to your BSA system.


    As the operating system administrator:

    Place the provided grammar file  ( in the scripts directory of your app server

    (Typical Windows )C:\Program Files\BMC Software\BladeLogic\NSH\scripts

    (Typical Linux) /opt/bmc/bladelogic/NSH/scripts  


    Open a command prompt

    Execute the following to obtain BSA session credentials for the command prompt: (where <profile> is the bsa login profile name and
    <password> is the password for BLAdmin or a user with equivalent access)


    blcred cred -acquire -profile <profile> -username BLAdmin -password <password>



    Verify that the following message was returned:

    Authentication succeeded: acquired session credential



    Execute the following command to load the grammar file into
    the BSA system for selection: (where <profile> is the bsa login profile
    name) Also make sure to provide the correct path to the scripts folder for your system.


    (this is all one line)  

    blcli -v <profile> ConfigFileGrammar createConfigFileGrammarOnFileServer "C:\Program Files\BMC Software\BladeLogic\NSH\scripts" "" "LDIF" "LDIF" "Grammar for LDIF structures"


    You should verify that you get a return message like the following indicating that the grammar has been imported correctly and assigned the next available key number:




    From this point is it nothing more than adding the configuration file in Config object dictionary (667 bytes) View  Download