GithubHelp home page GithubHelp logo

Comments (2)

fiwswe avatar fiwswe commented on May 28, 2024

The code should probably use the Server class (inc/Input/Server.php) instead of accessing $_SERVER directly. That would avoid these types of exceptions. (No idea if the code would be correct when there is no $_SERVER['REMOTE_USER'] though.)

Note: I don't have an AD to test so someone else will have to create a PR, sorry.

from dokuwiki.

splitbrain avatar splitbrain commented on May 28, 2024

Line in question is part of the adLDAP library:

if ($this->useSSO && $_SERVER['REMOTE_USER'] && $_SERVER['REMOTE_USER'] == $username && $this->adminUsername === NULL && $_SERVER['KRB5CCNAME']) {

However this line would only be triggered when using that library's useSSO config feature. The error also would only occur if the web server did not set the appropriate headers needed for Single Sign On.

Usually useSSO should not be enabled at all. For Single Sign On, the plugin's own sso config option should be enabled. SSO is then handled within the plugin and not in the library (and would use the appropriate Input wrapper as suggested by @fiwswe).

I also don't see how this should be related to Kaos at all. It might be related to a PHP upgrade or to a loss of SSO configuration at the web server level.

I will close this as this seems to be a misconfiguration of the authAD plugin (a configuration btw. that was not provided in the bug report!).

@rldml if you think that's wrong, reply with more info, detailing your configuration and SSO setup.

from dokuwiki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.