svn commit: r759262 - in /ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap: activedirectory/ cas/ commons/

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r759262 - in /ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap: activedirectory/ cas/ commons/

doogie-3
Author: doogie
Date: Fri Mar 27 17:02:19 2009
New Revision: 759262

URL: http://svn.apache.org/viewvc?rev=759262&view=rev
Log:
Fix lines that *only* have whitespace.

Modified:
    ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/activedirectory/OFBizActiveDirectoryAuthenticationHandler.java
    ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/cas/OFBizCasAuthenticationHandler.java
    ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/commons/AbstractOFBizAuthenticationHandler.java
    ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/commons/InterfaceOFBizAuthenticationHandler.java

Modified: ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/activedirectory/OFBizActiveDirectoryAuthenticationHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/activedirectory/OFBizActiveDirectoryAuthenticationHandler.java?rev=759262&r1=759261&r2=759262&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/activedirectory/OFBizActiveDirectoryAuthenticationHandler.java (original)
+++ ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/activedirectory/OFBizActiveDirectoryAuthenticationHandler.java Fri Mar 27 17:02:19 2009
@@ -47,7 +47,7 @@
      * Public constructor, initializes some required member variables.<p>
      */
     public OFBizActiveDirectoryAuthenticationHandler() {
-
+
     }
 
     public SearchResult getLdapSearchResult(String username, String password,
@@ -111,8 +111,8 @@
             // No ldap service found, or cannot login.
             throw new NamingException(e.getLocalizedMessage());
         }
-
+
         return result;
     }
-
+
 }

Modified: ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/cas/OFBizCasAuthenticationHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/cas/OFBizCasAuthenticationHandler.java?rev=759262&r1=759261&r2=759262&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/cas/OFBizCasAuthenticationHandler.java (original)
+++ ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/cas/OFBizCasAuthenticationHandler.java Fri Mar 27 17:02:19 2009
@@ -45,25 +45,25 @@
 public final class OFBizCasAuthenticationHandler extends AbstractOFBizAuthenticationHandler {
 
     public static final String PARAM_TICKET = "ticket";
-
+
     public static final String PARAM_SERVICE = "service";
-
+
     public static final String PARAM_RENEW = "renew";
 
     /**
      * Public constructor, initializes some required member variables.<p>
      */
     public OFBizCasAuthenticationHandler() {
-
+
     }
-
-
+
+
     public String login(HttpServletRequest request, HttpServletResponse response, Element rootElement) throws Exception {
 
         String ticket = request.getParameter(PARAM_TICKET);
         String username = request.getParameter("USERNAME");
         String password = request.getParameter("PASSWORD");
-
+
         String casUrl = UtilXml.childElementValue(rootElement, "CasUrl", "https://localhost:8443/cas");
         String loginUri = UtilXml.childElementValue(rootElement, "CasLoginUri", "/login");
         String validateUri = UtilXml.childElementValue(rootElement, "CasValidateUri", "/validate");
@@ -106,7 +106,7 @@
                 }
             }
         }
-
+
         if (casLoggedIn && username != null) {
             // as we cannot get the password user input in CAS login page, we use a random one
             password = randomString();

Modified: ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/commons/AbstractOFBizAuthenticationHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/commons/AbstractOFBizAuthenticationHandler.java?rev=759262&r1=759261&r2=759262&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/commons/AbstractOFBizAuthenticationHandler.java (original)
+++ ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/commons/AbstractOFBizAuthenticationHandler.java Fri Mar 27 17:02:19 2009
@@ -58,9 +58,9 @@
      * Public constructor, initializes some required member variables.<p>
      */
     public AbstractOFBizAuthenticationHandler() {
-
+
     }
-
+
     public Object getPartyId(Element rootElement, SearchResult result) {
         Object partyId = UtilXml.childElementValue(rootElement, "AutoPartyId", "admin");
         return partyId;
@@ -75,14 +75,14 @@
 
         String username = request.getParameter("USERNAME");
         String password = request.getParameter("PASSWORD");
-
+
         SearchResult result = getLdapSearchResult(username, password, rootElement, true);
         if (result != null) {
             return login(request, response, username, password, rootElement, result);
         }
         return "error";
     }
-
+
     public String logout(HttpServletRequest request, HttpServletResponse response, Element rootElement) {
         return "success";
     }
@@ -91,7 +91,7 @@
 
     public String login(HttpServletRequest request, HttpServletResponse response, String username, String password, Element rootElement, SearchResult result) throws Exception {
         HttpSession session = request.getSession();
-
+
         // get the visit id to pass to the userLogin for history
         String visitId = VisitHandler.getVisitId(session);
         LocalDispatcher dispatcher = (LocalDispatcher) request.getAttribute("dispatcher");
@@ -111,7 +111,7 @@
             } catch (GenericEntityException e) {
                 throw new GenericEntityException(e.getLocalizedMessage());
             }
-
+
             GenericValue userLoginSecurityGroup = delegator.makeValue("UserLoginSecurityGroup", UtilMisc.toMap("userLoginId", username, "groupId", getSecurityGroup(rootElement, result), "fromDate", UtilDateTime.nowTimestamp()));
             try {
                 userLoginSecurityGroup.create();
@@ -122,7 +122,7 @@
             userTryToLogin.setString("currentPassword", useEncryption ? HashCrypt.getDigestHash(password, LoginServices.getHashType()) : password);
             userTryToLogin.store();
         }
-
+
         Map<String, Object> loginResult = null;
 
         try {

Modified: ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/commons/InterfaceOFBizAuthenticationHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/commons/InterfaceOFBizAuthenticationHandler.java?rev=759262&r1=759261&r2=759262&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/commons/InterfaceOFBizAuthenticationHandler.java (original)
+++ ofbiz/trunk/specialpurpose/ldap/src/org/ofbiz/ldap/commons/InterfaceOFBizAuthenticationHandler.java Fri Mar 27 17:02:19 2009
@@ -43,7 +43,7 @@
      * @throws Exception
      */
     String login(HttpServletRequest request, HttpServletResponse response, Element rootElement) throws Exception;
-
+
     /**
      * Get the security group of a user.
      *
@@ -53,7 +53,7 @@
      * @return the SecurityGroup object.
      */
     Object getSecurityGroup(Element rootElement, SearchResult result);
-
+
     /**
      * Get the party id of a user.
      *
@@ -75,7 +75,7 @@
      * @throws Exception
      */
     String logout(HttpServletRequest request, HttpServletResponse response, Element rootElement);
-
+
     /**
      * Get LDAP search result from a username, password and configuration.
      *