Welcome, Guest
Username: Password: Remember me
The place for more technical questions for those who want to create new pagetypes or bespoke functionality.
  • Page:
  • 1
  • 2

TOPIC:

LDAP problems, Cant see logs 8 years 5 months ago #3308

  • franhoey
  • franhoey's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Right, it's working, but I think I've found a few issue on the way

First the fix
The root of the issue is hosting in Azure which doesn't have the ldap library, for anyone else reading this it's a simple fix

1. Upload the php_ldap.dll (also libeay32.dll and ssleay32.dll) to a folder in the root of the website called bin
2. In the azure portal add an application setting called "PHP_Extensions" with a value of "bin/php_ldap.dll"

The problems
1. The ldap.php file is still looking for settings in the ldap table, but the management screen is saving to sitedetails, I needed to edit the table directly
2. I still cant get logging to work, I ended up putting in my own code in ldap.php to log out the debug messages

Please Log in or Create an account to join the conversation.

LDAP problems, Cant see logs 8 years 5 months ago #3309

  • franhoey
  • franhoey's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Just found logs!

In azure when you FTP in there is a folder called LogFiles in the FTP root, in there I found a file called php_errors which seems to have all the debug messages and errors.

Please Log in or Create an account to join the conversation.

LDAP problems, Cant see logs 8 years 5 months ago #3310

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1291
  • Thank you received: 308
These are the webserver error logs which (obviously) are very usefull.

It seems that something else is not installed that prevents xerte from wrinting it's own debug.log.

In 3.0 the case that the ldap data is in site_details and not in the ldap table really should be ahndled correctly. I'll check the code again. You should not have to edit the ldap table yourself (but of course it helps, because ultimately, that's where the Ldap.php code reads it's configuration from)

Please Log in or Create an account to join the conversation.

Last edit: by tom.

LDAP problems, Cant see logs 8 years 5 months ago #3314

  • franhoey
  • franhoey's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Solved the debug logging issue too, looks like it's probably a windows only issue. Writing to "/somefile/path.ext" isn't allowed, but "somefile/path.ext" with the the "/" at the start does work.

E.g. "/tmp/debug.log" needs to be changed to "tmp/debug.log" in Windows.

Thanks
Fran

Please Log in or Create an account to join the conversation.

LDAP problems, Cant see logs 8 years 5 months ago #3318

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1291
  • Thank you received: 308
Windowsve ... that should have triggered it for me too.

You can d:/tmp...

If you use / as the first charcter it will try to write to the current defailt drive, whatever that happens to be.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Moderators: JohnSmith
Time to create page: 0.052 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search