Personal Email Contacts
Hi,
I am using Sun Java System Messaging Server that bundles with Sun Java Communication Suite. I am new to Messaging Server. My questions are:
1. how and where are the personal email contacts stored?
2. is there any java api to access these personal email contacts?
Thanks in advance,
Kamal
# 1
Hi,
There are two address-books in Messaging Server. Both address-books are stored in the sun directory server that should have been installed as part of the communications suite. Which address-book you need to access will depend on whether you use communication express (the current interface) or messenger express (the old outgoing interface).
The entries are stored and accessible via the LDAP protocol. There is no 'java-api' to get the information. You should be able to find any number of api's to perform the required ldap searches to get the data out of the address-book. I suggest you research into the LDAP protocol.
Regards,
Shane.
# 2
Hi shane,I think that's not so easy. Global address book are stored in standard LDAP form but Personal address book are stored under o=domain_name,o=PiserverDB.This Address book is not standard at all and LDAP clients dosent recognize it.Regards.
# 5
Hi,
You should be able to fairly easily reverse-engineer the information stored in the addressbook e.g.
Everything under:
piPStoreOwner=user002,o=domain1.com,o=PiServerDb
is the addressbook data you need.
An example entry is:
piEntryID=e10f0d353df9e0d,piPStoreOwner=user002,o=domain1.com,o=PiServerDb
objectClass=PITYPEPERSON
objectClass=piEntry
objectClass=top
memberOfPIBook=e10c89ae806b0
displayName=Test, User
givenName=Test
sn=User
piEmail2Type=home
piEmail2=test.user@domain3.com
piEntryID=e10f0d353df9e0d
Regards,
Shane.
# 6
Hi Shane,
I am using the following to view personal address book:
ou=People,o=example.com,dc=example,dc=com,o=pab
Actually I am accessing personal address book of many users from java class. Is there any standard way to build the above DN?
Thanks and Regards,
Kamal