Settings for plugin AuthLDAP - HELP ME!

More
3 years 8 months ago - 3 years 8 months ago #104783 by Concordia
Concordia created the topic: Settings for plugin AuthLDAP - HELP ME!
Hi,

I've been trying to get the limesurvey LDAP plugging working.
I need it in order to log into the admin console using my AD(active directory)account.

So far I have enabled php_LDAP.dll in php.ini.
My php info shows that LDAP is enabled.

Then I set my LDAP server parameters in LDAP.php (application\config\LDAP.php)
$serverId=0;
$LDAP_server[$serverId] = "server.somefakedomain.ca";
$LDAP_server[$serverId] = "ldapv2";
$LDAP_server[$serverId] = "ldaps";
$LDAP_server[$serverId] = false;
$LDAP_server[$serverId] = "CN=iits_portal,OU=Roles,DC=somefakedomain,DC=ca";
$LDAP_server[$serverId] = "somepass";

Then added this line :
$config = true;
to config.php (application\config\config.php)

Then I enter the Settings for plugin AuthLDAP.[img size=9kb] [img=http://s3.postimg.org/4bzbdnstr/Capture.jpg] [/img]

I'm not sure if any of what I have done above is even working?
How do I now use my AD user name and login to access the admin console?

I'm stumped..... there is no way to check if any of my settings are helping me get closer to my goal of logging in using LDAP, as there is no clear documentation.

If you help me set this up I would be glad to create a document explaining how to setup user authentication through LDAP .

Thank you!
Last Edit: 3 years 8 months ago by Concordia. Reason: formating was incorrect

Please Log in to join the conversation.

More
3 years 8 months ago #104795 by DenisChenu
DenisChenu replied the topic: Settings for plugin AuthLDAP - HELP ME!
Hi,

LDAP authentification are really updated for 2.05 system.
=> You don't need to update anything in php file (i think) : go to Plugin setting and put the information here.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 8 months ago #104864 by Concordia
Concordia replied the topic: Settings for plugin AuthLDAP - HELP ME!
Hi Denis,

I am using v 2.05, here are my settings.
Can you please confirm if I don't need to update anything in php file?
Is there any official documentation on how the LDAP plugin works?
I would really like to get this working.

Thank for your time.

Please Log in to join the conversation.

More
3 years 8 months ago #104893 by DenisChenu
DenisChenu replied the topic: Settings for plugin AuthLDAP - HELP ME!
Hi,

Seems good, but i'm not LDAP specialist.

Can you activate "debug mode" in your application/config.config.php
Did you have php-LDAP in your server
Did you have access to your LDAP authentification server log ?

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 8 months ago #104929 by Concordia
Concordia replied the topic: Settings for plugin AuthLDAP - HELP ME!
Bonjour Denis,

I got it working.
Firstly I was using the incorrect "LDAP version" should of used version 3.

Secondly by enabling "debug mode" in application/config.config.php, I was able to see that the "Username suffix e.g. @mydomain.com or remaining part of LDAP query" syntax was incorrect.

Here is an example of correct settings.

To test if LDAP Auth is working,
we create a limesurvey administrator with the same name a AD(active directory) user account.
We log out of limesurvey.
Then we log in using the AD credentials(username and password).
If you can log into limesurvey using your AD username and password... IT WORKS!

I hope this helps others with the same problem.

Merci pour ton temps!

Please Log in to join the conversation.

More
3 years 8 months ago #104934 by DenisChenu
DenisChenu replied the topic: Settings for plugin AuthLDAP - HELP ME!
Hi,

Our LDAD documentation is clearly outdated. If you have time to update it, it can be really great.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 8 months ago #104973 by Concordia
Concordia replied the topic: Settings for plugin AuthLDAP - HELP ME!
Done,

manual.limesurvey.org/LDAP_settings
Enabling and Configuring Settings for plugin AuthLDAP v2.05+

Thanks!

Please Log in to join the conversation.

More
3 years 4 months ago #109956 by nexus00
nexus00 replied the topic: Settings for plugin AuthLDAP - HELP ME!
Hello,

I can't find a clear tutorial about how to import LDAP contacts with the plugin. I run on 2.05+, so there is no need to modify a config file ? Right ? Anyway, I don't even know how to configure the plugin...

Regards

Please Log in to join the conversation.

More
3 years 4 months ago #109969 by Concordia
Concordia replied the topic: Settings for plugin AuthLDAP - HELP ME!
Hey,

I had documented this a while ago, but my changes were reverted by LimeSurvey wiki admins.
Let me know if you need help.

manual.limesurvey.org/index.php?title=LDAP_settings&oldid=60595

Enabling and Configuring Settings for plugin AuthLDAP v2.05+

1)Enable LDAP in PHP.INI.
2)Verify that phpinfo.php shows that LDAP is enabled.
3)Go to LimeSurvey Plugin Manager.
4)Configure LDAP plugin.
Example settings:
LDAP server e.g. LDAP://LDAP.mydomain.com: LDAP://LDAP.mydomain.com
Port number (default when omitted is 389):
LDAP version (LDAPv2 = 2), e.g. 3: 3
Username prefix cn= or uid=: cn=
Username suffix e.g. @mydomain.com or remaining part of LDAP query: ,OU=people,DC=mydomain,DC=com
5)Create a LimeSurvey administrator with the same name as a AD(active directory) user account.
6)Log in using the AD credentials(username and password).
The following user(s) said Thank You: nexus00

Please Log in to join the conversation.

More
3 years 4 months ago #109970 by nexus00
nexus00 replied the topic: Settings for plugin AuthLDAP - HELP ME!
Thanks, it seems to work.

I didn't knew I had to create the same user as the one in the AD. It's kinda useless : on the other softwares I tested, you can login by just tipping your AD credentials.

Do you know if it's possible to import (and keep synchronized) the AD users to the contacts database ?

Regards

PS : You are french ?

Please Log in to join the conversation.

More
3 years 4 months ago #109971 by DenisChenu
DenisChenu replied the topic: Settings for plugin AuthLDAP - HELP ME!
Hi concordia , because The LDAP AUth don't need update of any file.

Only the LDAP import need update of config.php (like it's shown on actual version).
For AuthLDAP : manual.limesurvey.org/Authentication_plugins

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: Concordia

Please Log in to join the conversation.

More
3 years 4 months ago #109972 by DenisChenu
DenisChenu replied the topic: Settings for plugin AuthLDAP - HELP ME!
Because actually we don't work on 'create user', you can make a pull request.

You can adapt AuthByWordpress plugin :
git.sondages.pro/?p=ls-authwpbydb.git/.g...181b9aa;hb=HEAD#l137

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 4 months ago #109974 by Concordia
Concordia replied the topic: Settings for plugin AuthLDAP - HELP ME!
Denis answered your question.

I do speak French, but I'm not French.

Please Log in to join the conversation.

More
3 years 4 months ago #109976 by nexus00
nexus00 replied the topic: Settings for plugin AuthLDAP - HELP ME!
OK,

So I have to define my LDAP server in config.php but not in LDAP.php ? I was sure it was in LDAP.php in the previous version...

Please Log in to join the conversation.

More
3 years 4 months ago #109981 by DenisChenu
DenisChenu replied the topic: Settings for plugin AuthLDAP - HELP ME!
LDAP.php for importing, you can, but better in config.php : then you are sure it's not replaced when LS core are updated.

@Concordia :it's OK for you for manual update ? Moving to AuthPlugin seem ok for me :).

Denis
PS: I'm French ...

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now