Replies: 2 comments 3 replies
-
Well your instance is still configured to use auth_basic, which is the password file that you specified, most likely, in .htaccess. To use LDAP you have to disable the auth_basic.
Scott
…________________________________
From: cedgnans ***@***.***>
Sent: Thursday, November 7, 2024 10:58 AM
To: opendcim/openDCIM ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [opendcim/openDCIM] Asking help for LDAP configuration (Discussion #1576)
Hello. I'm asking for help please. I've been trying to configure LDAP authentification for my openDCIM.
I've followed the documentation on https://github.com/opendcim/openDCIM/wiki/LDAP and read the video on youtube but I'm not able to do it.
I've thought that it was my openLDAP architecture (tree) but when I even change to reproduce exactly the architecture in the youtube video it didn't work
The worst things it that I don't know where the problem is.
Here is the apache error log
***@***.***:/var/log/apache2$ sudo tail -f error.log
[sudo] password for dcim-admin:
[Thu Nov 07 09:37:28.490791 2024] [auth_basic:error] [pid 67936] [client 192.168.60.199:59866] AH01618: user noc not found: /
[Thu Nov 07 09:37:45.894407 2024] [auth_basic:error] [pid 67945] [client 192.168.60.199:48682] AH01618: user admin not found: /
[Thu Nov 07 11:05:16.074610 2024] [auth_basic:error] [pid 69916] [client 192.168.60.199:46096] AH01617: user dcim: authentication failure for "/": Password Mismatch
[Thu Nov 07 11:05:30.826310 2024] [auth_basic:error] [pid 67940] [client 192.168.60.199:60828] AH01618: user noc not found: /
[Thu Nov 07 11:08:34.858543 2024] [auth_basic:error] [pid 68788] [client 192.168.60.199:54374] AH01618: user noc not found: /
[Thu Nov 07 11:19:36.798751 2024] [auth_basic:error] [pid 69569] [client 192.168.60.199:35174] AH01617: user dcim: authentication failure for "/": Password Mismatch
[Thu Nov 07 11:21:14.218118 2024] [auth_basic:error] [pid 67939] [client 192.168.60.199:52608] AH01618: user customer not found: /
[Thu Nov 07 14:46:10.040417 2024] [auth_basic:error] [pid 67937] [client 192.168.60.199:42036] AH01617: user dcim: authentication failure for "/": Password Mismatch
[Thu Nov 07 14:46:52.989846 2024] [auth_basic:error] [pid 70408] [client 192.168.60.199:54734] AH01618: user noc not found: /
[Thu Nov 07 14:47:02.690303 2024] [auth_basic:error] [pid 67938] [client 192.168.60.199:43992] AH01618: user noc not found: /
—
Reply to this email directly, view it on GitHub<#1576>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAMTY67UES43SM64RJFG2PTZ7OE25AVCNFSM6AAAAABRLREVG2VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGQ2DCMBTGQ>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Within the apache configuration or just the db.inc.php, because what you showed in your logs says you still have it enabled for apache.
Scott
…________________________________
From: cedgnans ***@***.***>
Sent: Monday, November 11, 2024 3:50 AM
To: opendcim/openDCIM ***@***.***>
Cc: Scott Milliken ***@***.***>; Comment ***@***.***>
Subject: Re: [opendcim/openDCIM] Asking help for LDAP configuration (Discussion #1576)
I've disabled the auth_basic
// Make sure that you only have ONE of these authentication types uncommented. You will get an error if you
// try to define the same name twice.
if ( !defined( "AUTHENTICATION") ) {
if ( getenv( 'OPENDCIM_AUTH')) {
define('AUTHENTICATION', getenv('OPENDCIM_AUTH'));
}
// @define( "AUTHENTICATION", "Apache" );
/* If you want to use OIDC authentication, comment the above defines for AUTHENTICATION,
uncomment the OIDC define below
*/
// define( "AUTHENTICATION", "OIDC" );
/* If you want to use Saml authentication, comment the above defines for AUTHENTICATION,
uncomment the Saml define below
*/
// define( "AUTHENTICATION", "Saml" );
/* LDAP authentication and authorization, which is far from simple.
Don't even try to enable this unless you know how to query
your LDAP server. */
define( "AUTHENTICATION", "LDAP" );
}
require_once( 'config.inc.php');
$config=new Config();
Capture.d.ecran_2024-11-11_09-42-15.png (view on web)<https://github.com/user-attachments/assets/93d45114-a5fe-4775-9c79-8e14b434df43>
—
Reply to this email directly, view it on GitHub<#1576 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAMTY645G7NFGBMVLVH326L2ABVU7AVCNFSM6AAAAABRLREVG2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRRGIYTGMA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I'm asking for help please. I've been trying to configure LDAP authentification for my openDCIM.
I've followed the documentation on https://github.com/opendcim/openDCIM/wiki/LDAP and read the video on youtube but I'm not able to do it.
I've thought that it was my openLDAP architecture (tree) but when I even change to reproduce exactly the architecture in the youtube video it didn't work
The worst things it that I don't know where the problem is.
Here is the apache error log
dcim-admin@opendcim:/var/log/apache2$ sudo tail -f error.log
[sudo] password for dcim-admin:
[Thu Nov 07 09:37:28.490791 2024] [auth_basic:error] [pid 67936] [client 192.168.60.199:59866] AH01618: user noc not found: /
[Thu Nov 07 09:37:45.894407 2024] [auth_basic:error] [pid 67945] [client 192.168.60.199:48682] AH01618: user admin not found: /
[Thu Nov 07 11:05:16.074610 2024] [auth_basic:error] [pid 69916] [client 192.168.60.199:46096] AH01617: user dcim: authentication failure for "/": Password Mismatch
[Thu Nov 07 11:05:30.826310 2024] [auth_basic:error] [pid 67940] [client 192.168.60.199:60828] AH01618: user noc not found: /
[Thu Nov 07 11:08:34.858543 2024] [auth_basic:error] [pid 68788] [client 192.168.60.199:54374] AH01618: user noc not found: /
[Thu Nov 07 11:19:36.798751 2024] [auth_basic:error] [pid 69569] [client 192.168.60.199:35174] AH01617: user dcim: authentication failure for "/": Password Mismatch
[Thu Nov 07 11:21:14.218118 2024] [auth_basic:error] [pid 67939] [client 192.168.60.199:52608] AH01618: user customer not found: /
[Thu Nov 07 14:46:10.040417 2024] [auth_basic:error] [pid 67937] [client 192.168.60.199:42036] AH01617: user dcim: authentication failure for "/": Password Mismatch
[Thu Nov 07 14:46:52.989846 2024] [auth_basic:error] [pid 70408] [client 192.168.60.199:54734] AH01618: user noc not found: /
[Thu Nov 07 14:47:02.690303 2024] [auth_basic:error] [pid 67938] [client 192.168.60.199:43992] AH01618: user noc not found: /
Beta Was this translation helpful? Give feedback.
All reactions