Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a ldapsimple pwcheck plugin #468

Open
wants to merge 89 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
d79e92a
Some fixes for distcheck
nacho Jun 24, 2016
a492fc2
Revert "Remove LIBSASL_API to sasldb"
nacho Jun 23, 2016
708d3ac
db_ndbm.c: Set "NOUSER" error message same as other db backend
obache Aug 25, 2016
27cdf76
db_ndbm.c: Make sure to rise FAIL with db open error
obache Aug 25, 2016
ef7d678
db_ndbm.c: Fix warnings about incompatible callback types
obache Aug 25, 2016
aec1387
Fix for DoS attack from Oracle:
JanParcel Oct 18, 2016
eddca2a
updated
ksmurchison Oct 18, 2016
88d82a3
Getting ready for 2.1.27
ksmurchison Oct 18, 2016
d8faf57
[Docs] Migrating html docs into rst for display online.
Nov 4, 2016
a8d4252
[Docs] Tidying up the index, reduce duplication.
Nov 7, 2016
48376c8
[Docs] Need MAkefile to build the docs.
Nov 7, 2016
915202c
Merge pull request #1 from nacho/distcheck-fix
ksmurchison Nov 7, 2016
fb2192e
Merge pull request #2 from nacho/fix-msvc
ksmurchison Nov 7, 2016
04f7a4a
Merge pull request #5 from obache/neatsrc/clean-up-ndbm
ksmurchison Nov 7, 2016
be44ae7
saslauthd: Fix indentation to silent GCC6 warnings [-Wmisleading-inde…
Jakuje Nov 7, 2016
2a30de1
Merge pull request #7 from Jakuje/gcc6
ksmurchison Nov 7, 2016
652334b
Add OpenSSL 1.1.0 support in saslauthd
Jakuje Nov 7, 2016
7b92bfb
index.html: update RFCs and I-Ds
ksmurchison Nov 7, 2016
6275da3
Remove all RFCs and I-Ds: simply link to IETF respository
ksmurchison Nov 7, 2016
67c9f16
mechanisms.html: added G2, GSS-SPNEGO, SCRAM
ksmurchison Nov 7, 2016
4f3c6be
Merge pull request #8 from Jakuje/openssl110
ksmurchison Nov 7, 2016
68fac2f
lak.c: replacement OpenSSL functions should be inside #if HAVE_OPENSSL
ksmurchison Nov 7, 2016
f216f8b
[Docs] Updating mechanism list and table SRP, G2, PASSDSS, GSS-SPEGNO
Nov 8, 2016
21e9b05
Docs. Updating list of RFCs
Nov 8, 2016
9f89fea
[Docs] Adding cross-links back to imapd plus edit links for GitHub
Nov 14, 2016
c1018db
[Docs] Add actual links to download tarball and source.
Nov 21, 2016
4174f67
NEWS: updated for 2.1.27
ksmurchison Nov 23, 2016
7a13e5d
doc/Makefile.am: remove RFCs and I-Ds; alpha sort remaining
ksmurchison Nov 23, 2016
f8268af
configure.ac: we still want tar.gz but add tar.bz2
ksmurchison Nov 23, 2016
bbab114
NEWS: credit Howard Chu for lmdb support
ksmurchison Nov 23, 2016
fc220fd
configure.ac: add checks for documentation generation
ksmurchison Nov 23, 2016
0780600
[Docs] Set current stable to be 2.1.26
Nov 24, 2016
ccb394d
Missing definition of OPENSSL_zalloc for old OpenSSL versions
Jakuje Dec 1, 2016
e861565
remove all unused id strings (RCS/CVS cruft)
ksmurchison Nov 25, 2016
a327d04
Merge pull request #10 from Jakuje/openssl_zalloc
ksmurchison Dec 9, 2016
160b3f5
lak.c: Missing definitions of EVP_MD_CTX_create() and EVP_MD_CTX_dest…
ksmurchison Dec 9, 2016
400e0fe
configure.ac: check if getpwnam_r/getspnam_r take 5 arguments (was lo…
ksmurchison Dec 9, 2016
b4aaa9e
sasl2.m4: don't define KRB5_HEIMDAL in CPPFLAGS since its already in …
ksmurchison Dec 9, 2016
573f708
plugin_common.c: handle platforms that don't have the s6_addr32 macro
ksmurchison Dec 10, 2016
3376cb5
plugins/: removed legacy $Id$ strings and updated CMU Copyright
ksmurchison Dec 10, 2016
c6cc140
lib/: removed legacy $Id$ strings and updated CMU Copyright
ksmurchison Dec 10, 2016
2ca1587
saslauthd/: removed legacy $Id$ strings and updated CMU Copyright
ksmurchison Dec 10, 2016
4f7f6a7
sasldb/: removed legacy $Id$ strings and updated CMU Copyright
ksmurchison Dec 10, 2016
376c9a0
pwcheck/: removed legacy $Id$ strings and updated CMU Copyright
ksmurchison Dec 10, 2016
04442b2
utils/: removed legacy $Id$ strings and updated CMU Copyright
ksmurchison Dec 10, 2016
6f2fd84
sample/: removed legacy $Id$ strings and updated CMU Copyright
ksmurchison Dec 10, 2016
bafc70e
include/: removed legacy $Id$ strings and updated CMU Copyright
ksmurchison Dec 10, 2016
497c716
explicitly declare gethostname() for those Sun platforms that don't
ksmurchison Dec 15, 2016
1448c7d
select(2) returns the total number of ready descriptors in all the sets
bigio Feb 15, 2017
59bee00
document error
yu2003w Feb 22, 2017
67ca666
Fix GSS-SPNEGO mechanism's incompatible behavior
simo5 Feb 16, 2017
04dd838
Merge pull request #424 from simo5/gss-spnego
ksmurchison Mar 3, 2017
6bde569
Fixes #418 - Allow build to function with the version of autoconf shi…
quanah Mar 20, 2017
d73226a
Update lak.c
slesru Mar 28, 2017
2b79ddd
select(2) returns the total number of ready descriptors in all the sets
bigio Feb 15, 2017
b6a17ba
Merge branch 'master' of https://github.com/bigio/cyrus-sasl
bigio Apr 2, 2017
862b60c
Drop unused parameter from gssapi_spnego_ssf()
simo5 Apr 11, 2017
7218125
Check return error from gss_wrap_size_limit()
simo5 Apr 10, 2017
ff9f9ca
Add support for retrieving the mech_ssf
simo5 Apr 10, 2017
55feaaa
Fix division-by-zero in reauth
felfert May 9, 2017
e8d223c
Fixed issue #430: MIT Kerberos errors are not logged with enough info…
ksmurchison Jul 13, 2017
70ff724
sample/Makefile.am: add build support for http_digest_client
ksmurchison Jul 13, 2017
bf52ea9
Merge pull request #432 from felfert/master
ksmurchison Jul 13, 2017
d6fbfd7
Merge pull request #429 from simo5/gss_ssf
ksmurchison Jul 13, 2017
8d82c76
Merge pull request #426 from quanah/master
ksmurchison Jul 13, 2017
9259292
auth_krb5.c: use parentheses around assignment used as truth value
ksmurchison Jul 13, 2017
4196a75
db_lmdb.c: squash used used parameter warnings
ksmurchison Jul 13, 2017
102d975
db_gdbm.c: squash incompatible pointer type warnings
ksmurchison Jul 13, 2017
f4d4f51
Merge pull request #428 from slesru/master
ksmurchison Jul 13, 2017
c29e529
Merge pull request #423 from yu2003w/master
ksmurchison Jul 13, 2017
e000912
Merge pull request #420 from bigio/master
ksmurchison Jul 13, 2017
0aaa7be
ntlm.c: Fixed issue #417: crash in NTLM plugin (patch from stalra)
ksmurchison Jul 13, 2017
9bb0bb0
plugins/login.c: don't prompt for password until requested by server
ksmurchison Jul 13, 2017
6f8cc36
Fixed issue #402: SASL GSSAPI mechanism acceptor wrongly returns zero…
ksmurchison Jul 13, 2017
14fd13b
Fixed issue #416: plugins/scram.c decode_saslname() returns corrupted…
ksmurchison Jul 13, 2017
dc1e731
testsuite.c: squash compiler warnings
ksmurchison Jul 13, 2017
72d6ba6
Fixed issue #412: Bug in caBug in cache lookup retrieving the bucket …
ksmurchison Jul 13, 2017
9cd28f8
For https://github.com/cyrusimap/cyrus-sasl/issues/403, cleanup
quanah Jul 13, 2017
e924cc9
configure.ac: default to using /dev/urandom rather than /dev/random
ksmurchison Jul 13, 2017
53a1797
install.html: fix typo
ksmurchison Jul 13, 2017
d949edd
Fixes https://github.com/cyrusimap/cyrus-sasl/issues/435
quanah Jul 13, 2017
4a9a0d9
Merge pull request #434 from quanah/issue-403
ksmurchison Jul 13, 2017
54ab398
Merge pull request #436 from quanah/issue-435
ksmurchison Jul 13, 2017
7e01e18
db_ndbm: Fixed issue #395: dbm_open() failures not reported well (pat…
ksmurchison Jul 13, 2017
6a27b9f
Fixed issue #326: sasl2.m4 has broken gssapi logic (patch from Jan Pa…
ksmurchison Jul 13, 2017
6fd4b33
saslauthd/cache.c: Fixed issue #317: saslauthd debug output swaps rea…
ksmurchison Jul 13, 2017
c58ce95
fix windows compile with _MSC_VER >= 1900
comicfans Sep 2, 2017
639f983
add a ldapsimple pwcheck plugin
comicfans Sep 2, 2017
4831620
move simpleldap code into WIN32 macro ifdef block.
comicfans Oct 27, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ libtool
config.status
stamp-h1
Makefile
*.pyc
docsrc/.doctrees/
docsrc/build/
50 changes: 50 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
2016-10-18 Ken Murchison <[email protected]>
* Fixed potential DoS attack on saslauthd/doors (from Oracle)

2016-06-30 Ken Murchison <[email protected]>
* plugins/ntlm.c, otp.c: support OpenSSL 1.1

2016-06-14 Ken Murchison <[email protected]>
* plugins/digestmd5.c: Fix memory leak in client step 2

2016-03-24 Ken Murchison <[email protected]>
* auth_rimap.c: Don't hang when IMAP server closes connection

2016-01-29 Ken Murchison <[email protected]>
* Build fixes from Ignacio Casal Quinteiro

2015-12-26 Ken Murchison <[email protected]>
* Build fixes from Ignacio Casal Quinteiro

2015-11-16 Ken Murchison <[email protected]>
* Build fixes from Ignacio Casal Quinteiro

2015-10-14 Ken Murchison <[email protected]>
* Build fixes from Ignacio Casal Quinteiro

2015-07-17 Ken Murchison <[email protected]>
* auth_krb5.c: added krb5_conv_krb4_instance option

2014-11-17 Ken Murchison <[email protected]>
* plugins/digestmd5.c: Fix memory leaks

2014-11-17 Ken Murchison <[email protected]>
* plugins/digestmd5.c: prevent going from step 3 to step 2

2013-09-13 Alexey Melnikov <[email protected]>
* Fix memory leaks in DIGEST

2013-08-30 Ken Murchison <[email protected]>
* plugins/digestmd5.c: only locate reauth cache when reauth is
enabled

2013-07-11 Alexey Melnikov <[email protected]>
* Treat SCRAM and DIGEST as more secure than PLAIN when selecting
client-side mechanism

2013-07-11 Alexey Melnikov <[email protected]>
* Handle NULL return from crypt()

2012-11-20 Alexey Melnikov <[email protected]>
* Added support for lmdb

2012-11-19 Alexey Melnikov <[email protected]>
* Final 2.1.26 tagged and released by Ken.

Expand Down
14 changes: 14 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
New in 2.1.27
-------------

* Added support for OpenSSL 1.1
* Fixed potential DoS attack on saslauthd/doors (from Oracle)
* Added support for lmdb (from Howard Chu)
* Lots of build fixes (from Ignacio Casal Quinteiro)
* DIGEST-MD5 plugin:
- Fixed memory leaks
- Fixed a segfault when looking for non-existent reauth cache
- Prevent client from going from step 3 back to step 2
* Added krb5_conv_krb4_instance option to saslauthd/kerberos5
* Treat SCRAM and DIGEST-MD5 as more secure than PLAIN when selecting client mech

New in 2.1.26
-------------

Expand Down
6 changes: 0 additions & 6 deletions README.rpm

This file was deleted.

57 changes: 49 additions & 8 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ dnl AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
dnl OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
dnl

AC_PREREQ(2.63.2)
AC_PREREQ(2.63)

dnl
dnl REMINDER: When changing the version number here, please also update
dnl the values in win32/include/config.h and include/sasl.h as well.
dnl
AC_INIT([cyrus-sasl],
[2.1.26],
[https://git.cyrus.foundation/maniphest/],
[2.1.27],
[https://github.com/cyrusimap/cyrus-sasl/issues],
[cyrus-sasl],
[https://docs.cyrus.foundation])
[http://cyrusimap.org])

AC_CONFIG_MACRO_DIR([m4])

Expand All @@ -67,7 +67,7 @@ AC_CONFIG_AUX_DIR(config)
AC_CANONICAL_HOST
AC_CANONICAL_TARGET

AM_INIT_AUTOMAKE([1.11 tar-ustar dist-xz no-dist-gzip -Wno-portability subdir-objects])
AM_INIT_AUTOMAKE([1.11 tar-ustar dist-bzip2 -Wno-portability subdir-objects])

DIRS=""

Expand Down Expand Up @@ -226,10 +226,10 @@ AC_SUBST(SASL_DL_LIB)

dnl /dev/random ?

AC_ARG_WITH(devrandom, [ --with-devrandom=PATH set the path to /dev/random [[/dev/random]] ],
AC_ARG_WITH(devrandom, [ --with-devrandom=PATH set the path to pseudo random number generator [[/dev/urandom]] ],
devrandom=$withval,
devrandom=/dev/random)
AC_MSG_CHECKING(/dev/random to use)
devrandom=/dev/urandom)
AC_MSG_CHECKING(PRNG to use)
AC_MSG_RESULT($devrandom)
AC_DEFINE_UNQUOTED(SASL_DEV_RANDOM, "$devrandom", [File to use for source of randomness])

Expand Down Expand Up @@ -1321,6 +1321,28 @@ IPv6_CHECK_SOCKLEN_T()
#AC_FUNC_VPRINTF
AC_CHECK_FUNCS(gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy mkdir select socket strchr strdup strerror strspn strstr strtol jrand48 getpassphrase asprintf strlcat strlcpy)

if test $ac_cv_func_getspnam = yes; then
AC_MSG_CHECKING(if getpwnam_r/getspnam_r take 5 arguments)
AC_TRY_COMPILE(
[
#include <sys/types.h>
#include <pwd.h>
#include <shadow.h>
],
[
struct passwd *pw;
struct passwd pwbuf;
char pwdata[512];
(void) getpwnam_r("bin", &pwbuf, pwdata, sizeof(pwdata), &pw);
],
[AC_MSG_RESULT(yes)
AC_DEFINE(GETXXNAM_R_5ARG, 1,
[Define if your getpwnam_r()/getspnam_r()
functions take 5 arguments])],
[AC_MSG_RESULT(no)]
)
fi

if test $enable_cmulocal = yes; then
AC_WARN([enabling CMU local kludges])
AC_DEFINE(KRB4_IGNORE_IP_ADDRESS,[],[Ignore IP Address in Kerberos 4 tickets?])
Expand All @@ -1332,6 +1354,25 @@ AC_EGREP_HEADER(sockaddr_storage, sys/socket.h, [

AC_SUBST(DIRS)

dnl documentation generation (sphinx, perl2rst)
AC_ARG_VAR(SPHINX_BUILD, [Location of sphinx-build])
AC_ARG_WITH([sphinx-build],
AS_HELP_STRING([with-sphinx-build=(yes|no|PATH)], [Look for sphinx-build in PATH]),
[with_sphinx_build=$withval],
[with_sphinx_build=yes])
AS_CASE([$with_sphinx_build],
[yes], [AC_PATH_PROG(SPHINX_BUILD, sphinx-build)],
[no], [SPHINX_BUILD=''],
[*], [AC_PATH_PROG(SPHINX_BUILD, sphinx-build, [], [$with_sphinx_build])])
AS_IF([test -z "$SPHINX_BUILD"],
[AC_MSG_WARN([No sphinx-build, won't be able to regenerate docs])])
AC_SUBST([SPHINX_BUILD])
AC_PROG_PERL_MODULES([Pod::POM::View::Restructured],
[have_ppvr=yes],
[AC_MSG_WARN([No Pod::POM::View::Restructured, won't be able to regenerate docs])])
AM_CONDITIONAL([HAVE_SPHINX_BUILD], [ test -n "$SPHINX_BUILD" -a x"$have_ppvr" = xyes])


AH_TOP([
/* acconfig.h - autoheader configuration input */
/*
Expand Down
55 changes: 16 additions & 39 deletions doc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -43,47 +43,24 @@
#
################################################################

EXTRA_DIST = rfc1321.txt \
rfc1939.txt \
rfc2104.txt \
rfc2195.txt \
rfc2222.txt \
rfc2243.txt \
rfc2245.txt \
rfc2289.txt \
rfc2444.txt \
rfc2595.txt \
rfc2831.txt \
rfc2945.txt \
rfc3174.txt \
testing.txt \
server-plugin-flow.fig \
draft-burdis-cat-srp-sasl-xx.txt \
draft-ietf-sasl-anon-xx.txt \
draft-ietf-sasl-crammd5-xx.txt \
draft-ietf-sasl-gssapi-xx.txt \
draft-ietf-sasl-plain-xx.txt \
draft-ietf-sasl-rfc2222bis-xx.txt \
draft-ietf-sasl-rfc2831bis-xx.txt \
draft-ietf-sasl-saslprep-xx.txt \
draft-murchison-sasl-login-xx.txt \
draft-newman-sasl-c-api-xx.txt \
draft-newman-sasl-passdss-xx.txt \
programming.html \
sysadmin.html \
EXTRA_DIST = advanced.html \
appconvert.html \
components.html \
gssapi.html \
advanced.html \
index.html \
install.html \
macosx.html \
mechanisms.html \
NTMakefile \
ONEWS \
options.html \
os390.html \
plugprog.html \
appconvert.html \
macosx.html \
windows.html \
programming.html \
readme.html \
mechanisms.html \
upgrading.html \
index.html \
components.html \
install.html \
server-plugin-flow.fig \
sysadmin.html \
testing.txt \
TODO \
ONEWS \
NTMakefile
upgrading.html \
windows.html
Loading