Ldifde %username% will not import as a users name

  • Thread starter Thread starter Daragh
  • Start date Start date
D

Daragh

Hi,

I am importing users into AD using Ldifde, when i use the
path \\server\share\%username%
it is importing the text %username% into the path rather
the the actual users name.
I have tried a few different syntaxs without any luck,
if anybody out there could help me on this it would be
much appreciated.

Regards,
Daragh
 
Daragh,

If you mean your trying to set the profile location using %username% in the
input file for ldifde, then this wont work. You can use %username% in the
GUI because there is inteligence behind it that replaces it with the
username, but this doesnt happen when you create users via LDIFDE. Instead,
you need to specify the full path and userid explicitly.

If i've got your problem wrong, post the input file your using (without the
domain name etc!) so we can have a look.
 
Hi Jim,

Thanks for your reply, you have the problem right. I am
trying to import each user using %username% in the ldifde
file, just to try and cut down in admin work while
creating the file. If it cant be done this way, is there
any other way to automate the username in Active directory
without putting in users samaccountname individually in
the ldifde file? I cant use a csv file as i am modifying
current accounts that have no homepath as we are migrating
from a Netware file structure.


Cheers,
Daragh
 
Sadly, i dont know of a way to create the LDIF file automatically, instead
you'd have to create a script that writes it for you. Basically, you could
use LDIFDE to dump your user database to file, and then have a script that
reads the output and writes a new 'modify' LDIF script to set the profile
attribute. It might actually be easier to use VBSCRIPT and ADSI to do this,
working directly to AD rather than via LDAP.

Sorry i can't be of anymore help,
Jim
--
--
Jim Watts,
Technology Consultant
Directories, Authentication and Border Security
Information Systems Services
University of Southampton
 
Back
Top