Configuration - mod_shared_roster_ldap

Hi,

I'm trying to get mod_shared_roster_ldap 0.5.2 working
Here is my schema :

dc=auth,dc=domain,dc=fr
|-ou=People,dc=auth,dc=domain,dc=fr
|-uid=member1
|-uid=member2
|-uid=member3
|-ou=Groups,dc=auth,dc=domain,dc=fr
|-cn=group1
|-cn=group2

In cn=group1, I've got :

- gidNumber : 10000
- memberUid : member1
- memberUid : member2
- memberUid : ...

In cn=group2, T've got (note member1 is in group1 and group2)

- gidNumber : 10001
- memberUid : member1
- memberUid : member3
- memberUid : ...

In uid=member1 I've got :

  - givenName : Firstname
  - sn : Name
  - userPasswd
  - loginShell
  - ou = role1
  - ou = role2
  - uidNumber :
  - gidNumber : primaryGroup
  - mail :
  - objectClass : posixAccount
  - objectClass : inetOrgPerson
  - objectClass : shadowAccount
  - objectClass : top
  - uid : member1
  - cn : Firstname Name
  - homeDirectory : /home/....

Same thing for member2

When i've got this, I've got a shared roster with memberUid :

  {mod_shared_roster_ldap,[
    {ldap_base, "dc=auth,dc=pagesjaunes,dc=fr"},
    {ldap_rfilter, "(objectClass=posixGroup)"},
    {ldap_filter, ""},
    {ldap_gfilter, "(&(objectClass=posixGroup)(cn=%g))"},
    {ldap_groupdesc, "cn"},
    {ldap_groupattr, "cn"},
    {ldap_memberattr, "memberUid"}
    %%{ldap_memberattr_format, "uid=%u,ou=People,dc=auth,dc=pagesjaunes,dc=fr"},
    %%{ldap_ufilter, "(&(objectClass=posixAccount)(uid=%u))"},
    %%{ldap_userdesc, "cn"}

If I activate last 3 lines (and add ",") my roster list became empty

Working !

After 2 days, it's now working !

Here it is :

  {mod_shared_roster_ldap,[
    {ldap_base, "dc=auth,dc=domain,dc=fr"},
    {ldap_filter, ""},
    {ldap_rfilter, "(&(objectClass=posixGroup)(!(cn=sysadmins)))"},
    {ldap_useruid, "uid"},
    {ldap_userdesc, "cn"},
    {ldap_ufilter, "(cn=*)"}
  ]},
Syndicate content