From: <jon...@or...> - 2000-11-13 18:53:16
|
Your problem here is that you are not adding all of the objects required by the "Remote-Address" object class, not which tool set you are using to create them. Here is what I have used in the past for Exchange 5.5: $LDAPConatiner = "cn=Recipients, ou=TEST SITE, o=Test ORG"; $testfile{$login}{"cn"} = "$lname, $fname"; $testfile{$login}{"sn"} = "$lname"; $testfile{$login}{"givenName"} = "$fname"; $testfile{$login}{"physicalDeliveryOfficeName"} = "$office"; $testfile{$login}{"telephoneNumber"} = "$phone"; $testfile{$login}{"department"} = "$department"; $testfile{$login}{"dn"} = "cn\=\"$lname, $fname\"\,$LDAPContainer"; $testfile{$login}{"rdn"} = "$lname, $fname"; # Keep uid unique so we don't break web access for exchange. $testfile{$login}{"uid"} = "test-$login"; $testfile{$login}{"Target-Address"} = "SMTP:$login\@test.com"; $testfile{$login}{"objectClass"} = ["Top","person", "Remote-Address"]; $testfile{$login}{"mail"} = "$login\@test.com"; $testfile{$login}{"MAPI-Recipient"} = "FALSE"; $testfile{$login}{"textEncodedORaddress"} = "c=US\;a= \;p=Test ORG\;o=TEST SITE\;s=$name\;"; -----Original Message----- From: af...@t-... [mailto:af...@t-...] Sent: Friday, November 10, 2000 5:11 AM To: per...@li... Subject: creating an entry on Exchange I´m trying to add an enty to an Exchange 5.5 server via LDAP. I´m doing the following and get a "Constraint error": What is missing? $neuEintrag = $conn->newEntry(); $neuEintrag->setDN("cn=LisaM,cn=Recipients,ou=Einklang,o=Einklang."); $neuEintrag->{objectclass} = ["Top", "person", "Remote-Address"]; $neuEintrag->{rdn} = ["lisam"]; $neueintrag->{cn} = ["lisa mona"]; $neueintrag->{sn} = ["mona"]; $neueintrag->{givenName} = ["lisa"]; $neuEintrag->{distinguishedname} = ["cn=LisaM,cn=Recipients,ou=FAG002,o=FAG001"]; $neuEintrag->{rfc822mailbox} = ["lisa\@test.com"]; $neuEintrag->{mail} = ["SMTP:lisa\@test.com"]; $neuEintrag->{uid} = ["lisam"]; $conn->add($neuEintrag); $conn->printError() if $conn->getErrorCode(); maybe this is the wrong maillist, because I´m using PerLDAP 1.4. If so, could someone please tell me what the differences are. Thanks in advance |