The passwd and shadow files to be imported are copied in a folder, together with the schema.ini file
The script folder looks like this:
Run wscript "<path>\passwd-shadow-2-directory.js" "D:\temp\ad\shadow-ad"
Alternatively, make a shortcut with the first command-line parameter pointing to the shadow-passwd folder.
The script detects the naming context (if not, pass it as the second parameter).
The script performs a join operation on the files and prompts to update à jour Active Directory.
The script asks for confirmation when about to overwrite existing data.
Result.
The passwd and clear files to be imported are copied to a folder, together with schema.ini. The clear file has two fields per entry (ie line) : the login and clear-text password fields separed by ':'. For example :
bbou:ldlsps
bbou2:kkfde
bbou3:kjgun
bbou4:hdjdi
bbou5:jdjek
The passwd conforms to the standard format with 'x' in the password field (2nd field).
The password has been hashed by the script.
This requires the
unixcrypt.dll dll to be regsitered against the operating system.
|
Run wscript "<path>\read-directory.js" for confirmation.