Where to set logon method

Hi there,

I am managing an installation done by a colleague quite a white ago. Its a multisite setup, using only one instance though.
I would like to change the basic logon to the html form but I am unable to find out where to find this setting.
When I create a new instance with omd, the new site uses the html form.
Please be kind with this noob :wink:

thanks a lot

Axcro

Hi @axcro7,

Welcome to community!

Which version of check_mk are you using ? and itā€™s the same version of the previous setup ?

Hi and sorry for the late reply - I have been knocked out for a few days ā€¦

We are currently at Raw 1.4.0p23 (I am planing to update to 1.6.x soon)

when creating a new site with version 1.4.0p23, it prompts me straight with the HTML form:
grafik

the old site presents this:
grafik

To me it looks like its a site specific setting. But where can I change this?

Thanks in advance

Any help would be appreciated

Hi,
you could search for Auth in files under /omd/sites/yoursite/etc/apache/ where yoursite is the name of the site with http auth. You also could compare etc/apache/ folder of both sites (the one with http auth and the one with html form).

Hope it helps.

Hi,
Thanks for this suggestion, but I digged through nearly every file under /opt/omd/sites/mysite and /opt/omd/sites/testsite and found no differences!

This is what /opt/omd/sites/mysite/apache/conf.d/auth.conf looks like:

# General auth configuration for this site
#
<Location "/mysite">
  Order allow,deny
  Allow from all

  AuthName "OMD Monitoring"
  AuthType Basic
  AuthUserFile /omd/sites/mysite/etc/htpasswd
  require valid-user
</Location>

The config of the new site is exactly the same (except the sitename of course)
I changed the Test in AuthName to see it changes the output of the prompt, but it didnā€™t.

As the Text here is like "OMD Monitoring sitename" I guess it comes from /opt/omd/versions/1.4.0p23.cre/share/omd/htdocs/logout.php

<?php
$site_parts = array_slice(explode('/' ,dirname($_SERVER["SCRIPT_FILENAME"])), 0, -3);
$OMD_SITE = $site_parts[count($site_parts)-1];

if(!isset($_COOKIE['omd_logout'])) {
    header("WWW-Authenticate: Basic realm=\"OMD Monitoring Site ".$OMD_SITE."\"");
    header("HTTP/1.1 401 Unauthorized");
    setcookie('omd_logout', '1', time()+3600);
    exit(1);
} else {
    setcookie('omd_logout', '', -1);
}
?>
<html>
<head>
<title>Redirecting...</title>
<meta http-equiv="REFRESH" content="0;url=/<?php echo $OMD_SITE; ?>/omd/index.py">
</head>
</html>

I tried diffent browsers and private Tabs to make sure itā€™s not a cookie

I have absolutely no clue where the AuthType might have been set :frowning:

Any ideas?
Can this be caused by the multisite configuration? we actualy donā€™t use more than one site

Issue was resolved here:

Thanks again :slight_smile: