David,
Have you tried using the -l switch with ldifde and then indicating only the
attributes that you want?
For example, you could use the following at a command prompt: ldifde -f
c:\admininfo\ldf\students.ldf -s yourserver01.yourdomain.com -t 389 -d
"OU=Students,DC=yourdomain,DC=Com" -p Subtree -r "(objectClass=user)" -l
"DN,sAMAccountName"
The output would be a simply .ldf file located called 'students.ldf' located
in the c:\admininfo\ldf folder which would contain only two attributes:
their DN and sAMAccountname. I am usually in the habit of including the -s
switch command as well as the -t switch command ( the servername and the
port number ), but these are optional. The -d switch simply tells ldifde
where to look ( defaults to DC=yourdomain,DC-Com ) and the -r switch is the
filter. The -l switch tells ldifde to simply include the listed attributes
in the output. Shoot, my might even want to leave off the "DN" so that your
output file includes ONLY the sAMAccountName.
HTH,
Cary