diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-03-01 19:27:37 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-03-01 19:27:37 +0000 |
commit | 47f54c3820f78d1b74823a40fbeb05d1064a4615 (patch) | |
tree | fd70f4c39bf9f355e39e14a092d0eb2e8c2ec1b5 /imap.c | |
parent | bf00c1817100d2379a8127888f4f2d3c43732280 (diff) | |
download | fetchmail-47f54c3820f78d1b74823a40fbeb05d1064a4615.tar.gz fetchmail-47f54c3820f78d1b74823a40fbeb05d1064a4615.tar.bz2 fetchmail-47f54c3820f78d1b74823a40fbeb05d1064a4615.zip |
Notify if we don't have a required capability.
svn path=/trunk/; revision=3169
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -330,14 +330,28 @@ int imap_getauth(int sock, struct query *ctl, char *greeting) if ((ctl->server.authenticate == A_ANY || ctl->server.authenticate==A_OTP) && strstr(capabilities, "AUTH=X-OTP")) - return(do_otp(sock, ctl); + return(do_otp(sock, ctl)); +#else + if (ctl->server.authenticate==A_NTLM) + { + report(stderr, + _("Required OTP capability not compiled into fetchmail\n")); + return(PS_AUTHFAIL); + } #endif /* OPIE_ENABLE */ #ifdef NTLM_ENABLE if ((ctl->server.authenticate == A_ANY - || ctl->server.authenticate==A_NTLM) + || ctl->server.authenticate==A_NTLM) && strstr (capabilities, "AUTH=NTLM")) - return(do_imap_ntlm(sock, ctl)); + return(do_imap_ntlm(sock, ctl)); +#else + if (ctl->server.authenticate==A_NTLM) + { + report(stderr, + _("Required NTLM capability not compiled into fetchmail\n")); + return(PS_AUTHFAIL); + } #endif /* NTLM_ENABLE */ #ifdef __UNUSED__ /* The Cyrus IMAP4rev1 server chokes on this */ |