Report any technical problems you discover and discuss solutions.

Xerte - management.php

  • gballantine
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 6 months ago - 11 years 6 months ago #2543 by gballantine
Xerte - management.php was created by gballantine
Changing anything in management.php appears to save all the settings that appear in management.php.

This is problematic if you have 2 separate domains,
Code:
select * from ldap; +---------+----------------+---------------------------+-----------+--------------------------------------------------------------------------+---------------+-------------------------------------------------+-------------+------------------+ | ldap_id | ldap_knownname | ldap_host | ldap_port | ldap_username | ldap_password | ldap_basedn | ldap_filter | ldap_filter_attr | +---------+----------------+---------------------------+-----------+--------------------------------------------------------------------------+---------------+-------------------------------------------------+-------------+------------------+ | 1 | | staff.example.ac.uk | 389 | CN=Bind User,OU=Department,OU=People,DC=staff,DC=example,DC=ac,DC=uk | somepass | OU=People,DC=staff,DC=example,DC=ac,DC=uk | cn= | sAMAccountName | | 2 | | student.example.ac.uk | 389 | CN=Bind User,OU=Department,OU=People,DC=staff,DC=example,DC=ac,DC=uk | somepass | OU=People,DC=student,DC=example,DC=ac,DC=uk | cn= | sAMAccountName | +---------+----------------+---------------------------+-----------+--------------------------------------------------------------------------+---------------+-------------------------------------------------+-------------+------------------+

When You click on the save button this happens
Code:
select * from ldap; +---------+----------------+---------------------------+-----------+--------------------------------------------------------------------------+---------------+-------------------------------------------------+-------------+------------------+ | ldap_id | ldap_knownname | ldap_host | ldap_port | ldap_username | ldap_password | ldap_basedn | ldap_filter | ldap_filter_attr | +---------+----------------+---------------------------+-----------+--------------------------------------------------------------------------+---------------+-------------------------------------------------+-------------+------------------+ | 1 | | staff.example.ac.uk | 389 | CN=Bind User,OU=Department,OU=People,DC=staff,DC=example,DC=ac,DC=uk | somepass | OU=People,DC=staff,DC=example,DC=ac,DC=uk | cn= | sAMAccountName | | 2 | | staff.example.ac.uk | 389 | CN=Bind User,OU=Department,OU=People,DC=staff,DC=example,DC=ac,DC=uk | somepass | OU=People,DC=staff,DC=example,DC=ac,DC=uk | cn= | sAMAccountName | +---------+----------------+---------------------------+-----------+--------------------------------------------------------------------------+---------------+-------------------------------------------------+-------------+------------------+
Last edit: 11 years 6 months ago by gballantine.

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

More
11 years 6 months ago - 11 years 6 months ago #2544 by tom
Replied by tom on topic Xerte - management.php
Fixing this will require quite some work on the management.php code.

As you seem to handle mysql on the db level, as stop-gap solution, you might want to change the update query in
Code:
website_code/php/management/site_details_management.php
Last edit: 11 years 6 months ago by tom.
The following user(s) said Thank You: gballantine

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

  • gballantine
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 6 months ago #2545 by gballantine
Replied by gballantine on topic Xerte - management.php
Thanks, I have changed the query to:
Code:
$query = "UPDATE {$xerte_toolkits_site->database_table_prefix}ldap SET ldap_host = ?, ldap_port = ?, ldap_username = ?, ldap_password = ?, ldap_basedn = ?, ldap_filter = ?, ldap_filter_attr = ? WHERE ldap_id = 1";

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

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