Code: Select all
nc -v ldap-server.example.com 636
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to 192.168.1.1:636.
^C
Code: Select all
nc -v ldap-server.example.com 636
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to 192.168.1.1:636.
^C
Code: Select all
vi /var/www/html/nagioslogserver/application/helpers/ldap_ad_helper.php
Please see the following support article which outlines:function create_auth_connection()
{
ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
$ci =& get_instance();
Code: Select all
tail -f /var/log/httpd/error_log /var/log/httpd/ssl_error_log
Code: Select all
10.0.0.5 - - [27/Sep/2021:18:44:29 +0000] "POST /nagioslogserver/login HTTP/1.1" 303 - "http://192.168.2.7/nagioslogserver/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0"
10.0.0.5 - - [27/Sep/2021:18:44:29 +0000] "GET /nagioslogserver/login HTTP/1.1" 200 9183 "http://192.168.2.7/nagioslogserver/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0"
Code: Select all
[Mon Sep 27 07:34:48.008948 2021] [authz_core:error] [pid 46052] [client 192.168.2.10:38412] AH01630: client denied by server configuration: /var/www/html/.htaccess
[Mon Sep 27 07:34:48.021586 2021] [authz_core:error] [pid 46052] [client 192.168.2.10:38412] AH01630: client denied by server configuration: /var/www/html/.htpasswd
[Mon Sep 27 07:34:48.281319 2021] [core:error] [pid 46052] [client 192.168.2.10:38484] AH00126: Invalid URI in request GET /././.. HTTP/1.1
[Mon Sep 27 07:34:48.282112 2021] [core:error] [pid 9943] [client 192.168.2.10:38486] AH00126: Invalid URI in request GET ././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././../../../../../../../../ HTTP/1.1
[Mon Sep 27 18:32:10.842432 2021] [mpm_prefork:notice] [pid 1059] AH00170: caught SIGWINCH, shutting down gracefully
[Mon Sep 27 18:32:14.850688 2021] [suexec:notice] [pid 52007] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Sep 27 18:32:14.892777 2021] [lbmethod_heartbeat:notice] [pid 52007] AH02282: No slotmem from mod_heartmonitor
[Mon Sep 27 18:32:14.913605 2021] [mpm_prefork:notice] [pid 52007] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured -- resuming normal operations
[Mon Sep 27 18:32:14.913634 2021] [core:notice] [pid 52007] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
cat: /var/run/elasticsearch/elasticsearch.pid: No such file or directory
Code: Select all
sestatus
Code: Select all
openssl s_client -showcerts -connect yourldapserverhere:636
Code: Select all
openssl s_client -showcerts -connect yournagioslogserveraddresshere:443
Code: Select all
systemctl status httpd elasticsearch logstash
Code: Select all
curl -XGET 'http://localhost:9200/nagioslogserver/user/_search?q=_type:user'
Code: Select all
curl -XPUT 'http://localhost:9200/nagioslogserver/user/99' -d
'{"username":"someuser","password":"c678bcf3b5138b9263a95c44d28097f22c2e028
77193d2c25313478821d45c19","auth_type":"admin","email":"user@example.com","la
nguage":"default","apiaccess":"1","apikey":"enteryourapikeyhere","created":"2015-01-23
10:00:00","created_by":0,"default_dashboard":"/dashboard/elasticsearch/default"}'