Import to AD from...

  • Thread starter Thread starter mark
  • Start date Start date
M

mark

hello,

i am looking for some info on importing/populating user
fields (dept, phone#, etc) into Active Directory 2000 from
a text file. currently we have only the basic fields like
username, alias, email address. etc. the information for
the other fields are resident in our UNIX host and can be
exported into a flat file. can the info from that file be
exported into A.D. using ldifde.exe? or preferrably, is
there a tool, 3rd party or otherwise, that i can use for
this.

thanks in advance...
 
If you like scripting, use the ADSI interface. Command line tools are nice,
but you cannot add some 'IF' ... in the code.

Here is an example, but there are a lot of other on Microsoft web site

Dim strTargetOU


wscript.echo strTargetOU
wscript.echo
wscript.echo "Changing Display names of users in " & strTargetOU

Set oTargetOU = GetObject("LDAP://" & strTargetOU)

oTargetOU.Filter = Array("user")

For each usr in oTargetOU

if instr(usr.SamAccountName, "$") = 0 then
vLast = usr.get("Sn")
vFirst = usr.get("GivenName")
vFullname = vLast + ", " + vFirst
usr.put "displayName", vFullName
usr.setinfo
wscript.echo usr.displayName
end if
Next


I hope this helps...
 
thx for the response...actually i do not have the time to
learn scripting....especially just to admin a directory. i
was wondering if there was a GUI type tool to use for
this. or an easier way outside of having to learn
programming. thanks
 
Short and simple the answer would be no, besides using the user properties
in AD users and computers.

About the closest thing that I could think of would be if the user accounts
were already created and you just wanted to add additional attributes you
should be able to export the user accounts with Ldifde add the appropriate
attributes and values then import the file back into AD.

The big hurdle in all of this is telling AD what to do with all the info.
It wont know if is supposed to be a new user, or an additional attribute.

Im not that faimilar with Unix but I did find this link that might be a good
starting point.
http://www.microsoft.com/windows2000/sfn/intrpmigsol.asp
 
Mark,

I thought that I sent you ADModify?

This would be a great help for you.

Cary
 
Back
Top