]> eyrie.org Git - kerberos/krb5-strength.git/blobdiff - plugin/general.c
Finalize changes for 3.3-1
[kerberos/krb5-strength.git] / plugin / general.c
index c491ea01b9522742e2fd2afc0ff4f5cb587a4ccd..325f785b7b2813b3949c494639c7a26f89dc2545 100644 (file)
@@ -6,13 +6,12 @@
  * are called by the implementation-specific code, and all other checks are
  * wrapped up in those interfaces.
  *
- * Developed by Derrick Brashear and Ken Hornstein of Sine Nomine Associates,
- *     on behalf of Stanford University
- * Extensive modifications by Russ Allbery <eagle@eyrie.org>
- * Copyright 2006, 2007, 2009, 2012, 2013, 2014
- *     The Board of Trustees of the Leland Stanford Junior University
+ * Developed by Daria Phoebe Brashear and Ken Hornstein of Sine Nomine
+ * Associates, on behalf of Stanford University Extensive modifications by Russ
+ * Allbery <eagle@eyrie.org> Copyright 2006-2007, 2009, 2012-2014 The Board of
+ * Trustees of the Leland Stanford Junior University
  *
- * See LICENSE for licensing terms.
+ * SPDX-License-Identifier: MIT
  */
 
 #include <config.h>
@@ -60,6 +59,9 @@ strength_init(krb5_context ctx, const char *dictionary,
     if (code != 0)
         goto fail;
 
+    /* Get CrackLib maximum length from krb5.conf. */
+    strength_config_number(ctx, "cracklib_maxlen", &data->cracklib_maxlen);
+
     /*
      * Try to initialize CDB, CrackLib, and SQLite dictionaries.  These
      * functions handle their own configuration parsing and will do nothing if