Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为Kibana 4设置nginx ldap身份验证_Nginx_Logstash_Kibana_Kibana 4_Elastic Stack - Fatal编程技术网

为Kibana 4设置nginx ldap身份验证

为Kibana 4设置nginx ldap身份验证,nginx,logstash,kibana,kibana-4,elastic-stack,Nginx,Logstash,Kibana,Kibana 4,Elastic Stack,我已经用kibana 4安装了ELK,一切运行正常,但我需要LDAP集成,因此我用nginx auth LDAP主模块重新编译了nginx-1.7.9,但我不完全理解语法。Kibana正在本地主机上的端口5601上侦听—LDAP配置已验证且正确,但我遗漏了一些内容。这是我的Nginx配置:(麋鹿配置是标准配置) 有没有人能理解为什么会返回“无法加载网页,因为服务器没有发送数据”,而不是Kibana?(SElinux已禁用,防火墙上的端口已打开)我刚刚意识到我正在为LDAP配置它,但我没有创建ss

我已经用kibana 4安装了ELK,一切运行正常,但我需要LDAP集成,因此我用nginx auth LDAP主模块重新编译了nginx-1.7.9,但我不完全理解语法。Kibana正在本地主机上的端口5601上侦听—LDAP配置已验证且正确,但我遗漏了一些内容。这是我的Nginx配置:(麋鹿配置是标准配置)


有没有人能理解为什么会返回“无法加载网页,因为服务器没有发送数据”,而不是Kibana?(SElinux已禁用,防火墙上的端口已打开)

我刚刚意识到我正在为LDAP配置它,但我没有创建ssl证书或将我的nginx配置指向ssl证书的位置

user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;

events {
    worker_connections 1024;
}

   http {   

      auth_ldap_cache_enabled on;
      auth_ldap_cache_expiration_time 10000;
      auth_ldap_cache_size 1000;

 ##Configuration of your LDAP server
      ldap_server LDAP1 {
          url "ldaps://XXX:3268/dc=XX,dc=com?sAMAccountName?sub?";
          binddn "XX";
          binddn_passwd "XX";
          connect_timeout 5s;
          bind_timeout 5s;
          request_timeout 5s;
          satisfy any;
          group_attribute member;
          group_attribute_is_dn on;
          require group "CN=XX,OU=Grouper,OU=XX Groups,DC=XX,DC=com";
      }

      server {
        listen 80;

    server_name XX;

        auth_ldap "Please enter your ldap credentials";
        auth_ldap_servers LDAP1;


 location / {
        proxy_pass http://localhost:5601;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;        
            }

        }       

   }