2015-09-04 77 views
2

我已经安装麋鹿kibana 4,一切都运行良好,但我需要LDAP集成,所以我重新编译nginx的-1.7.9与nginx的认证 - LDAP主控模块,但是我不完全理解语法。 Kibana正在localhost上的端口5601上进行监听 - LDAP配置已经过验证并且正确,但我错过了一些东西。这是我的Nginx的配置:(ELK配置为标准配置)设置nginx的LDAP身份验证Kibana 4

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;   
      } 

     }  

    } 

会有人好心地看到这是为什么返回“因为服务器发送任何数据,无法加载网页。”而不是Kibana? (SELinux的是残疾人和端口是开放的firewalld)

回答

2

我才意识到我是在配置它LDAPS和我没有创建SSL证书或对SSL证书的位置点我nginx的配置。

+0

这是如何工作的?它运行良好,没有问题? –