Skip to content

Commit 7aa40a6

Browse files
authored
Don't enable GSSAPI method if principal is not set #81 (#82)
1 parent c8c4c2b commit 7aa40a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Net/SMTP.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public function __construct($host = null, $port = null, $localhost = null,
213213
$this->gssapi_cname = $gssapi_cname;
214214

215215
/* If PHP krb5 extension is loaded, we enable GSSAPI method. */
216-
if (extension_loaded('krb5')) {
216+
if (isset($gssapi_principal) && extension_loaded('krb5')) {
217217
$this->setAuthMethod('GSSAPI', array($this, 'authGSSAPI'));
218218
}
219219

0 commit comments

Comments
 (0)