- Posts: 5033
- Thank you received: 1257
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Getting Active Directory Name of survey participant
- Juseanma_117558
- Topic Author
- Visitor
5 years 2 months ago #180888
by Juseanma_117558
Getting Active Directory Name of survey participant was created by Juseanma_117558
Any idea how to get the AD name of a survey participant?
Example: Open survey, user will participate and a field shows his AD username.
Currently, when I want to start an open survey without participant table, I need the ask the user for their name using a text field. Or are there other ideas with the same result?
Example: Open survey, user will participate and a field shows his AD username.
Currently, when I want to start an open survey without participant table, I need the ask the user for their name using a text field. Or are there other ideas with the same result?
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
5 years 2 months ago #180893
by jelo
You cannot capture the AD name of a survey participant.
Even if we change the task to "Capture the AD name of the current Windows user session, the browser alone wouldn't be able to capture that info.
If people e.g. use InternetExplorer and have security settings disabled, there is a way to capture the username.
But nobody will allow that, if security is important.
stackoverflow.com/questions/9518092/java...-of-the-current-user
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Getting Active Directory Name of survey participant
efingdmi wrote: Any idea how to get the AD name of a survey participant?
You cannot capture the AD name of a survey participant.
Even if we change the task to "Capture the AD name of the current Windows user session, the browser alone wouldn't be able to capture that info.
If people e.g. use InternetExplorer and have security settings disabled, there is a way to capture the username.
But nobody will allow that, if security is important.
stackoverflow.com/questions/9518092/java...-of-the-current-user
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- Juseanma_117558
- Topic Author
- Visitor
5 years 2 months ago - 5 years 2 months ago #180899
by Juseanma_117558
Replied by Juseanma_117558 on topic Getting Active Directory Name of survey participant
Makes sense. I thought about webserver auth with kerberos or something like that. But no idea how to use this in a survey.
Last edit: 5 years 2 months ago by Juseanma_117558.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
5 years 2 months ago #180903
by jelo
In it's simplest form, you want to provide LimeSurvey the AD/name of the Windows usersession, the browser is running in. This information needs to be provided somewhere inside the company network.
The simplest way I think of, is to let admins create a landingpage on a Windows webserver (e.g with ASP.NET on a IIS) , where the AD/username is added to the URL as a parameter and the landingpage redirects to the LimeSurvey.
LimeSurvey gets the AD/username and can save it with the response.
The providing of the AD/username has to be done by the IT department. There are more secure ways than my example above, but that is not related to LimeSurvey.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Getting Active Directory Name of survey participant
There are ways to provide that information, but that is depending on the enviroment and the setup done by the admins inside the company. It's doesn't depend on LimeSurvey.efingdmi wrote: I thought about webserver auth with kerberos or something like that.
In it's simplest form, you want to provide LimeSurvey the AD/name of the Windows usersession, the browser is running in. This information needs to be provided somewhere inside the company network.
The simplest way I think of, is to let admins create a landingpage on a Windows webserver (e.g with ASP.NET on a IIS) , where the AD/username is added to the URL as a parameter and the landingpage redirects to the LimeSurvey.
LimeSurvey gets the AD/username and can save it with the response.
The providing of the AD/username has to be done by the IT department. There are more secure ways than my example above, but that is not related to LimeSurvey.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
5 years 2 months ago #180922
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Getting Active Directory Name of survey participant
For such system : i think i review a little the token entering process in a plugin :
1. Allow to connect via AD with a new plugin event : something using manual.limesurvey.org/NewUnsecureRequest or manual.limesurvey.org/NewDirectRequest
2. Create or find the related token in this function
3. Adding a button to token form in twig file.
1. Allow to connect via AD with a new plugin event : something using manual.limesurvey.org/NewUnsecureRequest or manual.limesurvey.org/NewDirectRequest
2. Create or find the related token in this function
3. Adding a button to token form in twig file.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
5 years 1 month ago #180967
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Getting Active Directory Name of survey participant
Requirement in the environment of the threadstarter: The admins won't allow a connection from LimeSurvey directly to AD. So I wonder what does "Allow to connect via AD"? will mean?DenisChenu wrote: 1. Allow to connect via AD with a new plugin event : something using manual.limesurvey.org/NewUnsecureRequest or manual.limesurvey.org/NewDirectRequest
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
5 years 1 month ago #181003
by DenisChenu
AD is based on LDAP
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Getting Active Directory Name of survey participant
manual.limesurvey.org/Authentication_plugins#LDAPjelo wrote: …
So I wonder what does "Allow to connect via AD"? will mean?
AD is based on LDAP
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
5 years 1 month ago #181039
by jelo
Once again: "The admins won't allow a connection from LimeSurvey directly to AD." So how is your " Allow to connect via AD with a new plugin event :" fitting in?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Getting Active Directory Name of survey participant
Yes, I'm aware of that.DenisChenu wrote: AD is based on LDAP
Once again: "The admins won't allow a connection from LimeSurvey directly to AD." So how is your " Allow to connect via AD with a new plugin event :" fitting in?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
5 years 1 month ago #181043
by DenisChenu
If database is unavailbale : plugin can break rules … and can not make LimeSurey work.
I AD is not accessible via an LDAP connection : plugin can break rules …
My answer was exactly this one
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Getting Active Directory Name of survey participant
No, plugin can‘t break rules …jelo wrote: …
" So how is your " Allow to connect via AD with a new plugin event :" fitting in?
If database is unavailbale : plugin can break rules … and can not make LimeSurey work.
I AD is not accessible via an LDAP connection : plugin can break rules …
My answer was exactly this one
But if AD admin don't want then i don't doFor such system : i think i review a little the token entering process in a plugin :
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.