|
|
|
date: 15 Apr 2006 18:18:06 -0700,
group: microsoft.public.exchange2000.admin
back
ldifde syntax - mail-enabling an existing AD user
I'm attempting to use LDIFDE to mail-enable users. We're running
Exchange 2000 and AD 2000/2003.
Unfortunately I'm having some syntax issues and can't make this work.
I found the following info on creating a user from scratch with mail:
http://www.serverwatch.com/tutorials/article.php/2199331
However, we have a mandatory password policy in place, so AD won't let
me create a user with no password, and LDIFDE doesn't have a password
parameter for new account creation.
So, I can create an account with a password via "dsadd", and I'm hoping
to be able to modify the account via ldifde to mail-enable it. But I'm
getting some errors while doing it.
After reviewing the following KB article -
http://support.microsoft.com/kb/313823 - my script is below:
----------------------
dn: CN=Joe Blow,CN=Users,DC=company,DC=com
changetype: modify
add: mailNickname
mailNickname: JoeBl
add: homeMDB
homeMDB:
CN=Mailbox Store (PIGEON),CN=First Storage
Group,CN=InformationStore,CN=PIGEON
,CN=Servers,CN=CO,CN=Administrative Groups,CN=Company,CN=Microsoft
Excha
nge,CN=Services,CN=Configuration,DC=kitchencraft,DC=com
add: mDBUseDefaults
mDBUseDefaults: TRUE
add: proxyAddresses
proxyAddresses: X400:c=CA;a= ;p=Company;o=COMPANY;s=Blow;g=Joe;
proxyAddresses: SMTP:Joe.Blow@company.com
-
------------------------------
However, I'm getting the following errors:
"Importing directory from file "useradd2.txt"
Loading entries.
Extraneous attribute name in a mod_spec list
Failed on token starting with '-' on line 0
0 entries modified successfully.
An error has occurred in the program"
If I add another blank line before the hyphen, I get the following
errors:
"Importing directory from file "useradd2.txt"
Loading entries.
There is a syntax error in the input file
Failed on token starting with 'S' on line 0
0 entries modified successfully.
An error has occurred in the program"
All ideas appreciated.
Thanks,
Glenn
date: 15 Apr 2006 18:18:06 -0700
author: unknown
Re: ldifde syntax - mail-enabling an existing AD user
are you trying to mail enable a user or mailbox enable a user? a mail
enabled user doesn't have a homeMDB.
Is there a blank line after the hyphen?
wrote in message
news:1145150286.061030.16130@t31g2000cwb.googlegroups.com...
> I'm attempting to use LDIFDE to mail-enable users. We're running
> Exchange 2000 and AD 2000/2003.
>
> Unfortunately I'm having some syntax issues and can't make this work.
>
> I found the following info on creating a user from scratch with mail:
> http://www.serverwatch.com/tutorials/article.php/2199331
>
> However, we have a mandatory password policy in place, so AD won't let
> me create a user with no password, and LDIFDE doesn't have a password
> parameter for new account creation.
>
> So, I can create an account with a password via "dsadd", and I'm hoping
> to be able to modify the account via ldifde to mail-enable it. But I'm
> getting some errors while doing it.
>
> After reviewing the following KB article -
> http://support.microsoft.com/kb/313823 - my script is below:
>
> ----------------------
> dn: CN=Joe Blow,CN=Users,DC=company,DC=com
> changetype: modify
> add: mailNickname
> mailNickname: JoeBl
> add: homeMDB
> homeMDB:
> CN=Mailbox Store (PIGEON),CN=First Storage
> Group,CN=InformationStore,CN=PIGEON
> ,CN=Servers,CN=CO,CN=Administrative Groups,CN=Company,CN=Microsoft
> Excha
> nge,CN=Services,CN=Configuration,DC=kitchencraft,DC=com
> add: mDBUseDefaults
> mDBUseDefaults: TRUE
> add: proxyAddresses
> proxyAddresses: X400:c=CA;a= ;p=Company;o=COMPANY;s=Blow;g=Joe;
> proxyAddresses: SMTP:Joe.Blow@company.com
> -
>
> ------------------------------
>
> However, I'm getting the following errors:
>
> "Importing directory from file "useradd2.txt"
> Loading entries.
> Extraneous attribute name in a mod_spec list
> Failed on token starting with '-' on line 0
> 0 entries modified successfully.
> An error has occurred in the program"
>
> If I add another blank line before the hyphen, I get the following
> errors:
>
> "Importing directory from file "useradd2.txt"
> Loading entries.
> There is a syntax error in the input file
> Failed on token starting with 'S' on line 0
> 0 entries modified successfully.
> An error has occurred in the program"
>
> All ideas appreciated.
>
> Thanks,
> Glenn
>
date: Tue, 16 May 2006 00:44:58 -0500
author: andy webb
|
|