You are on page 1of 2

LDIFDE CSVDE Both

 Uses comma-delimited text file (CSV)  Import and export Active Directory
 Draft Internet standard for LDAP  First line defines attributes Objects
systems  Data lines must have corresponding  Export is default
 Block-based format attributes  Import with “-i”
 Multiple operations separated by  Cannot modify or move existing  Cannot import a user password (this
blank line objects means that all user accounts created
 Can modify or move existing objects will be disabled until password is set
and account is enabled)

LDIFDE Export Example:

ldifde -f c:\Exportuser.ldf -s dcnugget1 -p subtree -r "(&(objectCategory=person)(objectClass=User)(givenname=*))" -l


"cn,givenName,objectclass,samAccountName,pwd"

(One line)

LDIFDE Import Example:

dn: CN=Sal,OU=Phoenix,OU=arizona,DC=nuggetlab,dc=com

objectclass: User

SamAccountName: Sal

userAccountControl: 514

UserPrincipalName: sal@nuggetlab.com

(Separate lines)

CSVDE Export Example


csvde -f c:\scripts\csvusr.csv -p subtree -r "(&(objectCategory=person)(objectClass=User)(givenname=*))" -l
"cn,givenName,objectclass,samAccountName"

CSVDE Import Example

Csvde –I –f c:\scripts\csvuser.csv

Where the csvuser.csv file is a populated comma-delimited value file

You might also like