General discussion
July 27, 2001 at 08:42 AM
mr.mcse

Setting users passwords with Ldifde

by mr.mcse . Updated 24 years, 8 months ago

Microsoft Article ID: Q263991 talks about using ldifde to set user passwords. I have been attempting “The second way to modify the…” described in the article.

I plan on creating student accounts from a CSV file using csvde, this works fine, and then using ldifde to assign a password to the newly created student accounts, this produces errors.

The command I am running is this:
========================================
ldifde -i -f changepass.ldf -s servername -b admin_user kvcc.edu admin_password

The errors I receive while attempting this are:
========================================
Connecting to “mtec-2k”
Logging in as “admin_user” in domain
Importing directory from file “changepass.ldf
Loading entries.
There is a syntax error in the input file
Failed on token starting with ‘I’ on line 0 0 entries modified successfully.
An error has occurred in the program

the changepass.ldf file contains this:
======================================
dn: CN=Some User,OU=graphics,DC=servername,DC=kvcc,DC=edu
changetype: modify
replace: unicodePwd
unicodePwd::Im1pbmci

the password is enclosed in quotes and is base64 encoded.

encoded password = Im1pbmci
decoded password = “ming”

I am open to other methods toaccomplish this goal as well.

Thanks for your help.

This discussion is locked

All Comments