Code Monkey home page Code Monkey logo

adhelper's Introduction

ADHelper

Step 1: Prepare the Data

  • It is likely helpful to have an import ID (student ID, employee ID, etc) to match with other data later.
  • Create a column for SAMAccount (concatenate existing columns).
  • Create a column for email address (concatenate SAMAccount with desired email suffix).
  • Remove unecessary columns.

Step 2: Sanitize User Input

Consider some examples of inputs that would be invalid or potentially undesirable for an email address:

Nick Name Last Name E-Mail Reason
Connor O'Brien ConnorO'[email protected] Apostrophe
Axel Garcia-Soto [email protected] Hyphen
Aaron De La Cruz Benavides AaronDe La Cruz [email protected] Spaces
SAMSON BRADDOCK [email protected] Capitalization
T.O. Redmond [email protected] Periods

Here are some potential fixes:

  • Use find and replace to search for and replace hyphens, apostrophes, and spaces with nothing.
  • Manually fix capitalization.
Nick Name Last Name E-Mail Fix
Connor OBrien [email protected] Delete apostrophe
Axel GarciaSoto [email protected] Delete hyphen
Aaron DeLaCruzBenavides [email protected] Delete spaces
Samson Braddock [email protected] Fix capitalization
TO Redmond [email protected] Delete periods

Step 3: Download the ADHelper Utility and Config File

Download and extract the zip file:
https://github.com/JamesWClark/ADHelper/blob/main/Release/ADHelper.zip?raw=true

Step 3: Export the Data

Export your data to CSV format, placing it in the same folder as the above zip.

Step 4: Run a Task

Run with the following tasks: creat_users or set_passwords

./ADHelper.exe -csv users.csv -xml config.xml -task create_users
./ADHelper.exe -csv users.csv -xml config.xml -task set_passwords

Appendix

The XML config looks like this:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <domain>student.rockhurst.int</domain>
  <distinguishedName>OU=2026,OU=Highly Managed,OU=Users,OU=Student.Greenlease,DC=student,DC=rockhurst,DC=int</distinguishedName>
  <csv>
	<headers>true</headers>
  </csv>
  <password>
	<generator>true</generator>
  </password>
</configuration>

Some info about each field follows...

  • domain - the active directory domain we are connecting to
  • distinguishedName - the name of the active directory org unit where users are to be created
  • csv/headers - true if the csv file has headers, false otherwise
  • password/generator - will create new passwords if set to true, set to false` if you want to use passwords from the csv file

adhelper's People

Contributors

jameswclark avatar

Watchers

James Cloos avatar  avatar  avatar

adhelper's Issues

Nickname and userID to output file

The output file has first name, not nick name; include both?
Also include the userID
Also add headers

Make sure the password set file doesn't have distracting output, too similar to the create account file

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.