[BACK]Return to ldapclient.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ldap

Diff for /src/usr.bin/ldap/ldapclient.c between version 1.7 and 1.8

version 1.7, 2018/11/06 14:15:29 version 1.8, 2018/11/06 20:38:42
Line 52 
Line 52 
 #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
Line 220 
Line 219 
         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)

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8