From e6690a0dcb045da5dd198c17406452307e6cd9a8 Mon Sep 17 00:00:00 2001 From: Mark Reynolds Date: Thu, 6 Oct 2016 16:54:57 -0400 Subject: [PATCH] Ticket 49003 - Add the host and port to the ldapurl in the role form Description: To workaround an existing bug in the ldapjdk, we need to create ldap urls that contain the host and port, as opposed to "ldap:///". https://fedorahosted.org/389/ticket/49003 Reviewed by: ? --- src/com/netscape/admin/dirserv/roledit/ResEditorManagedRole.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/com/netscape/admin/dirserv/roledit/ResEditorManagedRole.java b/src/com/netscape/admin/dirserv/roledit/ResEditorManagedRole.java index bb15a0f..c8c37df 100644 --- a/src/com/netscape/admin/dirserv/roledit/ResEditorManagedRole.java +++ b/src/com/netscape/admin/dirserv/roledit/ResEditorManagedRole.java @@ -431,11 +431,10 @@ public class ResEditorManagedRole extends DefaultResEditorPage return; } - String roleDn = makeLastRoleDn(); - String baseDn = RolePickerDialog.makeParentDn(roleDn); - - String URLstring = "ldap:///" + baseDn + "??sub?(nsroledn=" + roleDn + ")"; - Debug.println("ResEditorManagedRole.actionRefresh: url = " + URLstring); + String roleDn = makeLastRoleDn(); + String baseDn = RolePickerDialog.makeParentDn(roleDn); + String URLstring = "ldap://" + info.getUserHost() + ":" + info.getUserPort() + "/" + baseDn + "??sub?(nsroledn=" + roleDn + ")"; + Debug.println("ResEditorManagedRole.actionRefresh: url = " + URLstring); try { LDAPUrl ldapURL = new LDAPUrl(URLstring); LDAPConnection ldc = info.getUserLDAPConnection(); -- 2.7.4