~ubuntu-branches/ubuntu/hoary/postfix/hoary-security

« back to all changes in this revision

Viewing changes to src/smtpd/smtpd_sasl_proto.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-10-06 11:50:33 UTC
  • Revision ID: james.westby@ubuntu.com-20041006115033-9oky44ylqmhjy7eq
Tags: 2.1.3-1ubuntu17
* Deliver man pages for master.cf services in section 8postfix.
  Remove smtpd.8.gz diversion. Closes: #274777
* Clean up postfix-mysql documentation (created README.Debian files).
  Closes: Warty#2022
* Fix typo in postmap man page.  Closes: #271369

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
        smtpd_chat_reply(state, "503 Error: authentication not enabled");
130
130
        return (-1);
131
131
    }
 
132
#ifdef USE_TLS
 
133
#ifdef USE_SSL
 
134
    if (state->tls_auth_only && !state->tls_active) {
 
135
        state->error_mask |= MAIL_ERROR_PROTOCOL;
 
136
        smtpd_chat_reply(state, "538 Encryption required for requested authentication mechanism");
 
137
        return (-1);
 
138
    }
 
139
#endif
 
140
#endif
132
141
    if (state->sasl_username) {
133
142
        state->error_mask |= MAIL_ERROR_PROTOCOL;
134
143
        smtpd_chat_reply(state, "503 Error: already authenticated");