opennetadmin / ona

OpenNetAdmin IP Address Management (IPAM) system
opennetadmin.com
GNU General Public License v2.0
136 stars 34 forks source link

dcm.pl uses with local user #181

Open HugoTH85 opened 5 months ago

HugoTH85 commented 5 months ago

I am trying to use the dcm.pl plugin and I have noticed that I can't use the "admin" user to add some hosts for example. However, it works with users logged from LDAP. I am trying this command :

./dcm.pl -r add_vlan_campus name="test" -l admin -p admin

and it returns to me this :

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Unauthorized</title>
</head><body>
<h1>Unauthorized</h1>
<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.4.38 (Debian) Server at localhost Port 80</address>
</body></html>

Is it normal or does it require a specific configuration ?