Giter VIP home page Giter VIP logo

csv2ldif's Introduction

Create ldif from csv and the LDIF can be used with the basic OpenLDAP.

Default password

Value: P@ss1W0Rd!

Help

Usage: index.js <inputCsvFile.csv> [options]

Options:
  --help            Show help                                          [boolean]
  --version         Show version number                                [boolean]
  -o, --output      Output file                              [default: "output"]
  --bdn, --baseDN   Base dn (i.e.: dc=contoso,dc=com)
                                                  [default: "dc=contoso,dc=com"]
  -u, --users       Users OU before the base dn. (i.e.: ou=users)
                                                           [default: "ou=users"]
  -g, --groups      Groups OU before the base dn. (i.e.: ou=groups)
                                                          [default: "ou=groups"]
  --hp, --password  Default hashed password for the users. If not set,
                    P@ss1W0Rd! will be used
                                  [default: "{SHA}RKkNn7+KoG94IN3x/B2jnm/4DS0="]
  -s, --seed        The see used to generate the gidNumber and uidNumber.
                                                                [default: 70000]

Examples:
  index.js -o outputBaseName  Output the results from the csv into the
                              'outputBaseName' (01-outputBaseName-groups.ldif &
                              02-outputBaseName-users.ldif) files

Example

Output

File Desc.
01-filePrefix-groups.ldif Generation for the groups
02-filePrefix-users.ldif Generation for the user and also do the membership with the groups

Example: Once imported

image

Stuff to look

csv2ldif's People

Contributors

nordes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.