https://codereview.appspot.com/12914044/diff/1/src/com/google/enterprise/adap... File src/com/google/enterprise/adaptor/sharepoint/FormsAuthenticationHandler.java (right): https://codereview.appspot.com/12914044/diff/1/src/com/google/enterprise/adap... src/com/google/enterprise/adaptor/sharepoint/FormsAuthenticationHandler.java:88: authenticationMode = AuthenticationMode.WINDOWS; This looks unrelated. https://codereview.appspot.com/12914044/diff/1/src/com/google/enterprise/adap... File src/com/google/enterprise/adaptor/sharepoint/SharePointUserProfileAdaptor.java (right): https://codereview.appspot.com/12914044/diff/1/src/com/google/enterprise/adap... src/com/google/enterprise/adaptor/sharepoint/SharePointUserProfileAdaptor.java:527: os.write(MessageFormat.format("<html><head><title>{0}</title></head>" Need to handle special characters.
LGTM https://codereview.appspot.com/12914044/diff/7001/src/com/google/enterprise/a... File src/com/google/enterprise/adaptor/sharepoint/FormsAuthenticationHandler.java (right): https://codereview.appspot.com/12914044/diff/7001/src/com/google/enterprise/a... src/com/google/enterprise/adaptor/sharepoint/FormsAuthenticationHandler.java:87: "Possible SP2013 environment with windows authentication", ex); You are modifying this line, by adding whitespace at end.