2

Kibana 4 で ELK をセットアップしましたが、すべて正常に動作していますが、LDAP 統合が必要なので、nginx-auth-ldap-master モジュールを使用して nginx-1.7.9 を再コンパイルしましたが、構文を完全には理解していません。Kibana は localhost のポート 5601 でリッスンしています。LDAP 構成は検証済みで正しいのですが、何か不足しています。これは私のNginx構成です:(ELK構成は標準です)

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

        }       

   } 

これが「サーバーがデータを送信しなかったため、Web ページを読み込めません」を返す理由を理解できる人は親切でしょうか。キバナの代わりに?(SElinux は無効で、firewalld のポートは開いています)

4

1 に答える 1

2

LDAPS 用に構成していて、ssl 証明書を作成したり、nginx 構成を ssl 証明書の場所に向けたりしていないことに気付きました。

于 2015-09-08T06:56:14.100 に答える