This thread is archived
2 Replies Last post: Aug 9, 2006 10:03 PM by idl3mind  
starry99 Silver 230 posts since
Mar 3, 2006
Currently Being Moderated

Jul 9, 2006 2:54 AM

Vcard without LDAP

Hello!

 

Is it possible to have decent vcard support without using going the rough LDAP road at all?

Over here we use Wildfire to link support&sales people with their peers as well as customers. This is also why I am eagerly waiting for JM-701!

Although all the internal people are in a Windows AD and I could use LDAP I did not do it, because there are just so few and I wanted to have all users (intenal & external) in one database.

 

Now, it would be very cool if I could provide vcards for our internal people, so that hey are able to introduce themselves in a nice way to the customer.

Is this already possible with just plain vanilla Spark & Wildfire alone?

Since I never played with Vcards in a Jabber environment: What can I actually do with it? Enable the remote partner to retrieve my Vcard so he can directly import it as a contact in his outlook?

 

pls shine some light onto this, thanks!

Starry

idl3mind   4 posts since
Aug 8, 2006
Currently Being Moderated
Aug 9, 2006 10:03 PM in response to: starry99
Re: Vcard without LDAP

I found that it was quite easy setting up vcards. it took me about half a day to get all the mappings right, but i''m quite happy with it now. mainly because I only have to keep a backup of my wildfire.xml file. The "physicalDeliveryOfficeName" attribute is the "Office" field. Utilizing this vcard, I was able to get all pertinent data into spark.

 

  <ldap>

    <host>server1.foo.com,server2.foo.com</host>

    <port>389</port>

    <usernameField>sAMAccountName</usernameField>

    <nameField>displayName</nameField>

    <emailField>mail</emailField>

    <baseDN>DC=foo,DC=com</baseDN>

    <adminDN>CN=jive,CN=Users,DC=foo,DC=com</adminDN>

    <adminPassword>********</adminPassword>

    <clientSideSorting>false</clientSideSorting>

    <debugEnabled>false</debugEnabled>

    <autoFollowReferrals>false</autoFollowReferrals>

    <searchFilter><![CDATA[(&(sAMAccountName=)(objectClass=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2))(!(sAMAccoun tName=$)))]]></searchFilter>     <groupNameField>cn</groupNameField>     <groupMemberField>member</groupMemberField>     <groupDescriptionField>description</groupDescriptionField>     <groupSearchFilter><![CDATA[(&(objectCategory=Group)(objectClass=group )(member=))]]></groupSearchFilter>

    <posixMode>false</posixMode>

    <vcard-mapping> <![CDATA[

      <vCard xmlns=''vcard-temp''>

        <N>

          <GIVEN attrs="givenName"></GIVEN>           <MIDDLE attrs="initials"></MIDDLE>

          <FAMILY attrs="sn"></FAMILY>         </N>         <NICKNAME attrs="displayName"></NICKNAME>

        <ADR>

        <WORK/>

          <LOCALITY attrs="physicalDeliveryOfficeName"></LOCALITY>           <CTRY attrs="co"></CTRY>

        </ADR>

        <TEL>

          <WORK/>

          <VOICE/>

          <NUMBER attrs="telephoneNumber"></NUMBER>         </TEL>         <TEL>           <HOME/>           <CELL/>           <NUMBER attrs="mobile"></NUMBER>

        </TEL>

        <EMAIL>

          <WORK/>

          <PREF/>

          <USERID attrs="mail"></USERID>         </EMAIL>         <TITLE attrs="title"></TITLE>

        <ORG>

          <ORGNAME attrs="company"></ORGNAME>

        </ORG>

        <PHOTO/>

      </vCard>

    ]]> </vcard-mapping>

  </ldap>

  <provider>

    ...

    <vcard>

      <className>org.jivesoftware.wildfire.ldap.LdapVCardProvider</className >

    </vcard>

  </provider>

 

 

More Like This

  • Retrieving data ...