]> eyrie.org Git - kerberos/krb5-strength.git/log
kerberos/krb5-strength.git
10 years agoRevert "Fix edit distance checking and add a test suite"
Russ Allbery [Wed, 26 Feb 2014 23:15:10 +0000 (15:15 -0800)]
Revert "Fix edit distance checking and add a test suite"

This reverts commit feb69b10461b4dca5d439ace7aaf58640000d8bd.
This is too slow to be usable.  We will be adding an new password
dictionary back-end that will do this check.

10 years agoFix edit distance checking and add a test suite
Russ Allbery [Wed, 12 Feb 2014 04:33:38 +0000 (20:33 -0800)]
Fix edit distance checking and add a test suite

Several errors in the previous implementation caused edit distance
checking to not work properly.  Actually iterate through the
possible characters correctly.

10 years agoIn CDB checks, check all passwords within edit distance one
Russ Allbery [Fri, 7 Feb 2014 23:44:44 +0000 (15:44 -0800)]
In CDB checks, check all passwords within edit distance one

When checking a password against a CDB dictionary, the dictionary will
be checked for all printable ASCII passwords within edit distance one,
in addition to checking the password with first and last characters,
first two characters, and last two characters removed.

10 years agoAdd hash benchmarking support to heimdal-history
Russ Allbery [Fri, 7 Feb 2014 22:25:20 +0000 (14:25 -0800)]
Add hash benchmarking support to heimdal-history

Add an option to benchmark the hash function and find an interation
count that takes a particular amount of time.  Adjust the default
iteration count to match benchmarking done on relatively recent
hardware.

10 years agoAdd password history implementation for Heimdal
Russ Allbery [Wed, 5 Feb 2014 01:30:39 +0000 (17:30 -0800)]
Add password history implementation for Heimdal

A password history implementation for Heimdal is now included.  This
is a separate Perl program, heimdal-history, that stacks with the
external program implementation of strength checking.  It is not
available in the form of a plugin, only as a Heimdal external password
quality check.  (MIT Kerberos provides its own password history
mechanism.)  This program has more extensive Perl module dependencies
than the other programs in this distribution.

10 years agoFinalize changes for 2.2-1 debian/2.2-1
Russ Allbery [Mon, 16 Dec 2013 23:36:32 +0000 (15:36 -0800)]
Finalize changes for 2.2-1

10 years agoUpdate debian/copyright for new upstream release
Russ Allbery [Mon, 16 Dec 2013 23:17:04 +0000 (15:17 -0800)]
Update debian/copyright for new upstream release

10 years agoUpdate to standards version 3.9.5
Russ Allbery [Mon, 16 Dec 2013 23:16:16 +0000 (15:16 -0800)]
Update to standards version 3.9.5

10 years agoAdd changelog for new upstream release
Russ Allbery [Mon, 16 Dec 2013 23:15:18 +0000 (15:15 -0800)]
Add changelog for new upstream release

10 years agoMerge tag 'upstream/2.2' into debian
Russ Allbery [Mon, 16 Dec 2013 21:50:16 +0000 (13:50 -0800)]
Merge tag 'upstream/2.2' into debian

Upstream version 2.2

10 years agoImported Upstream version 2.2 upstream/2.2
Russ Allbery [Mon, 16 Dec 2013 21:49:53 +0000 (13:49 -0800)]
Imported Upstream version 2.2

10 years agoAdd valgrind.supp to the distribution release/2.2
Russ Allbery [Mon, 16 Dec 2013 21:44:01 +0000 (13:44 -0800)]
Add valgrind.supp to the distribution

10 years agoRelease 2.2
Russ Allbery [Mon, 16 Dec 2013 21:40:06 +0000 (13:40 -0800)]
Release 2.2

10 years agoUpdate to rra-c-util 4.12 and C TAP Harness 2.3
Russ Allbery [Mon, 16 Dec 2013 21:35:00 +0000 (13:35 -0800)]
Update to rra-c-util 4.12 and C TAP Harness 2.3

Update to rra-c-util 4.12:

* Properly check the return status of snprintf and friends.

Update to C TAP Harness 2.3:

* Suppress lazy plans and test summaries if the test failed with bail.
* Add warn_unused_result gcc attributes to relevant functions.

10 years agoAdd some (unnecessary) checks to unconfuse clang
Russ Allbery [Mon, 16 Dec 2013 21:14:58 +0000 (13:14 -0800)]
Add some (unnecessary) checks to unconfuse clang

When parsing character class configuration, check for NULL explicitly
so that clang knows that the NULL case is handled properly.

10 years agoFree the plugin in the Heimdal test as well
Russ Allbery [Fri, 13 Dec 2013 23:31:14 +0000 (15:31 -0800)]
Free the plugin in the Heimdal test as well

10 years agoClose file descriptor and memory leak in CrackLib
Russ Allbery [Fri, 13 Dec 2013 21:53:27 +0000 (13:53 -0800)]
Close file descriptor and memory leak in CrackLib

Close a file descriptor and memory leak in the included version of
CrackLib.  This problem was already fixed in CrackLib 2.9.0.

10 years agoRestructure MIT test code to allow for dlclose
Russ Allbery [Fri, 13 Dec 2013 21:51:25 +0000 (13:51 -0800)]
Restructure MIT test code to allow for dlclose

We weren't closing the handle after completion of testing, which
caused noise in valgrind.

10 years agoFree character class restrictions on shutdown
Russ Allbery [Fri, 13 Dec 2013 21:50:51 +0000 (13:50 -0800)]
Free character class restrictions on shutdown

We weren't freeing the new structures for complex character class
restrictions when shutting the module down.

10 years agoAdd rules for running the test suite under valgrind
Russ Allbery [Fri, 13 Dec 2013 21:50:32 +0000 (13:50 -0800)]
Add rules for running the test suite under valgrind

10 years agoAdd tests for configuration syntax errors
Russ Allbery [Fri, 13 Dec 2013 20:50:41 +0000 (12:50 -0800)]
Add tests for configuration syntax errors

This should really be abstracted out into data, but we'll get to
that at some later date.

10 years agoUse Perl6::Slurp instead of File::Slurp
Russ Allbery [Fri, 13 Dec 2013 01:34:28 +0000 (17:34 -0800)]
Use Perl6::Slurp instead of File::Slurp

One utility was using Perl6::Slurp and another was using
File::Slurp.  Perl6::Slurp is nicer, so just use that, and
update the documentation.  Also document the bootstrap
requirements imposed by make-c-data.

10 years agoUpdate README with more details about new checking rules
Russ Allbery [Fri, 13 Dec 2013 01:28:09 +0000 (17:28 -0800)]
Update README with more details about new checking rules

The description section didn't mention the non-CrackLib capabilities,
and README never spelled out how CDB dictionaries were checked.
Fix both of those oversights.

10 years agoFlesh out heimdal-strength documentation
Russ Allbery [Fri, 13 Dec 2013 01:22:39 +0000 (17:22 -0800)]
Flesh out heimdal-strength documentation

Add full documentation for the supported krb5.conf configuration
options to the heimdal-strength POD documentation.  Also slightly
update the BLURB section of README.

10 years agoAdd class requirement documentation and length ranges
Russ Allbery [Fri, 13 Dec 2013 01:08:46 +0000 (17:08 -0800)]
Add class requirement documentation and length ranges

Add support for qualifying a character class restriction with the
range of lengths of password to which it applies.  Add documentation
and a NEWS entry for the new configuration.

10 years agoFix various character class check mistakes, add test suite
Russ Allbery [Fri, 13 Dec 2013 00:25:03 +0000 (16:25 -0800)]
Fix various character class check mistakes, add test suite

This is the first working version of the character class checking,
which is now plugged into the module initialization.  It also adds
a test suite for the external password check utility, although not
the embedded modules yet.

10 years agoFirst pass at support for character class rules
Russ Allbery [Thu, 12 Dec 2013 06:10:27 +0000 (22:10 -0800)]
First pass at support for character class rules

This compiles, but it's not tested yet.  It supports a list of
required character classes, but not the restriction to particular
password lengths yet.

10 years agoRename the class test set to letter
Russ Allbery [Thu, 12 Dec 2013 06:01:49 +0000 (22:01 -0800)]
Rename the class test set to letter

Next is to add support for full character class rules, which will
reuse a similar name, so move the simplistic character class rules
to the name letter.json.

10 years agoPut F<> around krb5.conf in heimdal-strength docs
Russ Allbery [Thu, 12 Dec 2013 05:53:06 +0000 (21:53 -0800)]
Put F<> around krb5.conf in heimdal-strength docs

Test::Spelling doesn't let me use stopwords to remove it from the
failures, and this is arguably more correct anyway.

10 years agoMinor coding style fix to the heimdal-strength test
Russ Allbery [Sat, 7 Dec 2013 20:01:45 +0000 (12:01 -0800)]
Minor coding style fix to the heimdal-strength test

10 years agoDon't use sysbail to report libdl errors in test suite
Russ Allbery [Thu, 5 Dec 2013 01:50:58 +0000 (17:50 -0800)]
Don't use sysbail to report libdl errors in test suite

10 years agoFix alphabetization in Kerberos function probes
Russ Allbery [Thu, 5 Dec 2013 01:39:33 +0000 (17:39 -0800)]
Fix alphabetization in Kerberos function probes

10 years agoFix leading comment in tests/data/make-krb5-conf
Russ Allbery [Thu, 5 Dec 2013 01:33:01 +0000 (17:33 -0800)]
Fix leading comment in tests/data/make-krb5-conf

It wasn't correctly describing the new capability for adding
arbitrary key/value pairs.

10 years agoSwitch to LT_INIT from AC_PROG_LIBTOOL
Russ Allbery [Sat, 16 Nov 2013 00:20:16 +0000 (16:20 -0800)]
Switch to LT_INIT from AC_PROG_LIBTOOL

The latter is deprecated.

10 years agoRecenter maintainer line in README
Russ Allbery [Mon, 4 Nov 2013 21:19:04 +0000 (13:19 -0800)]
Recenter maintainer line in README

10 years agoAdd NEWS entry for cdbmake-wordlist improvements
Russ Allbery [Mon, 4 Nov 2013 21:18:49 +0000 (13:18 -0800)]
Add NEWS entry for cdbmake-wordlist improvements

10 years agoAdd wordlist filter mode to cdbmake-wordlist
Russ Allbery [Mon, 4 Nov 2013 21:16:54 +0000 (13:16 -0800)]
Add wordlist filter mode to cdbmake-wordlist

Add a new -o (--output) option that applies any configured filtering
and writes out a new wordlist file instead of creating a CDB file.
Refactor the script to avoid adding too much complexity with this
feature.

10 years agoSupport filtering wordlists by regex in cdbmake-wordlist
Russ Allbery [Mon, 4 Nov 2013 19:16:56 +0000 (11:16 -0800)]
Support filtering wordlists by regex in cdbmake-wordlist

Add a new option, -x or --exclude, that excludes words from the
resulting CDB database by regular expression.  This option may
be given repeatedly to filter out multiple regular expressions.

10 years agoSupport a maximum word length in cdbmake-wordlist
Russ Allbery [Mon, 4 Nov 2013 18:59:19 +0000 (10:59 -0800)]
Support a maximum word length in cdbmake-wordlist

Add a new -L (--max-length) option that filters out words longer
than a particular length.

10 years agoChange my email address to eagle@eyrie.org
Russ Allbery [Mon, 4 Nov 2013 18:50:13 +0000 (10:50 -0800)]
Change my email address to eagle@eyrie.org

10 years agoFix typo in some of the copyright notices
Russ Allbery [Tue, 8 Oct 2013 05:32:30 +0000 (22:32 -0700)]
Fix typo in some of the copyright notices

10 years agoAdd changelog for upstream 2.1 release debian/2.1-1
Russ Allbery [Fri, 11 Oct 2013 00:09:40 +0000 (17:09 -0700)]
Add changelog for upstream 2.1 release

10 years agoMerge tag 'upstream/2.1' into debian
Russ Allbery [Fri, 11 Oct 2013 00:09:05 +0000 (17:09 -0700)]
Merge tag 'upstream/2.1' into debian

Upstream version 2.1

10 years agoImported Upstream version 2.1 upstream/2.1
Russ Allbery [Fri, 11 Oct 2013 00:09:00 +0000 (17:09 -0700)]
Imported Upstream version 2.1

10 years agoRelease 2.1 release/2.1
Russ Allbery [Fri, 11 Oct 2013 00:06:30 +0000 (17:06 -0700)]
Release 2.1

10 years agoAdd NEWS entries for TinyCDB build fixes
Russ Allbery [Tue, 8 Oct 2013 19:12:30 +0000 (12:12 -0700)]
Add NEWS entries for TinyCDB build fixes

10 years agoUpdate some of the password rejection error messages
Russ Allbery [Tue, 8 Oct 2013 19:10:55 +0000 (12:10 -0700)]
Update some of the password rejection error messages

Refer to "list of common passwords" when rejecting passwords due
to presence in a CDB dictionary, and say that passwords based on
the principal are based on "username or principal" to be more
technically accurate.

10 years agoSimplify TinyCDB Autoconf probes
Russ Allbery [Tue, 8 Oct 2013 18:33:40 +0000 (11:33 -0700)]
Simplify TinyCDB Autoconf probes

Refactor common code and ensure that rra_use_CDB is always set
properly.

10 years agoFix compilation without TinyCDB
Russ Allbery [Tue, 8 Oct 2013 18:32:52 +0000 (11:32 -0700)]
Fix compilation without TinyCDB

The build without TinyCDB support was apparently not retested
after some refactoring, so some functions had the wrong signatures
or were not properly prototyped.

10 years agoFix handling of --with-tinycdb
Russ Allbery [Tue, 8 Oct 2013 18:19:40 +0000 (11:19 -0700)]
Fix handling of --with-tinycdb

Avoid adding -Lyes/lib and -Iyes/include to flags when given
--with-tinydb.  All this should do is make building with TinyCDB
mandatory.

10 years agoFlesh out test suite requirements in README
Russ Allbery [Tue, 8 Oct 2013 18:04:42 +0000 (11:04 -0700)]
Flesh out test suite requirements in README

10 years agoUpdate BLURB in README based on the new Debian description
Russ Allbery [Tue, 8 Oct 2013 05:23:26 +0000 (22:23 -0700)]
Update BLURB in README based on the new Debian description

The previous version was rather outdated and didn't talk about
all of the plugin's capabilities.

10 years agoFinalize changes for 2.0-1 debian/2.0-1
Russ Allbery [Tue, 8 Oct 2013 01:56:57 +0000 (18:56 -0700)]
Finalize changes for 2.0-1

10 years agoRemove README.Debian
Russ Allbery [Tue, 8 Oct 2013 00:34:46 +0000 (17:34 -0700)]
Remove README.Debian

* Remove README.Debian.  All of that information is now available in the
  installed upstream README file.

Ideally, more specific Debian instructions should be written at some
point to distill the upstream README file into more useful details.

10 years agoReally enable PIE in the hardening flags
Russ Allbery [Tue, 8 Oct 2013 00:32:54 +0000 (17:32 -0700)]
Really enable PIE in the hardening flags

10 years agoStop using dh_install
Russ Allbery [Tue, 8 Oct 2013 00:29:39 +0000 (17:29 -0700)]
Stop using dh_install

Since we only have a single package, there's no point.  Just
explicitly remove the *.la file.

10 years agoSilence the echo commands about disabled test suite
Russ Allbery [Tue, 8 Oct 2013 00:27:53 +0000 (17:27 -0700)]
Silence the echo commands about disabled test suite

10 years agoFix the target of the module chmod command
Russ Allbery [Tue, 8 Oct 2013 00:25:46 +0000 (17:25 -0700)]
Fix the target of the module chmod command

10 years agoAdd more Perl modules to pass Test::Strict
Russ Allbery [Tue, 8 Oct 2013 00:21:08 +0000 (17:21 -0700)]
Add more Perl modules to pass Test::Strict

We need to install all modules required by make-c-data even though
we're currently not running it during the build.

10 years agoIgnore test suite failures due to #724570
Russ Allbery [Tue, 8 Oct 2013 00:16:49 +0000 (17:16 -0700)]
Ignore test suite failures due to #724570

CrackLib is currently broken for the test suite, which causes
some tests to fail.  Run the test suite anyway in the hope of
identifying other issues.

10 years agoFlesh out build dependencies for testing
Russ Allbery [Tue, 8 Oct 2013 00:08:21 +0000 (17:08 -0700)]
Flesh out build dependencies for testing

Add cracklib-runtime and tinycdb to the build dependencies to
support the test suite.  Add a ton of Perl modules to support the
tests written in Perl and the tests of the Perl scripts in the
package.

10 years agoDrop --with-tinycdb to work around a bug in configure
Russ Allbery [Tue, 8 Oct 2013 00:06:06 +0000 (17:06 -0700)]
Drop --with-tinycdb to work around a bug in configure

10 years agoAdd bug closer for the ITP bug
Russ Allbery [Tue, 8 Oct 2013 00:05:51 +0000 (17:05 -0700)]
Add bug closer for the ITP bug

10 years agoInstall man pages and generalize usr/bin install rule
Russ Allbery [Tue, 8 Oct 2013 00:00:35 +0000 (17:00 -0700)]
Install man pages and generalize usr/bin install rule

10 years agoAdd Pre-Depends since debhelper will want it for multiarch
Russ Allbery [Mon, 7 Oct 2013 23:58:40 +0000 (16:58 -0700)]
Add Pre-Depends since debhelper will want it for multiarch

10 years agoVersion the libkrb5-dev dependency
Russ Allbery [Mon, 7 Oct 2013 23:57:57 +0000 (16:57 -0700)]
Version the libkrb5-dev dependency

This won't work with the version in oldstable.  May as well be
explicit about that.

10 years agoFix permissions on the correct plugin file
Russ Allbery [Mon, 7 Oct 2013 23:55:25 +0000 (16:55 -0700)]
Fix permissions on the correct plugin file

10 years agoAdd branch information to the Vcs-Git metadata
Russ Allbery [Mon, 7 Oct 2013 23:54:55 +0000 (16:54 -0700)]
Add branch information to the Vcs-Git metadata

10 years agoUse xz compression for the upstream and Debian tarballs
Russ Allbery [Mon, 7 Oct 2013 23:53:11 +0000 (16:53 -0700)]
Use xz compression for the upstream and Debian tarballs

10 years agoRewrite debian/copyright in copyright-format 1.0
Russ Allbery [Mon, 7 Oct 2013 23:52:34 +0000 (16:52 -0700)]
Rewrite debian/copyright in copyright-format 1.0

10 years agoUpdate standards version to 3.9.4
Russ Allbery [Mon, 7 Oct 2013 23:52:13 +0000 (16:52 -0700)]
Update standards version to 3.9.4

10 years agoUse dh-autoreconf to rebuild the build system during package builds
Russ Allbery [Mon, 7 Oct 2013 23:48:20 +0000 (16:48 -0700)]
Use dh-autoreconf to rebuild the build system during package builds

10 years agoAdd blank line to the end of the local patch header
Russ Allbery [Mon, 7 Oct 2013 23:47:08 +0000 (16:47 -0700)]
Add blank line to the end of the local patch header

10 years agoUpdate debhelper to V9, enable hardening and parallel builds
Russ Allbery [Mon, 7 Oct 2013 23:46:24 +0000 (16:46 -0700)]
Update debhelper to V9, enable hardening and parallel builds

* Update debhelper compatibility level to V9.
  - Enable hardening flags, including bindnow and PIE.
  - Enable parallel builds.

10 years agoRemove Bugs header now that this package is in Debian proper
Russ Allbery [Mon, 7 Oct 2013 23:43:57 +0000 (16:43 -0700)]
Remove Bugs header now that this package is in Debian proper

10 years agoBuild against system CrackLib and the CDB libraries
Russ Allbery [Mon, 7 Oct 2013 23:43:24 +0000 (16:43 -0700)]
Build against system CrackLib and the CDB libraries

10 years agoMerge krb5-strength and heimdal-strength, revise description
Russ Allbery [Mon, 7 Oct 2013 23:41:36 +0000 (16:41 -0700)]
Merge krb5-strength and heimdal-strength, revise description

* Eliminate the heimdal-strength package.  krb5-strength now builds a
  single binary package of the same name including the MIT plugin and
  the Heimdal external password quality program.  The Heimdal plugin is
  not built by the Debian packaging because Heimdal prefers external
  programs.  The plugin can be added later as a separate package if
  there is demand.
* Revise the package long description for the merger of krb5-strength
  and heimdal-strength and the new capabilities in 2.0.
* Recommend cracklib-runtime and tinycdb since they are required to
  build dictionaries.  Downgrade krb5-admin-server to Enhances and add
  heimdal-kdc.

10 years agoAdd changelog for the upstream 2.0 release
Russ Allbery [Mon, 7 Oct 2013 23:30:10 +0000 (16:30 -0700)]
Add changelog for the upstream 2.0 release

10 years agoMerge tag 'upstream/2.0' into debian
Russ Allbery [Mon, 7 Oct 2013 23:21:11 +0000 (16:21 -0700)]
Merge tag 'upstream/2.0' into debian

Upstream version 2.0

10 years agoImported Upstream version 2.0 upstream/2.0
Russ Allbery [Mon, 7 Oct 2013 23:21:06 +0000 (16:21 -0700)]
Imported Upstream version 2.0

10 years agoFix distribution contents for the release release/2.0
Russ Allbery [Mon, 7 Oct 2013 19:40:13 +0000 (12:40 -0700)]
Fix distribution contents for the release

It's been a while and a lot of changes, so there were various
places where the contents of the distribution as defined by
Makefile.am were out of date.

10 years agoRemove now-unneeded strlcat and strlcpy .gitignore entries
Russ Allbery [Mon, 7 Oct 2013 23:15:13 +0000 (16:15 -0700)]
Remove now-unneeded strlcat and strlcpy .gitignore entries

These tests are no longer included.

10 years agoFix logic to find the test CDB database
Russ Allbery [Mon, 7 Oct 2013 23:09:35 +0000 (16:09 -0700)]
Fix logic to find the test CDB database

This is in the source package, not built dynamically as part of
the test suite, so we need to use test_file_path to find it.

10 years agoAdjust the test suite for being run with a weird umask
Russ Allbery [Mon, 7 Oct 2013 19:46:33 +0000 (12:46 -0700)]
Adjust the test suite for being run with a weird umask

If the test suite is run with a read-only source distribution, we
create files that aren't writable and then various things go awry.
Force permissions in a few key places to correct the problem.

10 years agoRelease 2.0
Russ Allbery [Mon, 7 Oct 2013 19:37:24 +0000 (12:37 -0700)]
Release 2.0

10 years agoRewrite LICENSE in Debian copyright-format 1.0
Russ Allbery [Thu, 3 Oct 2013 04:33:10 +0000 (21:33 -0700)]
Rewrite LICENSE in Debian copyright-format 1.0

10 years agoFix copyright dates and cracklib/LICENCE reference in README
Russ Allbery [Thu, 3 Oct 2013 04:32:52 +0000 (21:32 -0700)]
Fix copyright dates and cracklib/LICENCE reference in README

10 years agoRemove a cdbmake-wordlist comment that confused build-license
Russ Allbery [Thu, 3 Oct 2013 04:32:31 +0000 (21:32 -0700)]
Remove a cdbmake-wordlist comment that confused build-license

One copyright statemnet per file works better.

10 years agoAdd a license statement to the heimdal-strength documentation
Russ Allbery [Thu, 3 Oct 2013 04:32:21 +0000 (21:32 -0700)]
Add a license statement to the heimdal-strength documentation

10 years agoAdd more standard sections to README
Russ Allbery [Thu, 3 Oct 2013 04:20:35 +0000 (21:20 -0700)]
Add more standard sections to README

Add SUPPORT, SOURCE REPOSITORY, and LICENSE sections.

10 years agoFix a clang analysis error in the CDB code
Russ Allbery [Thu, 3 Oct 2013 04:09:45 +0000 (21:09 -0700)]
Fix a clang analysis error in the CDB code

The code was actually safe, but it wasn't clear enough for clang.
Add an explicit initialization to make the code clearer.

10 years agoAdd additional checks for passwords based on principals
Russ Allbery [Thu, 3 Oct 2013 04:05:56 +0000 (21:05 -0700)]
Add additional checks for passwords based on principals

The check for passwords based on the principal now check for passwords
formed by reversing or adding numbers before and after each separate
component of the principal.  This will catch passwords based on the
realm or components of the realm, which will often catch passwords
based on the name of the local institution.

10 years agoRename generic tests to principal tests
Russ Allbery [Thu, 3 Oct 2013 03:07:08 +0000 (20:07 -0700)]
Rename generic tests to principal tests

They're actually tests for passwords based on a principal, so name
them accordingly.

10 years agoDocument that checking against the principal is always done
Russ Allbery [Thu, 3 Oct 2013 02:58:17 +0000 (19:58 -0700)]
Document that checking against the principal is always done

Even if there are no dictionaries configured, we still check whether
the password is based on the principal.

10 years agoChange strength_check to take a saner argument order
Russ Allbery [Thu, 3 Oct 2013 02:56:58 +0000 (19:56 -0700)]
Change strength_check to take a saner argument order

It makes more sense to pass in the principal before the password.
Change all the internal APIs to use that order.

10 years agoRefactor checking for passwords based on principals
Russ Allbery [Thu, 3 Oct 2013 02:53:29 +0000 (19:53 -0700)]
Refactor checking for passwords based on principals

Move this code into a separate file in preparation for expanding
the nature of the checks, and following the general principal of
putting each type of check in a separate file.

10 years agoClean up and refactor configuration handling
Russ Allbery [Thu, 3 Oct 2013 02:40:58 +0000 (19:40 -0700)]
Clean up and refactor configuration handling

Each "module" (CDB and CrackLib) now handles its own configuration
and setup, and the internal APIs are more straightforward and
simpler.

The plugin can now be configured without a dictionary, in which case
only the simpler checks available through the new configuration
variables are done.  This mode is mostly useful for testing, since
such simple checking can more easily be done via less complex password
strength configurations.

10 years agoUse krb5_xfree for krb5_free_default_realm on Heimdal
Russ Allbery [Thu, 3 Oct 2013 02:00:34 +0000 (19:00 -0700)]
Use krb5_xfree for krb5_free_default_realm on Heimdal

The documentation says to use free, but this doesn't make sense
since the memory is allocated inside the Kerberos library.

10 years agoSeparate Kerberos configuration handling into a separate file
Russ Allbery [Thu, 3 Oct 2013 01:55:51 +0000 (18:55 -0700)]
Separate Kerberos configuration handling into a separate file

Provide a cleaner interface and hard-code the section values to
reduce the number of required arguments.  Factor out the realm
handling and properly free the default realms, avoiding memory
leaks.

10 years agoRemove unnecessary includes in plugin/cracklib.c
Russ Allbery [Thu, 3 Oct 2013 01:55:41 +0000 (18:55 -0700)]
Remove unnecessary includes in plugin/cracklib.c