version 1.7, 2018/11/06 14:15:29 |
version 1.8, 2018/11/06 20:38:42 |
|
|
#define F_NEEDAUTH 0x04 |
#define F_NEEDAUTH 0x04 |
#define F_LDIF 0x08 |
#define F_LDIF 0x08 |
|
|
#define CAPATH "/etc/ssl/cert.pem" |
|
#define LDAPHOST "localhost" |
#define LDAPHOST "localhost" |
#define LDAPFILTER "(objectClass=*)" |
#define LDAPFILTER "(objectClass=*)" |
#define LDIF_LINELENGTH 79 |
#define LDIF_LINELENGTH 79 |
|
|
if (ldap.ldap_protocol == LDAP && (ldap.ldap_flags & F_STARTTLS)) |
if (ldap.ldap_protocol == LDAP && (ldap.ldap_flags & F_STARTTLS)) |
ldap.ldap_protocol = LDAPTLS; |
ldap.ldap_protocol = LDAPTLS; |
if (ldap.ldap_capath == NULL) |
if (ldap.ldap_capath == NULL) |
ldap.ldap_capath = CAPATH; |
ldap.ldap_capath = TLS_CA_CERT_FILE; |
if (ls.ls_basedn == NULL) |
if (ls.ls_basedn == NULL) |
ls.ls_basedn = ""; |
ls.ls_basedn = ""; |
if (ls.ls_scope == -1) |
if (ls.ls_scope == -1) |