hmarkh
asked on
Can't add altRecipient using LDIFDE
Hello,
I will be forwarding email for many users for an upcoming project. The forward will point to a contact created for each user. Unfortunately, I am having a hard time adding altRecipient and then pointing it towards the appropriate contact.
Command:
Here is the test .ldf file:
Here is the error I get:
"Connecting to "server.school.edu"
Logging in as current user using SSPI
Importing directory from file "c:\alt2.ldf"
Loading entries
1: CN=Test Student,OU=Class2016,OU=St udents,DC= School,DC= edu
Entry DN: CN=Test Student,OU=Class2016,OU=St udents,DC= School,DC= edu
changetype: modify
Attribute 0) altRecipient:CN=Student Test,OU=Student.school.edu ,OU=Contac t OU,OU=Contacts,DC=School,D C=edu
Add error on entry starting on line 1: Constraint Violation
The server side error is: 0x20b5 The name reference is invalid.
The extended server error is:
000020B5: AtrErr: DSID-03152804, #1:
0: 000020B5: DSID-03152804, problem 1005 (CONSTRAINT_ATT_TYPE), data 0, Att 2007e (altRecipient)
0 entries modified successfully.
An error has occurred in the program"
Yes, the contact CN is "Student Test" and the account CN is "Test Student".
Yes, there is an escape character "-", but for some reason, EE won't show it.
I've played with it for quite a while and still got 'nuthin.
Any help is greatly appreciated!
I will be forwarding email for many users for an upcoming project. The forward will point to a contact created for each user. Unfortunately, I am having a hard time adding altRecipient and then pointing it towards the appropriate contact.
Command:
C:\>ldifde -i -f c:\alt2.ldf -j c:\logs
Here is the test .ldf file:
Dn: CN=Test Student,OU=Class2016,OU=Students,DC=School,DC=edu
changetype: modify
add: altRecipient
altRecipient: CN=Student Test,OU=Student.school.edu,OU=Contact OU,OU=Contacts,DC=School,DC=edu
-Here is the error I get:
"Connecting to "server.school.edu"
Logging in as current user using SSPI
Importing directory from file "c:\alt2.ldf"
Loading entries
1: CN=Test Student,OU=Class2016,OU=St
Entry DN: CN=Test Student,OU=Class2016,OU=St
changetype: modify
Attribute 0) altRecipient:CN=Student Test,OU=Student.school.edu
Add error on entry starting on line 1: Constraint Violation
The server side error is: 0x20b5 The name reference is invalid.
The extended server error is:
000020B5: AtrErr: DSID-03152804, #1:
0: 000020B5: DSID-03152804, problem 1005 (CONSTRAINT_ATT_TYPE), data 0, Att 2007e (altRecipient)
0 entries modified successfully.
An error has occurred in the program"
Yes, the contact CN is "Student Test" and the account CN is "Test Student".
Yes, there is an escape character "-", but for some reason, EE won't show it.
I've played with it for quite a while and still got 'nuthin.
Any help is greatly appreciated!
ASKER
Hi JJ,
We are using Exchange 2003.
We have current users who are already set up to forward to their contacts and I have checked the syntax of their altRecipient attribute vs. what I am using. It looks the same.
We are using Exchange 2003.
We have current users who are already set up to forward to their contacts and I have checked the syntax of their altRecipient attribute vs. what I am using. It looks the same.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Weird. Here's the output:
It looks the same. Lemme' play around a little more.
Z:\>dsquery user -name "Test Student"
"CN=Test Student,OU=Class2016,OU=Students,DC=school,DC=edu"
It looks the same. Lemme' play around a little more.
ASKER
Okay. I marked, copied, and pasted the Dn into the .ldf and I also removed a semi-colon I put at the end of the altRecipient string one attempt before I ran the dsquery.
It worked.
Since I just added the semi-colon, I'm going to say I must have had an odd character or something in the previous Dn (although it IS a text file...). Anyhow, that's what I'm calling it.
Now to replicate this 4000 times...
It worked.
Since I just added the semi-colon, I'm going to say I must have had an odd character or something in the previous Dn (although it IS a text file...). Anyhow, that's what I'm calling it.
Now to replicate this 4000 times...
What version of Exchange are you using?
JJ