vCard Photo Stored in Database, but other vCard data retrieved from LDAP

Hi,
I'm new to ejabberd and setting up a simple server. I have LDAP auth working and mod_vcard_ldap, but I need my users to be able to store and use avatars (vCard Photos). We do not want to store this photo in LDAP, nor does the LDAP database contain information about a photo. LDAP is just used for authentication and stores names, usernames and e-mail addresses.

Is it possible to use both mod_vcard_ldap and mod_vcard_odbc storing photos in the database and other information in LDAP?

Thanks.

harpax wrote: Is it possible

harpax wrote:

Is it possible to use both mod_vcard_ldap and mod_vcard_odbc storing photos in the database and other information in LDAP?

Not possible.

I don't know if this helps, but there's a dirty workaround:
1. {modules, ...} without any mod_vcard
2. {host_config, "example.org", ... and add mod_vcard_ldap here (check in the Guide for the example "Add some modules to vhost one")
3. {host_config, "dumb.example.org", ... and add mod_vcard_odbc here
4. Add "dumb.example.org" to the option {hosts, [...]}
5. If your users use a custom client, you can modify it to request nicknames to vcard.example.org, and request photos to vcard.dumb.example.org

vCard Photo Stored in Database, but other vCard data retrieved f

Thanks for the information and the possible workaround. We are not using custom clients in our situation though. Another workaround I might put in place here is simply a script that will copy information from ldap into the vcard table in MySQL when a user is created (or just periodically) and then simply use mod_vcard_odbc for everything.

Bump. Hello, I have the same

Bump.

Hello,

I have the same problem, i can't find a way to make it works.

Does the situation have changed ? Or another trick ?

Regards.

Syndicate content