Allow --with-ldap-conf-file option to override LDAP_CONF

This commit is contained in:
Aaron Spangler
2004-08-27 03:44:35 +00:00
parent b7ea12521a
commit 2ceb87bc56
3 changed files with 7 additions and 5 deletions

6
ldap.c
View File

@@ -62,10 +62,6 @@ static const char rcsid[] = "$Sudo$";
/* LDAP code below */
#ifndef LDAP_CONFIG
#define LDAP_CONFIG "/etc/ldap.conf"
#endif
#ifndef BUF_SIZ
#define BUF_SIZ 1024
#endif
@@ -474,7 +470,7 @@ sudo_ldap_read_config()
char *keyword;
char *value;
f=fopen(LDAP_CONFIG,"r");
f=fopen(_PATH_LDAP_CONF,"r");
if (!f) return 0;
while (f && fgets(buf,sizeof(buf)-1,f)){
c=buf;