Created contact via CDO, missing Company and Country when viewed from Active Directory Users and Computers

Created contact via CDO, missing Company and Country when viewed from Active Directory Users and Computers

Post by Microsoft Publi » Wed, 30 Oct 2002 09:16:19



I am writing a asp page to allow customers to subscribe/unsubscribe from our
distribution lists. Everything is working properly when creating the contact
except that the values entered for Company and WorkCountry are not displayed
in Active Directory Users and Computers.

The values are there however when queried via a second asp page.

Any ideas why this is not working properly would be appreciated.

Craig Freemark

This scripts creates the contact in Active Directory

<%
'Declare variables
Dim iPer
Dim strLDAP

  Set iPer = CreateObject("CDO.Person")

With iPer
 'Set first and last names and company name
 .FirstName = "Peter"
 .LastName = "Porzuczek"
 .Company = "Coho Winery"
 .WorkCountry = "CANADA"
 'Indicate that this is a contact
 .Fields("objectClass").Value = "contact"
 'Save changes made to properties
 .Fields.Update
End With

'Setup the LDAP string
strLDAP = "LDAP://Server/CN=Test User, dc=domain, dc=com"

'Save the contact to Active Directory
iPer.DataSource.SaveTo strLDAP
%>

This scripts shows that the contact information was exists

<%
'Declare variables
Dim iPer
Dim strLDAP

  Set iPer = CreateObject("CDO.Person")

  'Setup the LDAP string
  strLDAP = "LDAP://Server/CN=Test User, dc=domain, dc=com"

  iPer.DataSource.Open strLDAP

With iPer
 Response.Write( "<p>" & .FirstName & " " )
 Response.Write( .LastName & "</p>")
 Response.Write( "<p>" & .Company & "</p>" )
    Response.Write( "<p>" & .WorkCountry & "</p>" )
End With

%>

 
 
 

1. owa viewing of contacts created as a public folder and calendars/tasks missing lines

Exchange 5.5 SP3. IIS 4.0 outlook 98 clients

We have a "happily running" installation to which I have just added the OWA.
All users can view their respective mailboxes, calendars and contacts lists
OK. A Public Folder has been created to which all users have full access to
which they can view the corporate vCards. Viewing through Outlook directly
is fine however trying to view through OWA tells me only primary contact
lists can be viewed. Also viewing certain public folders shows the normal
little blank squares down the left hand column but no details on screen.
System has two servers in the one site with all mailboxes held on one server
and the OWA/IIS running on the second.

Thanks in advance

Keith Alabaster

2. Rule Size Limit Upgrade

3. Create link to contact via CDO

4. Creating Secondary SMTP Address

5. Creating Valid Contact Email Addresses via CDO

6. Setup multiple email domains

7. Create link to contact via CDO

8. newbie: domains and addressing in exchange

9. Outlook Contact to create Active Directory Contact

10. Add user in active dir doesn't create mailbox

11. Contacts created with CDO not showing when creating an email

12. Microsoft Active Directory - Exchange Extension lock's admin's out of active dir

13. Unable to view attachment via Active Server Page