Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.
  • Page:
  • 1

TOPIC:

Xerte - management.php 9 years 10 months ago #2543

  • gballantine
  • gballantine's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
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,
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
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   |
+---------+----------------+---------------------------+-----------+--------------------------------------------------------------------------+---------------+-------------------------------------------------+-------------+------------------+

Please Inloggen or Create an account to join the conversation.

Last edit: by gballantine.

Xerte - management.php 9 years 9 months ago #2544

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
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
website_code/php/management/site_details_management.php
The following user(s) said Thank You: gballantine

Please Inloggen or Create an account to join the conversation.

Last edit: by tom.

Xerte - management.php 9 years 9 months ago #2545

  • gballantine
  • gballantine's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Thanks, I have changed the query to:
$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 Inloggen or Create an account to join the conversation.

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

Search