@anwoke8204 said in Configuring LDAP Authentication:
@george1421 here is what the apache error log says when i try to use a user in the AD:
[Sun Aug 06 19:30:52.251791 2023] [mpm_event:notice] [pid 2231:tid 140720057064768] AH00489: Apache/2.4.56 (Debian) configured – resuming normal operations
[Sun Aug 06 19:30:52.252004 2023] [core:notice] [pid 2231:tid 140720057064768] AH00094: Command line: ‘/usr/sbin/apache2’
[Sun Aug 06 19:32:53.721269 2023] [mpm_event:notice] [pid 2231:tid 140720057064768] AH00492: caught SIGWINCH, shutting down gracefully
[Sun Aug 06 19:32:53.800758 2023] [mpm_prefork:notice] [pid 15542] AH00163: Apache/2.4.56 (Debian) configured – resuming normal operations
[Sun Aug 06 19:32:53.801014 2023] [core:notice] [pid 15542] AH00094: Command line: ‘/usr/sbin/apache2’
[Sun Aug 06 19:32:54.085464 2023] [mpm_prefork:notice] [pid 15542] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Aug 06 19:32:54.221866 2023] [mpm_prefork:notice] [pid 15583] AH00163: Apache/2.4.56 (Debian) configured – resuming normal operations
[Sun Aug 06 19:32:54.221984 2023] [core:notice] [pid 15583] AH00094: Command line: ‘/usr/sbin/apache2’
[Sun Aug 06 19:34:47.821763 2023] [mpm_prefork:notice] [pid 15583] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Aug 06 19:35:03.529765 2023] [mpm_prefork:notice] [pid 25041] AH00163: Apache/2.4.56 (Debian) OpenSSL/1.1.1n configured – resuming normal operations
[Sun Aug 06 19:35:03.529963 2023] [core:notice] [pid 25041] AH00094: Command line: ‘/usr/sbin/apache2’
[Sun Aug 06 20:25:54.324902 2023] [mpm_prefork:notice] [pid 25041] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Aug 06 20:33:40.014130 2023] [mpm_prefork:notice] [pid 531] AH00163: Apache/2.4.56 (Debian) OpenSSL/1.1.1n configured – resuming normal operations
[Sun Aug 06 20:33:40.018076 2023] [core:notice] [pid 531] AH00094: Command line: ‘/usr/sbin/apache2’
[Sun Aug 06 21:16:32.086362 2023] [proxy_fcgi:error] [pid 1795] [client 10.4.47.20:64615] AH01071: Got error ‘PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/fog/lib/plugins/accesscontrol/pages/accesscontrolmanagementpage.class.php on line 1842’, referer: https://10.4.47.15/fog/management/index.php?node=accesscontrol&sub=edit&id=1
[Sun Aug 06 21:16:39.710985 2023] [proxy_fcgi:error] [pid 2036] [client 10.4.47.20:64776] AH01071: Got error ‘PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/fog/lib/plugins/accesscontrol/pages/accesscontrolmanagementpage.class.php on line 1774’, referer: https://10.4.47.15/fog/management/index.php?node=accesscontrol&sub=membership&id=1
[Sun Aug 06 21:16:47.843843 2023] [proxy_fcgi:error] [pid 2227] [client 10.4.47.20:64954] AH01071: Got error ‘PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/fog/lib/plugins/accesscontrol/pages/accesscontrolmanagementpage.class.php on line 1774’, referer: https://10.4.47.15/fog/management/index.php?node=accesscontrol&sub=membership&id=1
[Sun Aug 06 21:17:04.639901 2023] [proxy_fcgi:error] [pid 2227] [client 10.4.47.20:65261] AH01071: Got error ‘PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/fog/lib/plugins/accesscontrol/pages/accesscontrolmanagementpage.class.php on line 1567’, referer: https://10.4.47.15/fog/management/index.php?node=accesscontrol&sub=edit&id=2
[Tue Aug 08 00:00:01.815318 2023] [mpm_prefork:notice] [pid 531] AH00171: Graceful restart requested, doing restart
[Tue Aug 08 00:00:01.984166 2023] [mpm_prefork:notice] [pid 531] AH00163: Apache/2.4.56 (Debian) OpenSSL/1.1.1n configured – resuming normal operations
[Tue Aug 08 00:00:01.984214 2023] [core:notice] [pid 531] AH00094: Command line: ‘/usr/sbin/apache2’
[Wed Aug 09 00:00:02.016463 2023] [mpm_prefork:notice] [pid 531] AH00171: Graceful restart requested, doing restart
[Wed Aug 09 00:00:02.100553 2023] [mpm_prefork:notice] [pid 531] AH00163: Apache/2.4.56 (Debian) OpenSSL/1.1.1n configured – resuming normal operations
[Wed Aug 09 00:00:02.100688 2023] [core:notice] [pid 531] AH00094: Command line: ‘/usr/sbin/apache2’
[Wed Aug 09 04:31:27.811881 2023] [mpm_prefork:notice] [pid 540] AH00163: Apache/2.4.56 (Debian) OpenSSL/1.1.1n configured – resuming normal operations
[Wed Aug 09 04:31:27.817907 2023] [core:notice] [pid 540] AH00094: Command line: ‘/usr/sbin/apache2’
[Thu Aug 10 00:00:09.901297 2023] [mpm_prefork:notice] [pid 540] AH00171: Graceful restart requested, doing restart
[Thu Aug 10 00:00:09.998560 2023] [mpm_prefork:notice] [pid 540] AH00163: Apache/2.4.56 (Debian) OpenSSL/1.1.1n configured – resuming normal operations
[Thu Aug 10 00:00:09.998670 2023] [core:notice] [pid 540] AH00094: Command line: ‘/usr/sbin/apache2’
[Fri Aug 11 00:00:09.735719 2023] [mpm_prefork:notice] [pid 540] AH00171: Graceful restart requested, doing restart
[Fri Aug 11 00:00:09.921163 2023] [mpm_prefork:notice] [pid 540] AH00163: Apache/2.4.56 (Debian) OpenSSL/1.1.1n configured – resuming normal operations
[Fri Aug 11 00:00:09.921299 2023] [core:notice] [pid 540] AH00094: Command line: ‘/usr/sbin/apache2’
[Fri Aug 11 21:39:53.916653 2023] [proxy_fcgi:error] [pid 240583] [client 10.4.47.20:53244] AH01071: Got error ‘PHP message: Plugin LDAP::authLDAP() Cannot bind to the LDAP server ldaps://10.4.47.11:636’, referer: https://imaging.starshipfrontier.org/fog/management/index.php
[Fri Aug 11 21:40:06.251910 2023] [proxy_fcgi:error] [pid 243872] [client 10.4.47.20:53294] AH01071: Got error ‘PHP message: Plugin LDAP::authLDAP() Cannot bind to the LDAP server ldaps://10.4.47.11:636’, referer: https://imaging.starshipfrontier.org/fog/management/index.php?node=home
[Fri Aug 11 21:48:05.584313 2023] [proxy_fcgi:error] [pid 241157] [client 10.4.47.20:53488] AH01071: Got error ‘PHP message: Plugin LDAP::authLDAP() Cannot bind to the LDAP server ldaps://10.4.47.11:636’, referer: https://imaging.starshipfrontier.org/fog/management/index.php?node=home
[Fri Aug 11 21:50:21.604921 2023] [proxy_fcgi:error] [pid 240581] [client 10.4.47.20:53634] AH01071: Got error ‘PHP message: Plugin LDAP::_result(). Search Method: read; Filter: (&(|(objectcategory=person)(objectclass=person))(samaccountname=testuser)); Result: 0PHP message: Plugin LDAP::authLDAP() Search results returned false. Search DN: cn=fog access,cn=users,dc=starshipfrontier,dc=org; Filter: (&(|(objectcategory=person)(objectclass=person))(samaccountname=testuser))’, referer: https://imaging.starshipfrontier.org/fog/management/index.php?node=home
[Sat Aug 12 00:00:08.991748 2023] [mpm_prefork:notice] [pid 540] AH00171: Graceful restart requested, doing restart
[Sat Aug 12 00:00:09.063853 2023] [mpm_prefork:notice] [pid 540] AH00163: Apache/2.4.56 (Debian) OpenSSL/1.1.1n configured – resuming normal operations
[Sat Aug 12 00:00:09.063902 2023] [core:notice] [pid 540] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Aug 12 15:06:48.571781 2023] [proxy_fcgi:error] [pid 384269] [client 10.4.47.112:59086] AH01071: Got error ‘PHP message: Plugin LDAP::authLDAP() Cannot bind to the LDAP server ldaps://10.4.47.11:636’, referer: https://imaging.starshipfrontier.org/fog/management/index.php
[Sat Aug 12 15:07:31.079594 2023] [proxy_fcgi:error] [pid 384272] [client 10.4.47.112:59193] AH01071: Got error ‘PHP message: Plugin LDAP::authLDAP() Cannot bind to the LDAP server ldaps://10.4.47.11:636’, referer: https://imaging.starshipfrontier.org/fog/management/index.php?node=homeSuper Mario
[Sat Aug 12 15:08:33.554488 2023] [proxy_fcgi:error] [pid 384270] [client 10.4.47.112:59344] AH01071: Got error ‘PHP message: Plugin LDAP::authLDAP() Cannot bind to the LDAP server ldaps://10.4.47.11:636’, referer: https://imaging.starshipfrontier.org/fog/management/index.php?node=home
I think you should upgrade ldaps to the latest version. Hope to find a solution soon