You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2016/03/08 19:03:00 UTC
svn commit: r1734114 -
/tomcat/tc8.0.x/trunk/java/org/apache/catalina/realm/JNDIRealm.java
Author: markt
Date: Tue Mar 8 18:03:00 2016
New Revision: 1734114
URL: http://svn.apache.org/viewvc?rev=1734114&view=rev
Log:
Whitespace police
Modified:
tomcat/tc8.0.x/trunk/java/org/apache/catalina/realm/JNDIRealm.java
Modified: tomcat/tc8.0.x/trunk/java/org/apache/catalina/realm/JNDIRealm.java
URL: http://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/java/org/apache/catalina/realm/JNDIRealm.java?rev=1734114&r1=1734113&r2=1734114&view=diff
==============================================================================
--- tomcat/tc8.0.x/trunk/java/org/apache/catalina/realm/JNDIRealm.java (original)
+++ tomcat/tc8.0.x/trunk/java/org/apache/catalina/realm/JNDIRealm.java Tue Mar 8 18:03:00 2016
@@ -1697,10 +1697,10 @@ public class JNDIRealm extends RealmBase
else
return null;
}
-
+
// Get result for the first entry found
SearchResult result = results.next();
-
+
// Check no further entries were found
try {
if (results.hasMore()) {
@@ -1712,32 +1712,32 @@ public class JNDIRealm extends RealmBase
if (!adCompat)
throw ex;
}
-
+
String dn = getDistinguishedName(context, userBase, result);
-
+
if (containerLog.isTraceEnabled())
containerLog.trace(" entry found for " + username + " with dn " + dn);
-
+
// Get the entry's attributes
Attributes attrs = result.getAttributes();
if (attrs == null)
return null;
-
+
// Retrieve value of userPassword
String password = null;
if (userPassword != null)
password = getAttributeValue(userPassword, attrs);
-
+
String userRoleAttrValue = null;
if (userRoleAttribute != null) {
userRoleAttrValue = getAttributeValue(userRoleAttribute, attrs);
}
-
+
// Retrieve values of userRoleName attribute
ArrayList<String> roles = null;
if (userRoleName != null)
roles = addAttributeValues(userRoleName, attrs, roles);
-
+
return new User(username, dn, password, roles, userRoleAttrValue);
} finally {
if (results != null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org