Link to home
Start Free TrialLog in
Avatar of hmarkh
hmarkhFlag for United States of America

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:

C:\>ldifde -i -f c:\alt2.ldf -j c:\logs

Open in new window


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

Open in new window

-

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=Students,DC=School,DC=edu
Entry DN: CN=Test Student,OU=Class2016,OU=Students,DC=School,DC=edu
changetype: modify
Attribute 0) altRecipient:CN=Student Test,OU=Student.school.edu,OU=Contact OU,OU=Contacts,DC=School,DC=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!
Avatar of Jamie McKillop
Jamie McKillop
Flag of Canada image

Hello,

What version of Exchange are you using?

JJ
Avatar of hmarkh

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.
ASKER CERTIFIED SOLUTION
Avatar of Krzysztof Pytko
Krzysztof Pytko
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hmarkh

ASKER

Weird. Here's the output:

Z:\>dsquery user -name "Test Student"
"CN=Test Student,OU=Class2016,OU=Students,DC=school,DC=edu"

Open in new window


It looks the same. Lemme' play around a little more.
Avatar of hmarkh

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...