diff options
author | Mickael Remond <mremond@process-one.net> | 2016-03-25 17:30:12 +0100 |
---|---|---|
committer | Mickael Remond <mremond@process-one.net> | 2016-03-25 17:30:12 +0100 |
commit | 0afcf561d6c031f03dee596c0aaca80422da200f (patch) | |
tree | 9fbe83036d9ca9ca2f87380e1223fc86be2170aa /test/ejabberd_SUITE_data | |
parent | Allow running test groups independently (diff) |
Add test to demonstrate issue to retrieve roster with mod_shared_roster_ldap
Diffstat (limited to 'test/ejabberd_SUITE_data')
-rw-r--r-- | test/ejabberd_SUITE_data/ejabberd.ldif | 17 | ||||
-rw-r--r-- | test/ejabberd_SUITE_data/ejabberd.yml | 11 |
2 files changed, 27 insertions, 1 deletions
diff --git a/test/ejabberd_SUITE_data/ejabberd.ldif b/test/ejabberd_SUITE_data/ejabberd.ldif index 0d2d60638..863a07e4f 100644 --- a/test/ejabberd_SUITE_data/ejabberd.ldif +++ b/test/ejabberd_SUITE_data/ejabberd.ldif @@ -10,6 +10,10 @@ dn: ou=users,dc=localhost ou: users objectClass: organizationalUnit +dn: ou=groups,dc=localhost +ou: groups +objectClass: organizationalUnit + dn: uid=test_single,ou=users,dc=localhost uid: test_single mail: test_single@localhost @@ -33,3 +37,16 @@ objectClass: person jpegPhoto:: /9g= cn: Test Slave password: password + +dn: uid=user2,ou=users,dc=localhost +uid: user2 +mail: user2@localhost +objectClass: person +cn: Test User 2 +password: password + +dn: cn=group1,ou=groups,dc=localhost +objectClass: posixGroup +memberUid: test_single +memberUid: user2 +cn: group1 diff --git a/test/ejabberd_SUITE_data/ejabberd.yml b/test/ejabberd_SUITE_data/ejabberd.yml index 923d69024..e920d4637 100644 --- a/test/ejabberd_SUITE_data/ejabberd.yml +++ b/test/ejabberd_SUITE_data/ejabberd.yml @@ -336,6 +336,15 @@ Welcome to this XMPP server." auth_method: ldap modules: mod_vcard_ldap: [] + mod_roster: [] # mod_roster is required by mod_shared_roster + mod_shared_roster_ldap: + ldap_auth_check: off + ldap_base: "dc=localhost" + ldap_rfilter: "(objectClass=posixGroup)" + ldap_gfilter: "(&(objectClass=posixGroup)(cn=%g))" + ldap_memberattr: "memberUid" + ldap_ufilter: "(uid=%u)" + ldap_userdesc: "cn" mod_adhoc: [] mod_configure: [] mod_disco: [] @@ -415,7 +424,7 @@ listen: port: @@web_port@@ module: ejabberd_http captcha: true -loglevel: 4 +loglevel: 5 max_fsm_queue: 1000 modules: mod_adhoc: [] |