Thanks for review. I have added my response to some of your comments. I will
upload new patch for review.
Regards,
Tanmay
https://codereview.appspot.com/79030043/diff/40001/src/com/google/enterprise/...
File
src/com/google/enterprise/adaptor/sharepoint/FormsAuthenticationHandler.java
(right):
https://codereview.appspot.com/79030043/diff/40001/src/com/google/enterprise/...
src/com/google/enterprise/adaptor/sharepoint/FormsAuthenticationHandler.java:112:
"Empty username / password. Using authentication mode as Windows");
Windows means "Windows Integrated Authentication. This can be NTLM or Kerberos".
On 2014/03/22 01:26:50, pjo wrote:
> What does "as Windows" mean?
https://codereview.appspot.com/79030043/diff/40001/src/com/google/enterprise/...
src/com/google/enterprise/adaptor/sharepoint/FormsAuthenticationHandler.java:146:
this.cookie = cookie;
Yes null is fine. I will remove auto generated comments by IDE.
On 2014/03/22 01:26:50, pjo wrote:
> null is OK for all these?
https://codereview.appspot.com/79030043/diff/40001/src/com/google/enterprise/...
src/com/google/enterprise/adaptor/sharepoint/FormsAuthenticationHandler.java:170:
}
I will remove auto generated comments by netbeans.
On 2014/03/22 01:26:50, pjo wrote:
> the above three comments don't give any additional info; delete them
https://codereview.appspot.com/79030043/diff/40001/src/com/google/enterprise/...
File
src/com/google/enterprise/adaptor/sharepoint/SharePointFormsAuthenticationHandler.java
(right):
https://codereview.appspot.com/79030043/diff/40001/src/com/google/enterprise/...
src/com/google/enterprise/adaptor/sharepoint/SharePointFormsAuthenticationHandler.java:65:
"Possible SP2013 environment with windows authentication", ex);
No. This was an existing comment, just moved from FormAuthenticationHandler to
here.
On SharePoint 2013 environment, authentication mode returned is "Forms" even
though SharePoint is configured to use Integrated Windows Authentication.
Adaptor looks at Authentication mode and if it is Forms, then adaptor will try
to authenticate using available user name and password by calling
"Authenitcation.asmx" web service. In this case, SharePoint will throw
exception. So Adaptor decides to use "Integrated Windows Authentication" (or
just Windows Authentication is SharePoint and IIS terms.)
On 2014/03/22 01:26:50, pjo wrote:
> "Check if we are running against SharePoint 2013 and are configured to use
> Windows authentication. Using Windows authentication and SharePoint 2013 is
not
> supported"
>
> Is that right?
https://codereview.appspot.com/79030043/diff/40001/src/com/google/enterprise/...
src/com/google/enterprise/adaptor/sharepoint/SharePointFormsAuthenticationHandler.java:78:
+ "authentication.", result.getErrorCode());
Again existing comment. But I agree we should fix first statement.
This is another scenario, where SharePoint is configured to support multiple
claims providers. In this case Authentication mode is forms. But it is possible
that Adaptor is configured to use "Integrated Windows Authentication". In that
scenario, Forms authentication will fail for provided user name and password.
While adding support for forms authentication, it was decided to always fallback
to "Integrated Windows Authentication" in case of login error.
On 2014/03/22 01:26:50, pjo wrote:
> First sentence: "Forms authentication failed with error code {0}."
>
> For 2nd sentence, I'm not 100% sure what we're trying to get across, is it:
> "Check if we are running with multiple claims providers. Running with multiple
> claims providers is not supported."
>
> For 3rd sentence, I'm not 100% sure what we're trying to get across, is it:
> "Check if we are running with windows authentication. Running with windows
> authentication is not supported."
>
> For the 3rd one, i think running with windows authentication is supported, but
> I'm not sure what the message we're trying to get across here is.
Issue 79030043: Refactor FormsAuthenticationHandler and add tests
(Closed)
Created 10 years, 1 month ago by Tanmay Vartak
Modified 10 years ago
Reviewers: pjo
Base URL:
Comments: 39