Welcome, Guest
Username: Password: Remember me

TOPIC: Settings for plugin AuthLDAP - HELP ME!

Settings for plugin AuthLDAP - HELP ME! 2 months 2 weeks ago #104783

  • Concordia
  • Concordia's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
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]

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: 2 months 2 weeks ago by Concordia. Reason: formating was incorrect
The administrator has disabled public write access.

Settings for plugin AuthLDAP - HELP ME! 2 months 2 weeks ago #104795

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 5866
  • Thank you received: 718
  • Karma: 222
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
The administrator has disabled public write access.

Settings for plugin AuthLDAP - HELP ME! 2 months 1 week ago #104864

  • Concordia
  • Concordia's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
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.
The administrator has disabled public write access.

Settings for plugin AuthLDAP - HELP ME! 2 months 1 week ago #104893

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 5866
  • Thank you received: 718
  • Karma: 222
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
The administrator has disabled public write access.

Settings for plugin AuthLDAP - HELP ME! 2 months 1 week ago #104929

  • Concordia
  • Concordia's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
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!
The administrator has disabled public write access.

Settings for plugin AuthLDAP - HELP ME! 2 months 1 week ago #104934

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 5866
  • Thank you received: 718
  • Karma: 222
Hi,

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

Denis
The administrator has disabled public write access.

Settings for plugin AuthLDAP - HELP ME! 2 months 1 week ago #104973

  • Concordia
  • Concordia's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
Done,

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

Thanks!
The administrator has disabled public write access.
Time to create page: 0.108 seconds
Donation Image