Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1412
  • Last Modified:

ldifde

Hi,

I have hundred users to add in my active directory. I am using ldifde.exe to create the accounts.
It works fine except one thing :
If I create an account manually and specify the home directory in the Profil tab, the directory is
automatically created in the shared folder (with the correct authorizations).
If I create an account using ldifde the home directory is not created !!!

Just in case I also did a test using csvde... Same problem !

Here is a copy of my ldif file :
dn: CN=user2,OU=Enseignants,OU=Utilisateurs,DC=mysite,DC=fr
changetype: add
objectClass: user
accountExpires: 0
cn: user2
countryCode: 0
givenName: user2
distinguishedName: CN=user2,OU=Enseignants,OU=Utilisateurs,DC=mysite,DC=fr
instanceType: 4
displayName: user2
name: user2
userAccountControl: 520
unicodePwd::IgBhAGEAYQBhAGEAYQBhACIA
homeDirectory: \\srv\Users\enseignants\user2
homeDrive: U:
profilePath: \\srv\profils$\user2\profile
sAMAccountName: user2
userPrincipalName: user2@mysite.fr
objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=mysite,DC=fr

Any tip ?  Is it possible? I forgot something ?
I don't really want to have another script just to create folders

Thanks,
WW
0
wwalschaerts
Asked:
wwalschaerts
  • 2
1 Solution
 
oBdACommented:
You'll have to script that.
The functionality to create the home folder is built-in into the ADUC console (only!), it's nothing that somehow inherent to creating a user in AD.
0
 
dhoffman_98Commented:
LDIFDE and CSVDE will not automatically create these folders.

If you are using the ADUC Console, it makes the appropriate calls to the host server to create the files and appropriate permissions, but LDIFDE can not do this.

Here is a link to a thread that mentions this. Close to the bottom of the thread, my comments are confirmed:
http://social.technet.microsoft.com/Forums/en-US/winserverfiles/thread/c196f214-e383-4430-95ba-3aa3c918af59/
0
 
wwalschaertsAuthor Commented:
Sorry for the delay... I was looking for a way without script  :-(
Well, this is not really the solution but as there is no solution...
WW
0
 
dhoffman_98Commented:
Thanks ;(
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now