NDS Exporter

A Perl script to export selected NDS attribute for any kind of NDS objects

Purpose:

  • We already have released a Windows graphical application for exporting NDS properties to text file see here, but we needed a similar application to be run under Linux for administrative purposes.
  • This application is not as versatile as the graphical version, but suited our needs and can be distributed under GPL, which is it is not the case of the Windows version ( using Netware Developper's Delphi libraries for Netware/Windows and some Delphi components not available with the free Kylix 3 Open Edition).
  • In particular there is no sub-context searches (TODO).

    Requirements:

    Usage:

  • Edit the script to change :
    $DEFTREE="INSA_ROOT"; <-- change this to your tree name
    $DEFCONTEXT="[root]"; <-- set it to your default context
    usage: ndsexporter.pl [options]
    -h  Print this help text
    -c  class of objects to list (default "user")
    -A  attribute_list  One NDS attribute or a quoted & comma separated list (default "cn")
    -T  treename
    -C  context        Default= root
    -f  character      separator between attributes (default= :)
    -m  character      separator between values of multi-valued attributes (default = space)
    -v  number         Context DCK Flags (default 4)
    -n  number         Limit ouput to n lines (testing)
    

    Some real life examples:
    ./ndsexporter.pl -C PC -c "group" get the list of NDS groups in context PC
    ./ndsexporter.pl -C PC -c "volume" -A "cn,Host Server,Host Resource Name" get the selected properties for volumes in context PC
    ./ndsexporter.pl -C PC -c "organizational unit" -A "ou" get the list of NDS OU in context PC
    ./ndsexporter.pl -C PC -c "group" -A "cn,member" -m ":" |grep 2a get all members of group 2a.PC separated with a :

    Download:

    History:

            1.00 2002   June 06             Patrick Pollet 
                    the program is an Perl script wrapper around ncplist to get a list of objects of a NDS class
                   and ncpreadprops to retrieve a liste of NDS properties for each found object
    
    TODO:


    Vous êtes notre Counter (Security) eme visiteur