Replies: 10 comments 9 replies
-
You're missing a PHP module. Follow the installation instructions in the wiki.
PHP Warning: ldap_read()
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: cedgnans ***@***.***>
Sent: Friday, November 15, 2024 12:07:07 PM
To: opendcim/openDCIM ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [opendcim/openDCIM] Problems on LDAP connection (Discussion #1578)
image.png (view on web)<https://github.com/user-attachments/assets/28434ee5-81be-47fd-a688-52a57857818b>
/var/log/apache2$ sudo tail -f error.log
[Fri Nov 15 18:21:54.346685 2024] [php:notice] [pid 15591] [client 192.168.60.199:48766] LDAP authentication successful, but access denied based on lacking group membership. Username: dcim, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:21:54.346738 2024] [php:notice] [pid 15591] [client 192.168.60.199:48766] LDAP Authentication failed for username: dcim, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.140716 2024] [php:notice] [pid 15600] [client 192.168.60.199:53510] User search filter: (|(uid=noc)(sAMAccountName=noc)), referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.149330 2024] [php:notice] [pid 15600] [client 192.168.60.199:53510] LDAP authentication successful, but access denied based on lacking group membership. Username: noc, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.149387 2024] [php:notice] [pid 15600] [client 192.168.60.199:53510] LDAP Authentication failed for username: noc, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.463098 2024] [php:notice] [pid 15591] [client 192.168.60.199:40890] User search filter: (|(uid=dcim)(sAMAccountName=dcim)), referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.466642 2024] [php:warn] [pid 15591] [client 192.168.60.199:40890] PHP Warning: ldap_read(): Search: No such object in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.466753 2024] [php:error] [pid 15591] [client 192.168.60.199:40890] PHP Fatal error: Uncaught TypeError: ldap_get_entries(): Argument #2<#2> ($result) must be of type LDAP\Result, false given in /opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0 /opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1 /opt/openDCIM/openDCIM-23.04/login_ldap.php(191): isUserInLDAPGroup()\n#2 {main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 52, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:55:42.121754 2024] [php:notice] [pid 15557] [client 192.168.60.199:50826] User search filter: (|(uid=dcim)(sAMAccountName=dcim)), referer: https://10.225.5.209/login_ldap.php?logout
[Fri Nov 15 18:55:42.125428 2024] [php:warn] [pid 15557] [client 192.168.60.199:50826] PHP Warning: ldap_read(): Search: No such object in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer: https://10.225.5.209/login_ldap.php?logout
[Fri Nov 15 18:55:42.125514 2024] [php:error] [pid 15557] [client 192.168.60.199:50826] PHP Fatal error: Uncaught TypeError: ldap_get_entries(): Argument #2<#2> ($result) must be of type LDAP\Result, false given in /opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0 /opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1 /opt/openDCIM/openDCIM-23.04/login_ldap.php(191): isUserInLDAPGroup()\n#2 {main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 52, referer: https://10.225.5.209/login_ldap.php?logout
I'm trying to connect my LDAP server to openDCIM. The connection is successful as the log shows below but when I enter the user authentication information which I've configured in LDAP, it doesn't automatically redirect me to the dashboard.
I had to delete the “login_ldap.php” part manually in the url to access the following interface
image.png (view on web)<https://github.com/user-attachments/assets/71e2eb63-459b-4340-9562-5d2db57c381a>
Any idea on how it can redirect automatically?
—
Reply to this email directly, view it on GitHub<#1578>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAMTY6X7CUPEYQESSP23EWT2AYZ4XAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGQ4TAMZYHE>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage", "potentialAction": { ***@***.***": "ViewAction", "target": "#1578", "url": "#1578", "name": "View Discussion" }, "description": "View this Discussion on GitHub", "publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
|
Beta Was this translation helpful? Give feedback.
-
You also have a group membership problem too LDAP authentication successful, but access denied based on lacking group membership.
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: cedgnans ***@***.***>
Sent: Friday, November 15, 2024 12:07:07 PM
To: opendcim/openDCIM ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [opendcim/openDCIM] Problems on LDAP connection (Discussion #1578)
image.png (view on web)<https://github.com/user-attachments/assets/28434ee5-81be-47fd-a688-52a57857818b>
/var/log/apache2$ sudo tail -f error.log
[Fri Nov 15 18:21:54.346685 2024] [php:notice] [pid 15591] [client 192.168.60.199:48766] LDAP authentication successful, but access denied based on lacking group membership. Username: dcim, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:21:54.346738 2024] [php:notice] [pid 15591] [client 192.168.60.199:48766] LDAP Authentication failed for username: dcim, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.140716 2024] [php:notice] [pid 15600] [client 192.168.60.199:53510] User search filter: (|(uid=noc)(sAMAccountName=noc)), referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.149330 2024] [php:notice] [pid 15600] [client 192.168.60.199:53510] LDAP authentication successful, but access denied based on lacking group membership. Username: noc, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.149387 2024] [php:notice] [pid 15600] [client 192.168.60.199:53510] LDAP Authentication failed for username: noc, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.463098 2024] [php:notice] [pid 15591] [client 192.168.60.199:40890] User search filter: (|(uid=dcim)(sAMAccountName=dcim)), referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.466642 2024] [php:warn] [pid 15591] [client 192.168.60.199:40890] PHP Warning: ldap_read(): Search: No such object in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.466753 2024] [php:error] [pid 15591] [client 192.168.60.199:40890] PHP Fatal error: Uncaught TypeError: ldap_get_entries(): Argument #2<#2> ($result) must be of type LDAP\Result, false given in /opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0 /opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1 /opt/openDCIM/openDCIM-23.04/login_ldap.php(191): isUserInLDAPGroup()\n#2 {main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 52, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:55:42.121754 2024] [php:notice] [pid 15557] [client 192.168.60.199:50826] User search filter: (|(uid=dcim)(sAMAccountName=dcim)), referer: https://10.225.5.209/login_ldap.php?logout
[Fri Nov 15 18:55:42.125428 2024] [php:warn] [pid 15557] [client 192.168.60.199:50826] PHP Warning: ldap_read(): Search: No such object in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer: https://10.225.5.209/login_ldap.php?logout
[Fri Nov 15 18:55:42.125514 2024] [php:error] [pid 15557] [client 192.168.60.199:50826] PHP Fatal error: Uncaught TypeError: ldap_get_entries(): Argument #2<#2> ($result) must be of type LDAP\Result, false given in /opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0 /opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1 /opt/openDCIM/openDCIM-23.04/login_ldap.php(191): isUserInLDAPGroup()\n#2 {main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 52, referer: https://10.225.5.209/login_ldap.php?logout
I'm trying to connect my LDAP server to openDCIM. The connection is successful as the log shows below but when I enter the user authentication information which I've configured in LDAP, it doesn't automatically redirect me to the dashboard.
I had to delete the “login_ldap.php” part manually in the url to access the following interface
image.png (view on web)<https://github.com/user-attachments/assets/71e2eb63-459b-4340-9562-5d2db57c381a>
Any idea on how it can redirect automatically?
—
Reply to this email directly, view it on GitHub<#1578>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAMTY6X7CUPEYQESSP23EWT2AYZ4XAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGQ4TAMZYHE>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage", "potentialAction": { ***@***.***": "ViewAction", "target": "#1578", "url": "#1578", "name": "View Discussion" }, "description": "View this Discussion on GitHub", "publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
|
Beta Was this translation helpful? Give feedback.
-
I've followed exactly what is in the wiki to install OPENDCIM.
I don't know what I have really missed something cause I did it twice on
two different servers and got the same problem
Le ven. 15 nov. 2024 à 19:11, Wilbur Longwisch ***@***.***> a
écrit :
… You're missing a PHP module. Follow the installation instructions in the
wiki.
PHP Warning: ldap_read()
Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: cedgnans ***@***.***>
Sent: Friday, November 15, 2024 12:07:07 PM
To: opendcim/openDCIM ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [opendcim/openDCIM] Problems on LDAP connection (Discussion
#1578)
image.png (view on web)<
https://github.com/user-attachments/assets/28434ee5-81be-47fd-a688-52a57857818b>
/var/log/apache2$ sudo tail -f error.log
[Fri Nov 15 18:21:54.346685 2024] [php:notice] [pid 15591] [client
192.168.60.199:48766] LDAP authentication successful, but access denied
based on lacking group membership. Username: dcim, referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:21:54.346738 2024] [php:notice] [pid 15591] [client
192.168.60.199:48766] LDAP Authentication failed for username: dcim,
referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.140716 2024] [php:notice] [pid 15600] [client
192.168.60.199:53510] User search filter:
(|(uid=noc)(sAMAccountName=noc)), referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.149330 2024] [php:notice] [pid 15600] [client
192.168.60.199:53510] LDAP authentication successful, but access denied
based on lacking group membership. Username: noc, referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.149387 2024] [php:notice] [pid 15600] [client
192.168.60.199:53510] LDAP Authentication failed for username: noc,
referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.463098 2024] [php:notice] [pid 15591] [client
192.168.60.199:40890] User search filter:
(|(uid=dcim)(sAMAccountName=dcim)), referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.466642 2024] [php:warn] [pid 15591] [client
192.168.60.199:40890] PHP Warning: ldap_read(): Search: No such object in
/opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.466753 2024] [php:error] [pid 15591] [client
192.168.60.199:40890] PHP Fatal error: Uncaught TypeError:
ldap_get_entries(): Argument #2<
#2> ($result) must be of type
LDAP\Result, false given in
/opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0
/opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1
/opt/openDCIM/openDCIM-23.04/login_ldap.php(191): isUserInLDAPGroup()\n#2
{main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 52,
referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:55:42.121754 2024] [php:notice] [pid 15557] [client
192.168.60.199:50826] User search filter:
(|(uid=dcim)(sAMAccountName=dcim)), referer:
https://10.225.5.209/login_ldap.php?logout
[Fri Nov 15 18:55:42.125428 2024] [php:warn] [pid 15557] [client
192.168.60.199:50826] PHP Warning: ldap_read(): Search: No such object in
/opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer:
https://10.225.5.209/login_ldap.php?logout
[Fri Nov 15 18:55:42.125514 2024] [php:error] [pid 15557] [client
192.168.60.199:50826] PHP Fatal error: Uncaught TypeError:
ldap_get_entries(): Argument #2<
#2> ($result) must be of type
LDAP\Result, false given in
/opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0
/opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1
/opt/openDCIM/openDCIM-23.04/login_ldap.php(191): isUserInLDAPGroup()\n#2
{main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 52,
referer: https://10.225.5.209/login_ldap.php?logout
I'm trying to connect my LDAP server to openDCIM. The connection is
successful as the log shows below but when I enter the user authentication
information which I've configured in LDAP, it doesn't automatically
redirect me to the dashboard.
I had to delete the “login_ldap.php” part manually in the url to access
the following interface
image.png (view on web)<
https://github.com/user-attachments/assets/71e2eb63-459b-4340-9562-5d2db57c381a>
Any idea on how it can redirect automatically?
—
Reply to this email directly, view it on GitHub<
#1578>, or unsubscribe<
https://github.com/notifications/unsubscribe-auth/AAMTY6X7CUPEYQESSP23EWT2AYZ4XAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGQ4TAMZYHE>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage",
"potentialAction": { ***@***.***": "ViewAction", "target": "
#1578", "url": "
#1578", "name": "View
Discussion" }, "description": "View this Discussion on GitHub",
"publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "
https://github.com" } } ]
—
Reply to this email directly, view it on GitHub
<#1578 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6ZVVX6SP7ERH7CTWDGGQED2AY2OBAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRXGE3TGNA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I don't really get the group membership problem that you are taking about
Le ven. 15 nov. 2024 à 19:13, Wilbur Longwisch ***@***.***> a
écrit :
… You also have a group membership problem too LDAP authentication
successful, but access denied based on lacking group membership.
Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: cedgnans ***@***.***>
Sent: Friday, November 15, 2024 12:07:07 PM
To: opendcim/openDCIM ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [opendcim/openDCIM] Problems on LDAP connection (Discussion
#1578)
image.png (view on web)<
https://github.com/user-attachments/assets/28434ee5-81be-47fd-a688-52a57857818b>
/var/log/apache2$ sudo tail -f error.log
[Fri Nov 15 18:21:54.346685 2024] [php:notice] [pid 15591] [client
192.168.60.199:48766] LDAP authentication successful, but access denied
based on lacking group membership. Username: dcim, referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:21:54.346738 2024] [php:notice] [pid 15591] [client
192.168.60.199:48766] LDAP Authentication failed for username: dcim,
referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.140716 2024] [php:notice] [pid 15600] [client
192.168.60.199:53510] User search filter:
(|(uid=noc)(sAMAccountName=noc)), referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.149330 2024] [php:notice] [pid 15600] [client
192.168.60.199:53510] LDAP authentication successful, but access denied
based on lacking group membership. Username: noc, referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.149387 2024] [php:notice] [pid 15600] [client
192.168.60.199:53510] LDAP Authentication failed for username: noc,
referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.463098 2024] [php:notice] [pid 15591] [client
192.168.60.199:40890] User search filter:
(|(uid=dcim)(sAMAccountName=dcim)), referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.466642 2024] [php:warn] [pid 15591] [client
192.168.60.199:40890] PHP Warning: ldap_read(): Search: No such object in
/opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.466753 2024] [php:error] [pid 15591] [client
192.168.60.199:40890] PHP Fatal error: Uncaught TypeError:
ldap_get_entries(): Argument #2<
#2> ($result) must be of type
LDAP\Result, false given in
/opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0
/opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1
/opt/openDCIM/openDCIM-23.04/login_ldap.php(191): isUserInLDAPGroup()\n#2
{main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 52,
referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:55:42.121754 2024] [php:notice] [pid 15557] [client
192.168.60.199:50826] User search filter:
(|(uid=dcim)(sAMAccountName=dcim)), referer:
https://10.225.5.209/login_ldap.php?logout
[Fri Nov 15 18:55:42.125428 2024] [php:warn] [pid 15557] [client
192.168.60.199:50826] PHP Warning: ldap_read(): Search: No such object in
/opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer:
https://10.225.5.209/login_ldap.php?logout
[Fri Nov 15 18:55:42.125514 2024] [php:error] [pid 15557] [client
192.168.60.199:50826] PHP Fatal error: Uncaught TypeError:
ldap_get_entries(): Argument #2<
#2> ($result) must be of type
LDAP\Result, false given in
/opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0
/opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1
/opt/openDCIM/openDCIM-23.04/login_ldap.php(191): isUserInLDAPGroup()\n#2
{main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 52,
referer: https://10.225.5.209/login_ldap.php?logout
I'm trying to connect my LDAP server to openDCIM. The connection is
successful as the log shows below but when I enter the user authentication
information which I've configured in LDAP, it doesn't automatically
redirect me to the dashboard.
I had to delete the “login_ldap.php” part manually in the url to access
the following interface
image.png (view on web)<
https://github.com/user-attachments/assets/71e2eb63-459b-4340-9562-5d2db57c381a>
Any idea on how it can redirect automatically?
—
Reply to this email directly, view it on GitHub<
#1578>, or unsubscribe<
https://github.com/notifications/unsubscribe-auth/AAMTY6X7CUPEYQESSP23EWT2AYZ4XAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGQ4TAMZYHE>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage",
"potentialAction": { ***@***.***": "ViewAction", "target": "
#1578", "url": "
#1578", "name": "View
Discussion" }, "description": "View this Discussion on GitHub",
"publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "
https://github.com" } } ]
—
Reply to this email directly, view it on GitHub
<#1578 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6ZVVX6GUWSCJQHYNEBVSFD2AY2SZAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRXGE3TONA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Your user isn't in the group defined for access according to the error or you have the group defined wrong entirely so it isn't getting a valid lookup.
Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: cedgnans ***@***.***>
Sent: Friday, November 15, 2024 12:21:41 PM
To: opendcim/openDCIM ***@***.***>
Cc: Wilbur Longwisch ***@***.***>; Comment ***@***.***>
Subject: Re: [opendcim/openDCIM] Problems on LDAP connection (Discussion #1578)
I don't really get the group membership problem that you are taking about
Le ven. 15 nov. 2024 à 19:13, Wilbur Longwisch ***@***.***> a
écrit :
You also have a group membership problem too LDAP authentication
successful, but access denied based on lacking group membership.
Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: cedgnans ***@***.***>
Sent: Friday, November 15, 2024 12:07:07 PM
To: opendcim/openDCIM ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [opendcim/openDCIM] Problems on LDAP connection (Discussion
#1578)
image.png (view on web)<
https://github.com/user-attachments/assets/28434ee5-81be-47fd-a688-52a57857818b>
/var/log/apache2$ sudo tail -f error.log
[Fri Nov 15 18:21:54.346685 2024] [php:notice] [pid 15591] [client
192.168.60.199:48766] LDAP authentication successful, but access denied
based on lacking group membership. Username: dcim, referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:21:54.346738 2024] [php:notice] [pid 15591] [client
192.168.60.199:48766] LDAP Authentication failed for username: dcim,
referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.140716 2024] [php:notice] [pid 15600] [client
192.168.60.199:53510] User search filter:
(|(uid=noc)(sAMAccountName=noc)), referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.149330 2024] [php:notice] [pid 15600] [client
192.168.60.199:53510] LDAP authentication successful, but access denied
based on lacking group membership. Username: noc, referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.149387 2024] [php:notice] [pid 15600] [client
192.168.60.199:53510] LDAP Authentication failed for username: noc,
referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.463098 2024] [php:notice] [pid 15591] [client
192.168.60.199:40890] User search filter:
(|(uid=dcim)(sAMAccountName=dcim)), referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.466642 2024] [php:warn] [pid 15591] [client
192.168.60.199:40890] PHP Warning: ldap_read(): Search: No such object in
/opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.466753 2024] [php:error] [pid 15591] [client
192.168.60.199:40890] PHP Fatal error: Uncaught TypeError:
ldap_get_entries(): Argument #2<
#2> ($result) must be of type
LDAP\Result, false given in
/opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0
/opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1
/opt/openDCIM/openDCIM-23.04/login_ldap.php(191): isUserInLDAPGroup()\n#2
{main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 52,
referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:55:42.121754 2024] [php:notice] [pid 15557] [client
192.168.60.199:50826] User search filter:
(|(uid=dcim)(sAMAccountName=dcim)), referer:
https://10.225.5.209/login_ldap.php?logout
[Fri Nov 15 18:55:42.125428 2024] [php:warn] [pid 15557] [client
192.168.60.199:50826] PHP Warning: ldap_read(): Search: No such object in
/opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer:
https://10.225.5.209/login_ldap.php?logout
[Fri Nov 15 18:55:42.125514 2024] [php:error] [pid 15557] [client
192.168.60.199:50826] PHP Fatal error: Uncaught TypeError:
ldap_get_entries(): Argument #2<
#2> ($result) must be of type
LDAP\Result, false given in
/opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0
/opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1
/opt/openDCIM/openDCIM-23.04/login_ldap.php(191): isUserInLDAPGroup()\n#2
{main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 52,
referer: https://10.225.5.209/login_ldap.php?logout
I'm trying to connect my LDAP server to openDCIM. The connection is
successful as the log shows below but when I enter the user authentication
information which I've configured in LDAP, it doesn't automatically
redirect me to the dashboard.
I had to delete the “login_ldap.php” part manually in the url to access
the following interface
image.png (view on web)<
https://github.com/user-attachments/assets/71e2eb63-459b-4340-9562-5d2db57c381a>
Any idea on how it can redirect automatically?
—
Reply to this email directly, view it on GitHub<
#1578>, or unsubscribe<
https://github.com/notifications/unsubscribe-auth/AAMTY6X7CUPEYQESSP23EWT2AYZ4XAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGQ4TAMZYHE>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage",
"potentialAction": { ***@***.***": "ViewAction", "target": "
#1578", "url": "
#1578", "name": "View
Discussion" }, "description": "View this Discussion on GitHub",
"publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "
https://github.com" } } ]
—
Reply to this email directly, view it on GitHub
<#1578 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6ZVVX6GUWSCJQHYNEBVSFD2AY2SZAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRXGE3TONA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
—
Reply to this email directly, view it on GitHub<#1578 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAMTY6UVBUOGLLEWEOB7BTD2AY3TLAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRXGE4TQNY>.
You are receiving this because you commented.Message ID: ***@***.***>
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage", "potentialAction": { ***@***.***": "ViewAction", "target": "#1578 (comment)", "url": "#1578 (comment)", "name": "View Discussion" }, "description": "View this Discussion on GitHub", "publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
|
Beta Was this translation helpful? Give feedback.
-
Check your ldap parameters as well because with a user name of noc I'd not expect the filter to be looking for uid=dcim typically that'd be uid=noc
LDAP Authentication failed for username: noc,
User search filter: (|(uid=dcim)(sAMAccountName=dcim))
Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: cedgnans ***@***.***>
Sent: Friday, November 15, 2024 12:21:41 PM
To: opendcim/openDCIM ***@***.***>
Cc: Wilbur Longwisch ***@***.***>; Comment ***@***.***>
Subject: Re: [opendcim/openDCIM] Problems on LDAP connection (Discussion #1578)
I don't really get the group membership problem that you are taking about
Le ven. 15 nov. 2024 à 19:13, Wilbur Longwisch ***@***.***> a
écrit :
You also have a group membership problem too LDAP authentication
successful, but access denied based on lacking group membership.
Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: cedgnans ***@***.***>
Sent: Friday, November 15, 2024 12:07:07 PM
To: opendcim/openDCIM ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [opendcim/openDCIM] Problems on LDAP connection (Discussion
#1578)
image.png (view on web)<
https://github.com/user-attachments/assets/28434ee5-81be-47fd-a688-52a57857818b>
/var/log/apache2$ sudo tail -f error.log
[Fri Nov 15 18:21:54.346685 2024] [php:notice] [pid 15591] [client
192.168.60.199:48766] LDAP authentication successful, but access denied
based on lacking group membership. Username: dcim, referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:21:54.346738 2024] [php:notice] [pid 15591] [client
192.168.60.199:48766] LDAP Authentication failed for username: dcim,
referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.140716 2024] [php:notice] [pid 15600] [client
192.168.60.199:53510] User search filter:
(|(uid=noc)(sAMAccountName=noc)), referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.149330 2024] [php:notice] [pid 15600] [client
192.168.60.199:53510] LDAP authentication successful, but access denied
based on lacking group membership. Username: noc, referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.149387 2024] [php:notice] [pid 15600] [client
192.168.60.199:53510] LDAP Authentication failed for username: noc,
referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.463098 2024] [php:notice] [pid 15591] [client
192.168.60.199:40890] User search filter:
(|(uid=dcim)(sAMAccountName=dcim)), referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.466642 2024] [php:warn] [pid 15591] [client
192.168.60.199:40890] PHP Warning: ldap_read(): Search: No such object in
/opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer:
https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.466753 2024] [php:error] [pid 15591] [client
192.168.60.199:40890] PHP Fatal error: Uncaught TypeError:
ldap_get_entries(): Argument #2<
#2> ($result) must be of type
LDAP\Result, false given in
/opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0
/opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1
/opt/openDCIM/openDCIM-23.04/login_ldap.php(191): isUserInLDAPGroup()\n#2
{main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 52,
referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:55:42.121754 2024] [php:notice] [pid 15557] [client
192.168.60.199:50826] User search filter:
(|(uid=dcim)(sAMAccountName=dcim)), referer:
https://10.225.5.209/login_ldap.php?logout
[Fri Nov 15 18:55:42.125428 2024] [php:warn] [pid 15557] [client
192.168.60.199:50826] PHP Warning: ldap_read(): Search: No such object in
/opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer:
https://10.225.5.209/login_ldap.php?logout
[Fri Nov 15 18:55:42.125514 2024] [php:error] [pid 15557] [client
192.168.60.199:50826] PHP Fatal error: Uncaught TypeError:
ldap_get_entries(): Argument #2<
#2> ($result) must be of type
LDAP\Result, false given in
/opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0
/opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1
/opt/openDCIM/openDCIM-23.04/login_ldap.php(191): isUserInLDAPGroup()\n#2
{main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 52,
referer: https://10.225.5.209/login_ldap.php?logout
I'm trying to connect my LDAP server to openDCIM. The connection is
successful as the log shows below but when I enter the user authentication
information which I've configured in LDAP, it doesn't automatically
redirect me to the dashboard.
I had to delete the “login_ldap.php” part manually in the url to access
the following interface
image.png (view on web)<
https://github.com/user-attachments/assets/71e2eb63-459b-4340-9562-5d2db57c381a>
Any idea on how it can redirect automatically?
—
Reply to this email directly, view it on GitHub<
#1578>, or unsubscribe<
https://github.com/notifications/unsubscribe-auth/AAMTY6X7CUPEYQESSP23EWT2AYZ4XAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGQ4TAMZYHE>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage",
"potentialAction": { ***@***.***": "ViewAction", "target": "
#1578", "url": "
#1578", "name": "View
Discussion" }, "description": "View this Discussion on GitHub",
"publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "
https://github.com" } } ]
—
Reply to this email directly, view it on GitHub
<#1578 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6ZVVX6GUWSCJQHYNEBVSFD2AY2SZAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRXGE3TONA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
—
Reply to this email directly, view it on GitHub<#1578 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAMTY6UVBUOGLLEWEOB7BTD2AY3TLAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRXGE4TQNY>.
You are receiving this because you commented.Message ID: ***@***.***>
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage", "potentialAction": { ***@***.***": "ViewAction", "target": "#1578 (comment)", "url": "#1578 (comment)", "name": "View Discussion" }, "description": "View this Discussion on GitHub", "publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
|
Beta Was this translation helpful? Give feedback.
-
I'm using openldap so the sAMAccountName should not be the one I should
choose right?
Le ven. 15 nov. 2024 à 19:26, Wilbur Longwisch ***@***.***> a
écrit :
… Check your ldap parameters as well because with a user name of noc I'd not
expect the filter to be looking for uid=dcim typically that'd be uid=noc
LDAP Authentication failed for username: noc,
User search filter: (|(uid=dcim)(sAMAccountName=dcim))
Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: cedgnans ***@***.***>
Sent: Friday, November 15, 2024 12:21:41 PM
To: opendcim/openDCIM ***@***.***>
Cc: Wilbur Longwisch ***@***.***>; Comment ***@***.***>
Subject: Re: [opendcim/openDCIM] Problems on LDAP connection (Discussion
#1578)
I don't really get the group membership problem that you are taking about
Le ven. 15 nov. 2024 à 19:13, Wilbur Longwisch ***@***.***> a
écrit :
> You also have a group membership problem too LDAP authentication
> successful, but access denied based on lacking group membership.
>
> Get Outlook for Android<https://aka.ms/AAb9ysg>
> ________________________________
> From: cedgnans ***@***.***>
> Sent: Friday, November 15, 2024 12:07:07 PM
> To: opendcim/openDCIM ***@***.***>
> Cc: Subscribed ***@***.***>
> Subject: [opendcim/openDCIM] Problems on LDAP connection (Discussion
> #1578)
>
>
> image.png (view on web)<
>
https://github.com/user-attachments/assets/28434ee5-81be-47fd-a688-52a57857818b>
>
>
> /var/log/apache2$ sudo tail -f error.log
>
> [Fri Nov 15 18:21:54.346685 2024] [php:notice] [pid 15591] [client
> 192.168.60.199:48766] LDAP authentication successful, but access denied
> based on lacking group membership. Username: dcim, referer:
> https://10.225.5.209/login_ldap.php
> [Fri Nov 15 18:21:54.346738 2024] [php:notice] [pid 15591] [client
> 192.168.60.199:48766] LDAP Authentication failed for username: dcim,
> referer: https://10.225.5.209/login_ldap.php
> [Fri Nov 15 18:22:19.140716 2024] [php:notice] [pid 15600] [client
> 192.168.60.199:53510] User search filter:
> (|(uid=noc)(sAMAccountName=noc)), referer:
> https://10.225.5.209/login_ldap.php
> [Fri Nov 15 18:22:19.149330 2024] [php:notice] [pid 15600] [client
> 192.168.60.199:53510] LDAP authentication successful, but access denied
> based on lacking group membership. Username: noc, referer:
> https://10.225.5.209/login_ldap.php
> [Fri Nov 15 18:22:19.149387 2024] [php:notice] [pid 15600] [client
> 192.168.60.199:53510] LDAP Authentication failed for username: noc,
> referer: https://10.225.5.209/login_ldap.php
> [Fri Nov 15 18:25:47.463098 2024] [php:notice] [pid 15591] [client
> 192.168.60.199:40890] User search filter:
> (|(uid=dcim)(sAMAccountName=dcim)), referer:
> https://10.225.5.209/login_ldap.php
> [Fri Nov 15 18:25:47.466642 2024] [php:warn] [pid 15591] [client
> 192.168.60.199:40890] PHP Warning: ldap_read(): Search: No such object
in
> /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer:
> https://10.225.5.209/login_ldap.php
> [Fri Nov 15 18:25:47.466753 2024] [php:error] [pid 15591] [client
> 192.168.60.199:40890] PHP Fatal error: Uncaught TypeError:
> ldap_get_entries(): Argument #2<
> #2> ($result) must be of
type
> LDAP\Result, false given in
> /opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0
> /opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1
> /opt/openDCIM/openDCIM-23.04/login_ldap.php(191):
isUserInLDAPGroup()\n#2
> {main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line
52,
> referer: https://10.225.5.209/login_ldap.php
> [Fri Nov 15 18:55:42.121754 2024] [php:notice] [pid 15557] [client
> 192.168.60.199:50826] User search filter:
> (|(uid=dcim)(sAMAccountName=dcim)), referer:
> https://10.225.5.209/login_ldap.php?logout
> [Fri Nov 15 18:55:42.125428 2024] [php:warn] [pid 15557] [client
> 192.168.60.199:50826] PHP Warning: ldap_read(): Search: No such object
in
> /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer:
> https://10.225.5.209/login_ldap.php?logout
> [Fri Nov 15 18:55:42.125514 2024] [php:error] [pid 15557] [client
> 192.168.60.199:50826] PHP Fatal error: Uncaught TypeError:
> ldap_get_entries(): Argument #2<
> #2> ($result) must be of
type
> LDAP\Result, false given in
> /opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0
> /opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1
> /opt/openDCIM/openDCIM-23.04/login_ldap.php(191):
isUserInLDAPGroup()\n#2
> {main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line
52,
> referer: https://10.225.5.209/login_ldap.php?logout
>
> I'm trying to connect my LDAP server to openDCIM. The connection is
> successful as the log shows below but when I enter the user
authentication
> information which I've configured in LDAP, it doesn't automatically
> redirect me to the dashboard.
> I had to delete the “login_ldap.php” part manually in the url to access
> the following interface
>
> image.png (view on web)<
>
https://github.com/user-attachments/assets/71e2eb63-459b-4340-9562-5d2db57c381a>
>
>
> Any idea on how it can redirect automatically?
>
> —
> Reply to this email directly, view it on GitHub<
> #1578>, or unsubscribe<
>
https://github.com/notifications/unsubscribe-auth/AAMTY6X7CUPEYQESSP23EWT2AYZ4XAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGQ4TAMZYHE>.
>
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
> [ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage",
> "potentialAction": { ***@***.***": "ViewAction", "target": "
> #1578", "url": "
> #1578", "name": "View
> Discussion" }, "description": "View this Discussion on GitHub",
> "publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "
> https://github.com" } } ]
>
> —
> Reply to this email directly, view it on GitHub
> <
#1578 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/A6ZVVX6GUWSCJQHYNEBVSFD2AY2SZAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRXGE3TONA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub<
#1578 (comment)>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/AAMTY6UVBUOGLLEWEOB7BTD2AY3TLAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRXGE4TQNY>.
You are receiving this because you commented.Message ID: ***@***.***>
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage",
"potentialAction": { ***@***.***": "ViewAction", "target": "
#1578 (comment)",
"url": "
#1578 (comment)",
"name": "View Discussion" }, "description": "View this Discussion on
GitHub", "publisher": { ***@***.***": "Organization", "name": "GitHub",
"url": "https://github.com" } } ]
—
Reply to this email directly, view it on GitHub
<#1578 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6ZVVXYINYAFQGJOSDKEKPL2AY4GDAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRXGIYDSNY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
So if I summarize what you said.
1) There is a PHP extension that is missing and I should review the wiki
page
2)I should check my LDAP parameter as well on OpenDCIM web interface
But I don't really understand that part
"Your user isn't in the group defined for access according to the error or
you have the group defined wrong entirely so it isn't getting a valid
lookup.
"
Le ven. 15 nov. 2024 à 20:45, Cedric Brian ***@***.***> a
écrit :
… I'm using openldap so the sAMAccountName should not be the one I should
choose right?
Le ven. 15 nov. 2024 à 19:26, Wilbur Longwisch ***@***.***>
a écrit :
> Check your ldap parameters as well because with a user name of noc I'd
> not expect the filter to be looking for uid=dcim typically that'd be
> uid=noc
>
> LDAP Authentication failed for username: noc,
> User search filter: (|(uid=dcim)(sAMAccountName=dcim))
>
> Get Outlook for Android<https://aka.ms/AAb9ysg>
> ________________________________
> From: cedgnans ***@***.***>
> Sent: Friday, November 15, 2024 12:21:41 PM
> To: opendcim/openDCIM ***@***.***>
> Cc: Wilbur Longwisch ***@***.***>; Comment ***@***.***>
> Subject: Re: [opendcim/openDCIM] Problems on LDAP connection (Discussion
> #1578)
>
>
> I don't really get the group membership problem that you are taking about
>
> Le ven. 15 nov. 2024 à 19:13, Wilbur Longwisch ***@***.***> a
> écrit :
>
> > You also have a group membership problem too LDAP authentication
> > successful, but access denied based on lacking group membership.
> >
> > Get Outlook for Android<https://aka.ms/AAb9ysg>
> > ________________________________
> > From: cedgnans ***@***.***>
> > Sent: Friday, November 15, 2024 12:07:07 PM
> > To: opendcim/openDCIM ***@***.***>
> > Cc: Subscribed ***@***.***>
> > Subject: [opendcim/openDCIM] Problems on LDAP connection (Discussion
> > #1578)
> >
> >
> > image.png (view on web)<
> >
> https://github.com/user-attachments/assets/28434ee5-81be-47fd-a688-52a57857818b>
>
> >
> >
> > /var/log/apache2$ sudo tail -f error.log
> >
> > [Fri Nov 15 18:21:54.346685 2024] [php:notice] [pid 15591] [client
> > 192.168.60.199:48766] LDAP authentication successful, but access
> denied
> > based on lacking group membership. Username: dcim, referer:
> > https://10.225.5.209/login_ldap.php
> > [Fri Nov 15 18:21:54.346738 2024] [php:notice] [pid 15591] [client
> > 192.168.60.199:48766] LDAP Authentication failed for username: dcim,
> > referer: https://10.225.5.209/login_ldap.php
> > [Fri Nov 15 18:22:19.140716 2024] [php:notice] [pid 15600] [client
> > 192.168.60.199:53510] User search filter:
> > (|(uid=noc)(sAMAccountName=noc)), referer:
> > https://10.225.5.209/login_ldap.php
> > [Fri Nov 15 18:22:19.149330 2024] [php:notice] [pid 15600] [client
> > 192.168.60.199:53510] LDAP authentication successful, but access
> denied
> > based on lacking group membership. Username: noc, referer:
> > https://10.225.5.209/login_ldap.php
> > [Fri Nov 15 18:22:19.149387 2024] [php:notice] [pid 15600] [client
> > 192.168.60.199:53510] LDAP Authentication failed for username: noc,
> > referer: https://10.225.5.209/login_ldap.php
> > [Fri Nov 15 18:25:47.463098 2024] [php:notice] [pid 15591] [client
> > 192.168.60.199:40890] User search filter:
> > (|(uid=dcim)(sAMAccountName=dcim)), referer:
> > https://10.225.5.209/login_ldap.php
> > [Fri Nov 15 18:25:47.466642 2024] [php:warn] [pid 15591] [client
> > 192.168.60.199:40890] PHP Warning: ldap_read(): Search: No such object
> in
> > /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer:
> > https://10.225.5.209/login_ldap.php
> > [Fri Nov 15 18:25:47.466753 2024] [php:error] [pid 15591] [client
> > 192.168.60.199:40890] PHP Fatal error: Uncaught TypeError:
> > ldap_get_entries(): Argument #2<
> > #2> ($result) must be of
> type
> > LDAP\Result, false given in
> > /opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0
> > /opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1
> > /opt/openDCIM/openDCIM-23.04/login_ldap.php(191):
> isUserInLDAPGroup()\n#2
> > {main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line
> 52,
> > referer: https://10.225.5.209/login_ldap.php
> > [Fri Nov 15 18:55:42.121754 2024] [php:notice] [pid 15557] [client
> > 192.168.60.199:50826] User search filter:
> > (|(uid=dcim)(sAMAccountName=dcim)), referer:
> > https://10.225.5.209/login_ldap.php?logout
> > [Fri Nov 15 18:55:42.125428 2024] [php:warn] [pid 15557] [client
> > 192.168.60.199:50826] PHP Warning: ldap_read(): Search: No such object
> in
> > /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer:
> > https://10.225.5.209/login_ldap.php?logout
> > [Fri Nov 15 18:55:42.125514 2024] [php:error] [pid 15557] [client
> > 192.168.60.199:50826] PHP Fatal error: Uncaught TypeError:
> > ldap_get_entries(): Argument #2<
> > #2> ($result) must be of
> type
> > LDAP\Result, false given in
> > /opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0
> > /opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1
> > /opt/openDCIM/openDCIM-23.04/login_ldap.php(191):
> isUserInLDAPGroup()\n#2
> > {main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line
> 52,
> > referer: https://10.225.5.209/login_ldap.php?logout
> >
> > I'm trying to connect my LDAP server to openDCIM. The connection is
> > successful as the log shows below but when I enter the user
> authentication
> > information which I've configured in LDAP, it doesn't automatically
> > redirect me to the dashboard.
> > I had to delete the “login_ldap.php” part manually in the url to access
> > the following interface
> >
> > image.png (view on web)<
> >
> https://github.com/user-attachments/assets/71e2eb63-459b-4340-9562-5d2db57c381a>
>
> >
> >
> > Any idea on how it can redirect automatically?
> >
> > —
> > Reply to this email directly, view it on GitHub<
> > #1578>, or
> unsubscribe<
> >
> https://github.com/notifications/unsubscribe-auth/AAMTY6X7CUPEYQESSP23EWT2AYZ4XAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGQ4TAMZYHE>.
>
> >
> > You are receiving this because you are subscribed to this
> thread.Message
> > ID: ***@***.***>
> >
> > [ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage",
> > "potentialAction": { ***@***.***": "ViewAction", "target": "
> > #1578", "url": "
> > #1578", "name": "View
> > Discussion" }, "description": "View this Discussion on GitHub",
> > "publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "
> > https://github.com" } } ]
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
> #1578 (comment)>,
>
> > or unsubscribe
> > <
> https://github.com/notifications/unsubscribe-auth/A6ZVVX6GUWSCJQHYNEBVSFD2AY2SZAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRXGE3TONA>
>
> > .
> > You are receiving this because you authored the thread.Message ID:
> > ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub<
> #1578 (comment)>,
> or unsubscribe<
> https://github.com/notifications/unsubscribe-auth/AAMTY6UVBUOGLLEWEOB7BTD2AY3TLAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRXGE4TQNY>.
>
> You are receiving this because you commented.Message ID: ***@***.***>
>
> [ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage",
> "potentialAction": { ***@***.***": "ViewAction", "target": "
> #1578 (comment)",
> "url": "
> #1578 (comment)",
> "name": "View Discussion" }, "description": "View this Discussion on
> GitHub", "publisher": { ***@***.***": "Organization", "name": "GitHub",
> "url": "https://github.com" } } ]
>
> —
> Reply to this email directly, view it on GitHub
> <#1578 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/A6ZVVXYINYAFQGJOSDKEKPL2AY4GDAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRXGIYDSNY>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
Everytime I see a LDAP thread I wonder why on earth are you not using SAML
or some other SSO. For all the complexities of SAML it is a lot easier to
set up (my opinion) than LDAP.....
Sorry, not helpful at all...
Tim
Timothy Legge
***@***.***
***@***.***
…On Mon, Nov 18, 2024 at 11:10 AM Wilbur Longwisch ***@***.***> wrote:
One of your ldap groups is wrong or missing.
https://github.com/opendcim/openDCIM/blob/master/login_ldap.php#L50 if
you didn't fix that site access group then i'd start there.
—
Reply to this email directly, view it on GitHub
<#1578 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH3N6YX2FZQ2N67OBAJ35D2BH7NZAVCNFSM6AAAAABR3WHYT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRZGMZDSMI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Can I have the exact meaning of every group in openDCIM? |
Beta Was this translation helpful? Give feedback.
-
/var/log/apache2$ sudo tail -f error.log
[Fri Nov 15 18:21:54.346685 2024] [php:notice] [pid 15591] [client 192.168.60.199:48766] LDAP authentication successful, but access denied based on lacking group membership. Username: dcim, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:21:54.346738 2024] [php:notice] [pid 15591] [client 192.168.60.199:48766] LDAP Authentication failed for username: dcim, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.140716 2024] [php:notice] [pid 15600] [client 192.168.60.199:53510] User search filter: (|(uid=noc)(sAMAccountName=noc)), referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.149330 2024] [php:notice] [pid 15600] [client 192.168.60.199:53510] LDAP authentication successful, but access denied based on lacking group membership. Username: noc, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:22:19.149387 2024] [php:notice] [pid 15600] [client 192.168.60.199:53510] LDAP Authentication failed for username: noc, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.463098 2024] [php:notice] [pid 15591] [client 192.168.60.199:40890] User search filter: (|(uid=dcim)(sAMAccountName=dcim)), referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.466642 2024] [php:warn] [pid 15591] [client 192.168.60.199:40890] PHP Warning: ldap_read(): Search: No such object in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:25:47.466753 2024] [php:error] [pid 15591] [client 192.168.60.199:40890] PHP Fatal error: Uncaught TypeError: ldap_get_entries(): Argument #2 ($result) must be of type LDAP\Result, false given in /opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0 /opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1 /opt/openDCIM/openDCIM-23.04/login_ldap.php(191): isUserInLDAPGroup()\n#2 {main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 52, referer: https://10.225.5.209/login_ldap.php
[Fri Nov 15 18:55:42.121754 2024] [php:notice] [pid 15557] [client 192.168.60.199:50826] User search filter: (|(uid=dcim)(sAMAccountName=dcim)), referer: https://10.225.5.209/login_ldap.php?logout
[Fri Nov 15 18:55:42.125428 2024] [php:warn] [pid 15557] [client 192.168.60.199:50826] PHP Warning: ldap_read(): Search: No such object in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 50, referer: https://10.225.5.209/login_ldap.php?logout
[Fri Nov 15 18:55:42.125514 2024] [php:error] [pid 15557] [client 192.168.60.199:50826] PHP Fatal error: Uncaught TypeError: ldap_get_entries(): Argument #2 ($result) must be of type LDAP\Result, false given in /opt/openDCIM/openDCIM-23.04/login_ldap.php:52\nStack trace:\n#0 /opt/openDCIM/openDCIM-23.04/login_ldap.php(52): ldap_get_entries()\n#1 /opt/openDCIM/openDCIM-23.04/login_ldap.php(191): isUserInLDAPGroup()\n#2 {main}\n thrown in /opt/openDCIM/openDCIM-23.04/login_ldap.php on line 52, referer: https://10.225.5.209/login_ldap.php?logout
I'm trying to connect my LDAP server to openDCIM. The connection is successful as the log shows below but when I enter the user authentication information which I've configured in LDAP, it doesn't automatically redirect me to the dashboard.
I had to delete the “login_ldap.php” part manually in the url to access the following interface
Any idea on how it can redirect automatically?
Beta Was this translation helpful? Give feedback.
All reactions