Page tree
Skip to end of metadata
Go to start of metadata

Using Internal Authentication

We recommend updating the authentication system from apache to htpasswd (so NMIS does authentication instead of Apache). 3 steps need to be taken to change this.

Change Config.nmis to tell NMIS to use htpasswd 

%hash = (
 'authentication' => {
   'auth_method_1' => 'htpasswd',  # <= change this FROM apache TO htpasswd

Backup old apache config

Generate new apache configuration (if you have customised yours edit it and remove the auth portions instead of generating a new one) 

#backup old config
cp00nmis.conf 00nmis.conf.pre-8.4.6G.bak

Update Apache Config for NMIS

Create new config to replace old config and restart apache 

/usr/local/nmis8/bin/ type=apache > /etc/httpd/conf.d/00nmis.conf
service httpd restart


Troubleshooting Internal Authentication for opCharts

1. First this to double-check is if opCharts is running in standalone mode or not, it should not be.  Details here: opCharts Administration Guide

2. Second thing is see if there is a users.dat and Users.nmis file in /usr/local/omk/conf, if there is rename it and try to login with the users.  

3. It should work now, if not Sym link /usr/local/nmis8/conf/Users.nmis to /usr/local/omk/conf/Users.nmis

Sym Link
ln -s /usr/local/nmis8/conf/users.dat /usr/local/omk/conf/users.dat
ln -s /usr/local/nmis8/conf/Users.nmis /usr/local/omk/conf/Users.nmis




  • No labels


  1. Note: I was having no luck with authntication until I symlinked 'users.dat' rather than 'Users.nmis'. It appears that this page might be outdated?

    1. Thanks Bryan, documentation updated.