Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix LDAP AD add-on not loading issue
Myself and multiple others have had issues when trying to set-up the LDAP/AD add-on. Seemed like no matter  what we tried it would not load anything. After making these changes it now works perfectly!

Signed-off-by: hawkinzzz <hawkinzzz@hotmail.co.uk>
  • Loading branch information
HawksRepos committed May 15, 2021
commit 866d81fe969eb9faf7fa10acfa35233aed1e34b8
2 changes: 2 additions & 0 deletions apps/user_ldap/ajax/clearMappings.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
*
*/

require_once($_SERVER['DOCUMENT_ROOT'].'/lib/base.php');

use OCA\User_LDAP\Mapping\UserMapping;
use OCA\User_LDAP\Mapping\GroupMapping;

Expand Down
3 changes: 3 additions & 0 deletions apps/user_ldap/ajax/deleteConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
*/

// Check user and app status

require_once($_SERVER['DOCUMENT_ROOT'].'/lib/base.php');

\OC_JSON::checkAdminUser();
\OC_JSON::checkAppEnabled('user_ldap');
\OC_JSON::callCheck();
Expand Down
3 changes: 3 additions & 0 deletions apps/user_ldap/ajax/getConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
*/

// Check user and app status

require_once($_SERVER['DOCUMENT_ROOT'].'/lib/base.php');

\OC_JSON::checkAdminUser();
\OC_JSON::checkAppEnabled('user_ldap');
\OC_JSON::callCheck();
Expand Down
3 changes: 3 additions & 0 deletions apps/user_ldap/ajax/getNewServerConfigPrefix.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
*/

// Check user and app status

require_once($_SERVER['DOCUMENT_ROOT'].'/lib/base.php');

\OC_JSON::checkAdminUser();
\OC_JSON::checkAppEnabled('user_ldap');
\OC_JSON::callCheck();
Expand Down
3 changes: 3 additions & 0 deletions apps/user_ldap/ajax/setConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
*/

// Check user and app status

require_once($_SERVER['DOCUMENT_ROOT'].'/lib/base.php');

\OC_JSON::checkAdminUser();
\OC_JSON::checkAppEnabled('user_ldap');
\OC_JSON::callCheck();
Expand Down
3 changes: 3 additions & 0 deletions apps/user_ldap/ajax/testConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
*/

// Check user and app status

require_once($_SERVER['DOCUMENT_ROOT'].'/lib/base.php');

\OC_JSON::checkAdminUser();
\OC_JSON::checkAppEnabled('user_ldap');
\OC_JSON::callCheck();
Expand Down
3 changes: 3 additions & 0 deletions apps/user_ldap/ajax/wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
*/

// Check user and app status

require_once($_SERVER['DOCUMENT_ROOT'].'/lib/base.php');

\OC_JSON::checkAdminUser();
\OC_JSON::checkAppEnabled('user_ldap');
\OC_JSON::callCheck();
Expand Down