The place for more technical questions for those who want to create new pagetypes or bespoke functionality.

LDAP problems, Cant see logs

  • franhoey
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 8 months ago #3308 by franhoey
Replied by franhoey on topic LDAP problems, Cant see logs
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.

  • franhoey
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 8 months ago #3309 by franhoey
Replied by franhoey on topic LDAP problems, Cant see logs
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.

More
10 years 8 months ago - 10 years 8 months ago #3310 by tom
Replied by tom on topic LDAP problems, Cant see logs
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)
Last edit: 10 years 8 months ago by tom.

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

  • franhoey
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 8 months ago #3314 by franhoey
Replied by franhoey on topic LDAP problems, Cant see logs
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.

More
10 years 8 months ago #3318 by tom
Replied by tom on topic LDAP problems, Cant see logs
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.

Moderators: JohnSmith
Time to create page: 0.290 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo