Don't take anything I say as gospel. I mean that, I'm ropey around all this
stuff myself.
Cary's outline is excellent. And as Simon says, why would you want a new
attribute - can you not use an existing one?
LDIFDE will indeed create passwords for you. If you have a minimum password
length policy you must disable it (temporarily) while importing.
In your LDF file, include a blank line at the bottom.
I used Excel to convert lastname, firstname, student number and class into
everything I needed to populate all fields.
NCSV2LDF is a free download and converts CSV files into LDF quite nicely
(with a little tweaking).
ADSIedit (Support tools) lets you adit the AD structure, but LDIFDE is
better for adding one attribute. I wouldn't go marching around in my wellies
through ADSI if I were you.
be afraid, be very afraid.
Q305144 Values for userAccountControl
Q276382 What fields can and can't be imported
LDF Files:
here I'm channging the Account Options on a user account.
To modify an existing entry in AD (variation of this can create attribute
for you) import your own version of this file.
(Excluding the ****'s)
**************************************
dn: CN=Andrew Thompson,OU=HOL,OU=Manhattan,OU=Students,DC=University,DC=ie
changetype: modify
replace: userAccountControl
userAccountControl: 8389248
-
**************************************
I know this won't display properly but here's a sample of my own import
file. I wish someone had done this for me.
All OUs I created first manually.
(Excluding the ****'s)
********************************************
#This LDIF file was generated by the NCSV2LDF utility from Novell Consulting
version: 1
dn: CN=Stephen Simpson,OU=MM,OU=New York,OU=Students,DC=University,DC=ie
changetype: Add
accountExpires: 127700028000000000
streetAddress: FifthAvenue Avenue
codePage: 0
cn: Stephen Simpson
countryCode: 372
c: IE
department: Multimedia 2004
description: Students FifthAvenue 2004 MM2A
displayName: Stephen Simpson
givenName: Stephen
homeDirectory: \\DCServer1\Students$\SSimpson
homeDrive: H:
instanceType: 4
l: New York
distinguishedName: CN=Stephen Simpson,OU=MM,OU=New
York,OU=Students,DC=University,DC=ie
objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=University,DC=ie
objectClass: user
physicalDeliveryOfficeName: FifthAvenue
postalCode: Co. Dublin
name: Stephen Simpson
sAMAccountName: SSimpson
scriptPath: Students-FifthAvenue-logon.bat
st: Dublin
sn: Simpson
telephoneNumber: 1800COLLEGE
co: IRELAND
userAccountControl: 640
userPassword: 04002
userPrincipalName: (e-mail address removed)
wWWHomePage:
http://Students.University.ie/2004/SSimpson
********************************************