Loading...
 
LDAP / Active directory

LDAP / Active directory


Error with smarty permissions and LDAP Group including "," (

Germany

Hi

I hope this is the corrent forum to use.

We are using Tiki 5.1 with LDAP Authentication. LDAP works fine so far. Permissions inside Tiki should be realized using LDAP (AD) Groups, adding/removing Users to AD Group to grant or revoke permissions in Tiki.
Synchronisation between AD -> Tiki works too... but
we have AD Groups with "," in its group name.
In /lib/smarty_tiki/function.treetable.php > function smarty_function_treetable() the $_checkbox and $_checkboxColumnInxed use preg_split() with "," as split character. This results in the error message: {treetable}: Number of items in _checkboxColumnIndex doesn not match items in _checkbox.
e.g. $_checkbox

Copy to clipboard
Array ( [0] => perm[Anonymous] [1] => perm[Registered] [2] => perm[BCIWEB_AG] [3] => perm[RBG [4] => Web Aministation & Entwicklung Team] ) $_checkboxColumnIndex Array ( [0] => Anonymous_hasPerm [1] => Registered_hasPerm [2] => BCIWEB_AG_hasPerm [3] => RBG, Web Aministation & Entwicklung Team_hasPerm )

Quickest (and dirtiest) way to fix it should be removing "," from AD Groupnames.
Other possibilities could be:

  • Changing Name in Database once, hoping it does not get re-synchonised with AD
  • Using a character for "encoding" parameters which can't be used in AD Names


Any other quick fix I forgot?

Sven

There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting