Comments (8)
I would really like to have AD integration for our internal surveys and I'm looking into the code how it is done now.
Is it already possible? Anyone already have something started or ideas how I could do it now?
The security seems to be very well isolated in one place, so it shouldn't be too hard to replace Form authentication with AD.
We mostly use AD Groups to assign rights to users, so this would be my approach to manage the access for users to enter the site.
You would get all the rights of all the groups you are in...
from surveyproject.
Windows auth already uses AD to perform authorization, so that's the route I would take when attempting this change. No need to query the AD directly by hand.
I'm not sure the exent of the internal code changes that would be necessary to support it, but this stackoverflow question details how to use User.IsInrole()
to determine if a user has the proper role.
from surveyproject.
I did a quick test with enabling Windows authentication on the site.
I first created an user with my AD account name ( Domain\userid) and a random password).
Added a little code to pagebase to retrieve info for an AD user from the user repository and voila, I was always logged in ( can't even log out now; :-) )
This could be put in a ADUserInfoProvider class to replace the FormUserInfoProvider.
With the additional check for AD groups inside to check for roles, this should be usefull to most people I think.
I'll try to set up something up.
from surveyproject.
Any suggestions/ solutions or code most welcome! I wonder if there's a way to not having to create the user in SP first though? Challenge will then be how to combine/.link the AD account with the SP user roles /rights.
from surveyproject.
That's what I was thinking. What really needs to be is two different implementations of one interface with a configuration setting telling the app which one to use at run time.
from surveyproject.
I poked at the code. Bit, and it seems that the abstraction already exists. There's a FormsUserProvider that implements an INSursveyUserProvider
interface. There's also an INSurveyPrincipal
somewhere that will likely need a new AD implementation.
from surveyproject.
I was started on setting an ADUserProvider class for meself already. I'm trying to keep code duplication to a minimum. But I don't know if I should change the FormUserProvider to extract common code or leave it as is...
from surveyproject.
Did anyone get anywhere with this. It's all giving me a headache!
from surveyproject.
Related Issues (20)
- CSS XML menu security and useability issues
- Length of Question Helptext (255 char) too limited
- CSS not used consistently on Take Survey, Preview, SurveyMobile
- Paging not working correctly on Mailing Errorlog webpage
- Regular Expression webpage: redundant warning to select survey
- Answer Type webpage: redundant warning message to select survey
- On RegEx delete "linked" surveyanswers removed also
- Access security can be improved in web.config file
- VoterID not encrypted in URL of Individual Responses report
- URL Query encryption
- create survey web application in coloud9
- ResultsReport.aspx and CustomResult.aspx does not show anything HOT 1
- Matrix Question - Displayorder not set correctly
- User file upload HOT 1
- Show survey's title on SurveyMobile.aspx (via cs code) HOT 1
- Unable to build in localhost HOT 1
- Campaigns/ Mailing - incorrect URL when using HTTPS
- Adding TimePicker for survey Open/Close timing
- JavaScriptCode answertype takes first 8000 chars only HOT 1
- How to Start locally with visual studio run HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from surveyproject.