kvspb / nginx-auth-ldap

LDAP authentication module for nginx
BSD 2-Clause "Simplified" License
731 stars 251 forks source link

nginx-1.8.1 fatal error ldap.h: No such file or directory when trying to make #127

Closed mattct closed 8 years ago

mattct commented 8 years ago

When I was trying to make nginx 1.8.1 with the ngx_http_auth_ldap_module the following below and I have no idea how to fix this. I'm hoping someone can give me some guidance.I am trying to do this on Centos7 I have installed openssl-devel, pcre-devel

/nginx-1.8.1/src/http/modules/nginx-auth-ldap//ngx_http_auth_ldap_module.c:33:18: fatal error: ldap.h: No such file or directory

include

              ^

compilation terminated. make[1]: * [objs/addon/nginx-auth-ldap/ngx_http_auth_ldap_module.o] Error 1 make[1]: Leaving directory `/custom-nginx/nginx-1.8.1' make: * [build] Error 2

mattct commented 8 years ago

Figured out that openldap-devel was not installed and once I did I no longer got an error