Dnia 2012-06-13, śro o godzinie 00:40 +0000, Matthew Koch pisze:
> Anyhow, I was thinking of using something like this for the config:
> 
> <storage>
>   <ldapvcard>
>     <vcard-map>
>       <map attr="[ldapAttribute]" property="[vcardProperty]" />
>       <map attr="[ldapAttribute]" property="[vcardProperty]" />
>      </vcard-map>
>    ....
>   </ldapvcard>
> </storage>
> 
> If <vcard-map> doesn't exist, it will use the existing hard-coded map.
> This seems to be following the pattern, but I didn't see a DTD for the
> config, so I'm just guessing. Feel free to change the above idea
> around

It looks good to me.
And the placement for the config is ok. Just add it commented out at the
end of <ldapvcard> section, so it won't obfuscate other options.


> I'm still reading the config API to see if I can enumerate like that,
> but it should be pretty easy to make it work. 

Take a look how the domain names and its parameters are parsed and
stored in c2s(.xml). Same pattern should work for the mapping.



Reply via email to