Cannot get mod_share_roster_ldap to work

Hello,

I've set up an address book server for my family. The data is stored using OpenLDAP. Each member has a login to view other member's details or change his or her own details.

Beside the LDAP server, I've set up ejabberd (2.0.5) to provide an easy-to-use instant messaging system. The authentification method is LDAP - of course - and is working properly.

Now it would be nice to provide a shared roster folder, with all family contacts inside. I've seen, that there exists a module named "mod_share_roster_ldap" which seems to be exactly what I need. So I downloaded, compiled and installed this module, using this description: http://www.ejabberd.im/node/2872 I guess, up to here everything is okay, though I don't know whether the module is really loaded - How can I test this?

I've tried configuring it, but I'm not quite sure, about the correct setup for my LDAP configuration. The configuration of the module now looks like this:

{mod_shared_roster_ldap, [
      {ldap_base, "<basedn>"},
      {ldap_groupattr, "ou"},
      {ldap_groupdesc, "description"},
      {ldap_memberattr, "uid"},
      {ldap_memberattr_format, "uid=%u"},
      {ldap_memberdesc, "cn"},
      {ldap_rfilter, "(objectClass=inetOrgPerson)"}
]},

Since I'm also quite new to LDAP, it may be, that I missed something in the setup of the directory tree. All jabber contacts have an entry named like "uid=%u,ou=<group name>,<basedn>", and are of "objectClass=inetOrgPerson". The directory has this structure:

<basedn>
  +--> cn=admin       # rootdn
  |
  +-+> ou=ejabberd    # special contacts, that are no family book members (e.g. jabber bots)
  | +--> uid=bot1       # jabber account entry
  |
  +-+> ou=people      # family members
  | +--> uid=mike       # an actual family member
  | +--> uid=tina
  | +--> uid...
  |
  +-+> ou=special     # lesser LDAP-binds (may read, but not write)
    +--> cn=ejabberd    # contact, which ejabberd uses as rootdn

Can anyone tell me, what I have done wrong?

Cheers,
Wolfgang

Syndicate content