Survey Forums

HomeHomeSurvey Project ...Survey Project ...GeneralGeneralSwapped over to Windows Authentication, but now I cannot log into admin section?Swapped over to Windows Authentication, but now I cannot log into admin section?
Previous
 
Next
New Post
11/20/2017 4:19 PM
 
Hi,

So I installed SP and got it up and running all fine. Now I need to implement Windows Authentication so that we can see who submitted the survey answers (for which I use ASP Net security context). This requires that I switch my Authentication mode to Windows, which is fine except now I cannot log into my admin section using the admin/SP_admin01 combo. I would imagine that the admin section now wants to use windows authentication as well? If that's the case I was wondering where/how I can give windows users permissions access to log in to the admin section. 

Any help would be appreciated, cheers.
 
 
New Post
11/21/2017 12:08 PM
 
Hello,

Active Directory or Windows Authentication is not (fully) implemented in SP (v.2.4).  You may check the following repository at Github: 

https://github.com/schwarzie2478/surveyproject_main_public/blob/master/Reflector/Nsurvey_UserProvider/Votations.NSurvey.UserProvider/AdUserProvider.cs

It not supported by SP or in any way affiliated, however it may get you on the right track.

Meanwhile the ambition (and Github Item: https://github.com/surveyproject/surveyproject/issues/16 ) to get it implemented in the next release.

 
 
New Post
11/21/2017 7:07 PM
 
Hello,

Thank you for your response. Is it possible to have the survey side use Windows authentication but the admin side use forms authentication? IE, be able to log in with admin:SP_admin01 in the admin portal but still use windows forms for the actual survey?

If it's not possible, do you know how I could make it possible?

Any help is appreciated

Cheers
 
New Post
11/22/2017 11:13 AM
 
Hello,

Access to the 'actual survey' is regulated throught the SP Security addins (menu Surveys/ Security) .  There is no specific addin for Windows accounts access.

You could however try the IIS URL authorisation options:
https://docs.microsoft.com/en-us/iis/...l-authorization

Concerning AD/ LDAP integrations the following may be of help:
- https://technet.microsoft.com/library/hh831496.aspx#ASP.NET Impersonation
- https://support.microsoft.com/en-us/help/316748/how-to-authenticate-against-the-active-directory-by-using-forms-authen
- https://msdn.microsoft.com/en-us/library/ff650307.aspx
- http://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/

 
 
New Post
11/22/2017 1:29 PM
 
Hello,

Thanks for your response.

Perhaps i'm explaining my problem poorly, I will try again :)

- I need to be able to store the users Windows username when they respond to the survey
- I can do this with ASP.net security context
- For this to work I need to enable Windows Authentication in IIS and disable Forms authentication
- When I enable Windows Auth and disable Forms, I cannot login to admin section (admin:SP_admin01, or any account I make + my own windows account also does not work)
- So if I have Windows Usernames stored with survey replies, I cannot log in to admin section to see those replies

Is it possible to be able to store Windows usernames and still login to admin section? Right now with Forms authentication the survey sees the name as: "admin,1,Survey Project,Administrator,,True,True|"

Cheers for all your help again :) 
 
Previous
 
Next
HomeHomeSurvey Project ...Survey Project ...GeneralGeneralSwapped over to Windows Authentication, but now I cannot log into admin section?Swapped over to Windows Authentication, but now I cannot log into admin section?