-
2013-08-06
ageld
When I enabled Active Directory authentication with or without SSO, JavaScript toolbar disappears. Here is my AD configuration:
/<?php
// general DokuWiki options
$conf['useacl'] = 1;
$conf['disableactions'] = 'register';
//$conf['authtype'] = 'ad';
$conf['authtype'] = 'authad';
// configure your Active Directory data here
$conf['auth']['ad']['account_suffix'] = '@ourdomain.local';
$conf['auth']['ad']['base_dn'] = 'DC=domain,DC=local';
$conf['auth']['ad']['domain_controllers'] = dc1.domain.local, dc2.domain.local'; //multiple can be given
$conf['auth']['ad']['ad_username'] = 'removed';
$conf['auth']['ad']['ad_password'] = 'removed';
$conf['auth']['ad']['sso'] = 1;
$conf['auth']['ad']['real_primarygroup'] = 1;
$conf['auth']['ad']['use_ssl'] = 0; // Don't have ssl/tls options enabled at the same time.
$conf['auth']['ad']['use_tls'] = 0; // Only one of them.
$conf['auth']['ad']['debug'] = 1;
$conf['auth']['ad']['recursive_groups'] = 0; // If number of groups in AD is large switching to 0 will improve performance, but indirect membership will not work
$conf['auth']['ad']['additional'] = 'department,office'; // additional attributes to fetch
// warn user about expiring password this many days in advance (in version 2012-03-10 and higher):
$conf['auth']['ad']['expirywarn'] = 5;
$conf['superuser'] = '@Domain Admins';
$conf['user']='@Domain Users';
When debugging the scripts on the client side, the following errors were displayed:
SCRIPT5009: 'LANG' is undefined
js.php?tseed=1375731201, line 24 character 52630
SCRIPT5009: 'toolbar' is undefined
js.php?tseed=1375731201, line 24 character 46249
When I rename local.protected.php to local.protected.php.bak to disable AD authentication, and use local authentication, the toolbar works fine.
I will greatly appreciate any suggestion on how this issue can be fixed.
-
2013-09-21
Klap-in
Do you receive errors in your PHP server log?
-
2013-09-23
ageld
I am running PHP on IIS. I did not see any errors on IIS side. I turned on logging on php, but no logs were generated.
-
2013-09-23
Klap-in
No idea whether it is related, but in weatherwax the auth backend with config settings $conf['auth']['ad'] are converted to auth plugins with settings $conf['plugin']['authad'].
Maybe not all settings are updated fine? Can you update $conf['auth']['ad'] to $conf['plugin']['authad']
I have no idea how this should be related, but maybe it gives somewhere a chained reaction.
-
2013-10-12
andi
This makes no sense. LANG and toolbar get defined in js.php - and even relatively early as well. So you should either have no JavaScript at all or these variables should be defined. Since you get JS errors at line 24:52630 there seems to be some javascript loaded. I also don't see how AD should be related to that.
Without any additional information, I fear we can't fix this. Try loading lib/exe/js.php directly and check its output for the existance of the LANG definition or if there are any errors to be seen in the output itself.
-
2013-10-15
ageld
It may not have sense, but this is what I observe. I will try to do the suggested change: ad to authad and back to see if any of the settings can fix the issue.
-
2014-02-15
andi
no feedback given