Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Questions on getting Xerte Toolkits installed on your server and questions about authentication and user logins.

TOPIC:

ldap configuration on xertetoolkits 2.1 10 years 9 months ago #1236

  • bogaerbr
  • bogaerbr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 0
Hallo,

I have some trouble getting my xerte to authenticate with ldap.
I had no issues installing XOT (2.1) on my LAMP server.
On that server I installed a owncloud that does authenticate using ldap.
In attachment screenshots of the configuration of ldap for authentication in owncloud.
ldap authentication in owncloud works.

I would like to use ldap for authentication in xerte as well.
First: where do I configure for ldap?
(of course I set the auth_config.php file to use Ldap as authentication method)
next? Do I set the configuration for ldap in
/library/Xerte/Authentication/Ldap.php
or do I set the ldap configuration through
<ldap setting> in the Site Administration?
Or both?

Next: Can anyone suggest me a configuration for my xerte server based on the settings that work for my owncloud server?

Thank you for helping me with this issue,

Bruno Van Bogaert
Attachments:

Please Inloggen or Create an account to join the conversation.

ldap configuration on xertetoolkits 2.1 10 years 8 months ago #1294

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
Hello,

I'll setup an LDAP server (in this case probably the SAMBA 3 ldap backend) to test and see if I can help you out.

Please bear with us.

Please Inloggen or Create an account to join the conversation.

ldap configuration on xertetoolkits 2.1 10 years 8 months ago #1296

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
Please try the contents of the attached .zip file in stead of library/Xerte/Authentication/Ldap.php

File Attachment:

File Name: Ldap.zip
File Size:2 KB


Based on your screen shots I would set the following:
host: ldap.vub.ac.be
port: 389
ldap passwd (leave empty)
ldap base : ou=vub,ou=people,o=bfucc
ldap bind : (The User DN of screenshot 1)
LDAP main filter : cn
Ldap second filter uid=

If that doesn't work, can you please cyhange config.php, and make sure that around lin 26, $develop is set to true, and check the location of the debug.log file a few lines below that.

Try to login again and check the debug.log file for clues.
Attachments:

Please Inloggen or Create an account to join the conversation.

ldap configuration on xertetoolkits 2.1 10 years 8 months ago #1313

  • bogaerbr
  • bogaerbr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 0
Hallo Tom,

I tried your suggestion.
It does not work (yet).
The debug file contains a single line:
2014-03-08 01:12:11 /var/www/xerte/website_code/php/database_library.php139Running : SELECT * FROM sitedetails

I do not know what to do with it....

Bruno

Please Inloggen or Create an account to join the conversation.

ldap configuration on xertetoolkits 2.1 10 years 8 months ago #1314

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
Hmm, it looks like ldap is not selected in auth_config.php

Please Inloggen or Create an account to join the conversation.

ldap configuration on xertetoolkits 2.1 10 years 8 months ago #1315

  • bogaerbr
  • bogaerbr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 0
Whoaaw!
What a fast reply!!

OK.
Let's have a look at the auth_config file


//$xerte_toolkits_site->authentication_method = 'Guest';
$xerte_toolkits_site->authentication_method = 'Ldap';
//$xerte_toolkits_site->authentication_method = 'Db';
$xerte_toolkits_site->authentication_method = 'Static';
//$xerte_toolkits_site->authentication_method = "Moodle";

Can it be that the problem is related to the fact that I choose BOTH ldap and static?

Bruno

Please Inloggen or Create an account to join the conversation.

Time to create page: 0.051 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search