Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update JNDI adapter to follow referrals by default (#182)
* Update JNDI adapter to follow referrals by default I ran in to some issues while exploring OpenLDAP where memberOf was not returning while using JNDI but was returning using net-ldap and the ldapsearch command. I finally narrowed it down to JNDI not following referrals by default. Now this JNDI adapter will follow referrals by default like net-ldap and the ruby ldap adapters do here. This can be changed with the follow_referrals connection configurations option. * Add test for reading memberOf attribute * Add test_follow_referrals_option * Update test_follow_referrals_option to test all three values * Add dynamic groups test This highlights the need for enabling the follow referrals configuration to load dynamic group memberships. * Update dockerfile and dockerignore * Use dyngroup schema in slapd * Move LDIF to enable dynamic groups to test/ * Remove needless GroupOfNames class It's not related to this change. * test: simplify * Add support for follow_referrals per connect * Enable no follow_referrals only for JRuby Co-authored-by: Sutou Kouhei <kou@clear-code.com>
- Loading branch information
1 parent
31576d5
commit ca535f8
Showing
10 changed files
with
159 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Your LDAP server needs to support dynamic list for test. | ||
# This is a LDIF file for OpenLDAP to do the configuration. | ||
# You can use this file by the following command line on Debian GNU/Linux | ||
# or Ubuntu: | ||
# | ||
# % sudo -H ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/dyngroup.ldif | ||
# % sudo -H ldapmodify -Y EXTERNAL -H ldapi:/// -f test/enable-dynamic-groups.ldif | ||
version: 1 | ||
|
||
# Enable dynlist module | ||
dn: cn=module{0},cn=config | ||
changetype: modify | ||
add: olcModuleLoad | ||
olcModuleLoad: dynlist | ||
|
||
# Set up dynlist overlay | ||
dn: olcOverlay=dynlist,olcDatabase={1}mdb,cn=config | ||
changetype: add | ||
objectClass: olcOverlayConfig | ||
objectClass: olcDynamicList | ||
olcOverlay: dynlist | ||
olcDlAttrSet: groupOfURLs memberURL member |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters