Repository: cloudstack Updated Branches: refs/heads/4.4 6b342ffce -> fe7ecad20
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/fe7ecad2 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/fe7ecad2 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/fe7ecad2 Branch: refs/heads/4.4 Commit: fe7ecad20b436dc45ba06aa21661b0af2065b23e Parents: 6b342ff Author: Rajani Karuturi <rajanikarut...@gmail.com> Authored: Thu Apr 24 17:26:15 2014 +0530 Committer: Daan Hoogland <d...@onecht.net> Committed: Fri Apr 25 22:49:25 2014 +0200 ---------------------------------------------------------------------- .../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/fe7ecad2/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 {