ldifde

L

Leon Thomas

Can ldifde be use to export production Active directory
users to a test Active Directory? How could I also create
mailbox for these users?
 
M

Matt

ldifde -f L:\Exportuser.ldf -s server -d "ou=Domain
Users,dc=domain,dc=int" -p subtree -r "(&
(objectCategory=person)(objectClass=User))"

that command should for work exporting. change the ou and
server
Creating a mailbox doesn't sound feasible at the time of
import
 
S

Simon Geary

Don't forget that there are certain attributes that ldifde can export
without trouble but cannot import. Using ldifde to do the export and import
will not give you an exact copy of the user account. For moving users to a
test domain I would try a good old fashioned backup and restore.
Once you have imported\restored the users into the test domain you can run
the Exchange tasks wizard to mailbox enable all the users in one go.
 
C

Cary Shultz [A.D. MVP]

Matt,

I might think about adding the -l switch and then designating what
attributes to bring to the .ldf file. That way there will not be a whole
bunch of attributes that ldifde will balk at importing ( as Simon
suggested ).

So, the file could look something like this:

L:\>ldifde -m -f users.ldf -s servername.domain.com -t 389 -d
"DC=domain,DC=com" -p subtree -r
"(&(objectCategory=person)(objectClass=user))" -l
"DN,objectClass,userAccountControl,sAMAccountName,displayName,givenName,sn,c
ompany,streetAddress,l,st,postalCode,c,co,
countryCode,physicalDeliveryOfficename,telephoneNumber"

There may be additional attributes that you need to include to this list and
there may be attributes that you do not need from the above. You might also
want to include the -m switch.

If you needed simply one OU or a couple of OUs then you would simply change
the -d switch to include that 'path' ( -d "OU=workers,DC=domain,DC=com" ).

As to creating the mailboxes, I find that it can be a bit more complicated
when using ldifde to do this. It is completely possible to use ldifde to do
this. However, it might be easier to simply go to the container or OU in
which you have user account objects, select them all, right click, select
Exchange Tasks and create the mailboxes in one fell swoop.

HTH,

Cary
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top