Author Message

How can i add contacts to AD, not user but contacts


Fri, 15 Jul 2005 22:11:39 GMT  


>How can i add contacts to AD, not user but contacts



The procedure is to bind to the container and invoke the
Create method to create an object of class "contact". The
cn (Common Name) is the only required attribute, but you
can set others. You must invoke the SetInfo method:

Set oCnt = GetObject("LDAP://ou=Sales,dc=MyDomain,dc=com")
Set oContact = oCnt.Create("contact", "cn=John F. Kennedy") = "Kennedy"
oContact.GivenName = "John"
oContact.Initials = "F"
oContact.DisplayName = "J_Kennedy"


Sun, 17 Jul 2005 01:50:51 GMT  
 [ 2 post ] 

 Relevant Pages 

1. Transferring standard contact data from standard contact forms into contact custom forms

2. Retreive current contact index from contact form

3. Add Contacts to a PublicFolder Contact list

4. best way to sync Outlook contacts with a SQL Server contacts database

5. Find a contact in Outlook contact or in a access database

6. VBA Display selected contacts/people from a Shared contact list

7. Delete Contacts from "Contact " Folder Automatically

8. How do I programmatically link contact to contact?

9. Cannot mail to Contacts with modified Contact Form

10. Can Not send Mail to Contacts that use a Modified Contact Form

11. VB send outlook contact to contacts subfolder?

12. From a Contact's details to the Contact folder


Powered by phpBB® Forum Software