Yair Zaslavsky has uploaded a new change for review.

Change subject: tools: Fixing RootDSEData bind
......................................................................

tools: Fixing RootDSEData bind

Changing the way RootDSE is obtained at manage domains
to the way it is obtained at engine -
Using SIMPLE bind with no credentials.

Change-Id: I6b5709ba7f01eb34cfb72f271f3963e0e635f2a5
Signed-off-by: Yair Zaslavsky <[email protected]>
---
M 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/ldap/RootDSEData.java
1 file changed, 7 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/56/27756/1

diff --git 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/ldap/RootDSEData.java
 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/ldap/RootDSEData.java
index d9abb3c..fb20fb0 100644
--- 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/ldap/RootDSEData.java
+++ 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/ldap/RootDSEData.java
@@ -54,8 +54,13 @@
         // this attribute will be a part of the LDAP URL to perform users 
queries (i.e - search for a user)
         DirContext dirContext = null;
         Hashtable<String, String> env = new Hashtable<>();
-        env.put(Context.INITIAL_CONTEXT_FACTORY, 
"com.sun.jndi.ldap.LdapCtxFactory");
-        env.put(Context.PROVIDER_URL, url.toString());
+        env.put(Context.SECURITY_AUTHENTICATION, "SIMPLE");
+        env.put(Context.SECURITY_PRINCIPAL, "");
+        env.put(Context.SECURITY_CREDENTIALS, "");
+        env.put(Context.REFERRAL, "follow");
+        env.put(Context.PROVIDER_URL, url);
+        env.put(Context.INITIAL_CONTEXT_FACTORY,
+                "com.sun.jndi.ldap.LdapCtxFactory");
         try {
             dirContext = new InitialDirContext(env);
             SearchControls controls = RootDSEQueryInfo.createSearchControls();


-- 
To view, visit http://gerrit.ovirt.org/27756
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6b5709ba7f01eb34cfb72f271f3963e0e635f2a5
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to