Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Settings for plugin AuthLDAP - HELP ME!

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

  • Concordia
  • Concordia's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Thank you received: 3
  • 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: 9 months 2 weeks ago by Concordia. Reason: formating was incorrect
The administrator has disabled public write access.

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

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 868
  • Karma: 257
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! 9 months 1 week ago #104864

  • Concordia
  • Concordia's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Thank you received: 3
  • 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! 9 months 1 week ago #104893

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 868
  • Karma: 257
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! 9 months 1 week ago #104929

  • Concordia
  • Concordia's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Thank you received: 3
  • 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! 9 months 1 week ago #104934

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 868
  • Karma: 257
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! 9 months 1 week ago #104973

  • Concordia
  • Concordia's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Thank you received: 3
  • 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.

Settings for plugin AuthLDAP - HELP ME! 5 months 1 week ago #109956

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

Settings for plugin AuthLDAP - HELP ME! 5 months 1 week ago #109969

  • Concordia
  • Concordia's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Thank you received: 3
  • Karma: 0
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 administrator has disabled public write access.
The following user(s) said Thank You: nexus00

Settings for plugin AuthLDAP - HELP ME! 5 months 1 week ago #109970

  • nexus00
  • nexus00's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
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 ?
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.124 seconds
Donation Image