Enable .env file to point to location of CA Cert (#2382)

This commit is contained in:
Brady Wetherington 2016-08-02 02:36:00 -07:00 committed by snipe
parent e7e8c487c9
commit 1747be4b29

View file

@ -35,6 +35,11 @@ class Ldap extends Model
putenv('LDAPTLS_REQCERT=never');
}
// If the user specifies where CA Certs are, make sure to use them
if(env("LDAPTLS_CACERT")) {
putenv("LDAPTLS_CACERT=".env("LDAPTLS_CACERT"));
}
$connection = @ldap_connect($ldap_host);
if (!$connection) {