Repository: cloudstack
Updated Branches:
  refs/heads/master ca6e6e2b7 -> baadf930f


checkstyle fix for commit 8e2e8e5e8ab492fa40dedc0788c0ac61f912487b

improved ldap logging. added stacktrace in debug level incase of exceptions.

Signed-off-by: Abhinandan Prateek <aprat...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/baadf930
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/baadf930
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/baadf930

Branch: refs/heads/master
Commit: baadf930fba05e75ccc29569b6a41fe4af17fec6
Parents: ca6e6e2
Author: Rajani Karuturi <rajanikarut...@gmail.com>
Authored: Thu Apr 24 17:26:15 2014 +0530
Committer: Abhinandan Prateek <aprat...@apache.org>
Committed: Thu Apr 24 17:30:12 2014 +0530

----------------------------------------------------------------------
 .../src/org/apache/cloudstack/ldap/LdapContextFactory.java   | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/baadf930/plugins/user-authenticators/ldap/src/org/apache/cloudstack/ldap/LdapContextFactory.java
----------------------------------------------------------------------
diff --git 
a/plugins/user-authenticators/ldap/src/org/apache/cloudstack/ldap/LdapContextFactory.java
 
b/plugins/user-authenticators/ldap/src/org/apache/cloudstack/ldap/LdapContextFactory.java
index 491faa3..5811c32 100644
--- 
a/plugins/user-authenticators/ldap/src/org/apache/cloudstack/ldap/LdapContextFactory.java
+++ 
b/plugins/user-authenticators/ldap/src/org/apache/cloudstack/ldap/LdapContextFactory.java
@@ -53,12 +53,10 @@ public class LdapContextFactory {
         return createInitialDirContext(principal, password, null, 
isSystemContext);
     }
 
-       private DirContext createInitialDirContext(final String principal,
-                       final String password, final String providerUrl,
-                       final boolean isSystemContext) throws NamingException {
+    private DirContext createInitialDirContext(final String principal, final 
String password, final String providerUrl, final boolean isSystemContext) 
throws NamingException {
         Hashtable<String, String> environment = getEnvironment(principal, 
password, providerUrl, isSystemContext);
-        s_logger.debug("initializing ldap with provider url: "+ 
environment.get(Context.PROVIDER_URL));
-               return new InitialDirContext(environment);
+        s_logger.debug("initializing ldap with provider url: " + 
environment.get(Context.PROVIDER_URL));
+        return new InitialDirContext(environment);
     }
 
     public DirContext createUserContext(final String principal, final String 
password) throws NamingException {

Reply via email to