Commit Graph

909 Commits

Author SHA1 Message Date
Russ Allbery bc3d8992cd Don't attempt to load a password quality verifier from NULL
When kadm5_add_passwd_quality_verifier is called with a NULL
check_library parameter and [password_quality].policy_libraries
is set, the function calls add_verifier() for each string in the
policy_libraries section and then falls through to the non-NULL
case and calls add_verifier() a final time with a NULL argument.
This leads to dlopening the running executable and then failing
since it contains no password quality verifier.

If the check_library argument is NULL, only call add_verifier()
for the configured policy_libraries and do not fall through to
the non-NULL case.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-02 20:46:23 -08:00
Russ Allbery 3441bbb98e Clarify documentation of password quality check modules
Be clearer in the info documentation that the part of the policy
name before the colon is the name of the module, not the static
string "module".  State explicitly that "builtin" can be used as the
module name to identify built-in policies.

Use the same terminology in kadm5_pwcheck(3) as the info documentation,
changing test-name to policy-name and vendor to module-name.  State
explicitly how the module name and policy name are used to select which
policies to run.

Rephrase a few sentences, add a paragraph break, and fix a few typos
for clarity.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-01-15 23:33:25 +00:00
Russ Allbery 80317bbd20 Pass external password quality program name as first argument
Pass the path to the external password quality program as the first
argument to the program and the principal as the second argument, as is
conventional, rather than passing only the principal.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-01-14 23:38:17 +00:00
Love Hornquist Astrand dd9e076e47 reorder to remove if (0); 2009-12-25 10:45:26 +01:00
Love Hornquist Astrand 15cff173a2 Use #ifdef SIGXCPU instead of #ifndef NO_SIGXCPU 2009-12-25 10:44:40 +01:00
Love Hornquist Astrand f798af41a0 change #ifdef to make this compile 2009-12-23 14:31:28 +01:00
Love Hornquist Astrand 160ddd0e43 use rk_closesocket 2009-12-23 14:06:37 +01:00
Asanka Herath a0ae9f5a0e Merge remote branch 'h-github/master' into win32-port2
* h-github/master: (64 commits)
  refix socket wrappers with rk_
  Patch from Secure Endpoints/Asanka Herath for windows support
  unset KRB5CCNAME
  its really just LIBADD more most of them
  correct quoting
  Use -lpthread for modern freebsd instead
  clean KRB5CCNAME and KRB5_CONFIG, require test to reset them
  more up ${env_setup}
  use PTHREADS_LIBADD for freebsd6 and newer
  add PTHREAD_LIBADD
  add PTHREAD_LIBADD
  add PTHREAD_LIBADD
  switch to PTHREADS_LIBADD
  log what the error string say too
  More debug logging
  sprinkle more 'echo "test failed"'
  sprinkle 'echo "test failed"'
  use calloc(), indent more prettier
  in sh, equal compare is really = for strings, not ==
  Check for duplicates, already loaded mechs
  ...

Conflicts (resolved):
	lib/krb5/auth_context.c
	lib/krb5/changepw.c
	lib/krb5/context.c
	lib/krb5/error_string.c
	lib/krb5/kuserok.c
	lib/krb5/libkrb5-exports.def.in
	lib/krb5/net_write.c
	lib/krb5/store_fd.c
	lib/krb5/test_cc.c
	lib/roken/strerror_r.c
2009-12-21 13:44:00 -05:00
Love Hornquist Astrand 4835144bb2 Install kadm5-pwcheck.h header
Prompted by bug from Russ Allbery
2009-12-09 22:40:10 +01:00
Love Hornquist Astrand c867fd3e2e Make libtool pull in the depenency on libldap
Put in explicy depenency on libdap so that libtool
might to the right thing for us.

Patch from Jan Rekorajski
2009-12-08 00:15:10 -08:00
Love Hornquist Astrand f1c0c1bba3 prefix SOCKET symbols with rk_ 2009-11-25 05:29:18 +01:00
Love Hornquist Astrand c6bbdb545b First drop of Windows build infrastructure from Secure Endpoints 2009-11-24 12:12:53 -08:00
Asanka Herath c6b8fad5dc Consistency updates for lib/kadm5 and don't check fd_set size if it's not necessary 2009-11-24 10:18:20 -08:00
Asanka Herath aa058a6a63 Typos and fixes for init_c.c to not include stuff we don't have 2009-11-24 10:17:50 -08:00
Asanka Herath 39d89e9fca Export .def for libkadm5srv 2009-11-24 10:15:14 -08:00
Asanka Herath 6a88c16dea Use wait_for_process() to wait for processes created with simple_exec* 2009-11-24 10:12:45 -08:00
Asanka Herath bf5b934b06 Include roken.h before including other Heimdal headers 2009-11-24 10:12:45 -08:00
Asanka Herath d84119813e No AF_UNIX on Windows and no SIGPIPE and SIGXCPU 2009-11-24 10:12:44 -08:00
Asanka Herath 246e60891c NTMakefile for kadm5 port 2009-11-24 10:12:44 -08:00
Asanka Herath b1063ea8fc Initial Windows port 2009-11-24 10:11:14 -08:00
Love Hornquist Astrand a9e58b7e77 don't set flags when we are not asked to 2009-11-22 17:14:47 -08:00
Love Hornquist Astrand 5e13cd2e0d provide default when there is no default 2009-11-22 14:11:24 -08:00
Love Hornquist Astrand 6f4b693fe5 krb5.conf is in 5, sort
From Jeremy C. Reed
2009-10-24 14:15:48 -07:00
Love Hornquist Astrand 6f6a384257 [HEIMDAL-646] malloc(0) checks for AIX 2009-10-11 18:02:56 -07:00
Love Hornquist Astrand b4013ca830 [HEIMDAL-646] malloc(0) checks for AIX 2009-10-11 17:33:02 -07:00
Love Hornquist Astrand 75aebbf616 [HEIMDAL-646] malloc(0) checks for AIX 2009-10-11 17:32:38 -07:00
Love Hornquist Astrand d3d9e5ecb5 free sp on error/full send 2009-10-06 11:19:27 -07:00
Love Hornquist Astrand ff87429593 Make LDAP code fetch less attributes from LDAP server when KDC is asking
Johan Gadsjö did a awesome analysis of the LDAP access pattens
and sent us a patch that reduced the calls the ldap server by 4
times as many. The patch was adopted and change to avoid compile
time depencies and make the determination runtime instead. Thanks!
2009-10-03 13:20:41 -07:00
Love Hornquist Astrand dc4e8669ea Abstract out asn1_compile and slc 2009-09-16 00:12:13 -07:00
Love Hornquist Astrand 3b761fddc0 check the clients with current_version, and if client have newer, whine 2009-09-05 14:41:03 -07:00
Love Hornquist Astrand 03b6f9a09b Don't send diffs to dead slaves 2009-09-05 14:31:49 -07:00
Love Hornquist Astrand 0f5f5947aa make sure client is set before trying to use it [CID-50] 2009-07-30 13:20:00 +02:00
Love Hornquist Astrand e184e053dd Catch memory allocation failures [CID-61] 2009-07-30 12:56:21 +02:00
Love Hornquist Astrand 0d49d0f1c4 Free ticket earlier [CID-108] 2009-07-30 10:39:52 +02:00
Love Hörnquist Åstrand e28e7b2c45 check for hdb->hdb_password
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25301 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-07-03 04:26:12 +00:00
Love Hörnquist Åstrand 63a9b03afb its ok to not have a password
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25216 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-21 21:37:31 +00:00
Love Hörnquist Åstrand be0941cb08 catch failure
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25204 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-09 14:21:40 +00:00
Love Hörnquist Åstrand a8a2e8140b catch failure
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25203 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-09 14:21:29 +00:00
Love Hörnquist Åstrand 7afb1de424 catch failure
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25202 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-09 14:21:19 +00:00
Love Hörnquist Åstrand 2da3d041ad catch write to socket error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25187 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-06 19:02:49 +00:00
Love Hörnquist Åstrand 4b2db56d70 catch write to socket error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25186 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-06 19:02:38 +00:00
Love Hörnquist Åstrand 33b06fbcb9 catch write to socket error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25185 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-06 19:02:26 +00:00
Love Hörnquist Åstrand 5d65692492 comment out unsupported options
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25182 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-06 19:01:51 +00:00
Love Hörnquist Åstrand 1e42fab0f0 use krb5_principal_get_realm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25116 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-16 08:10:12 +00:00
Love Hörnquist Åstrand 11b955ea01 plug memory leak
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25093 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-04 17:10:52 +00:00
Love Hörnquist Åstrand a96fa6cacd plug memory leak
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25092 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-04 17:10:41 +00:00
Love Hörnquist Åstrand 62ae550ab2 don't leak memory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25087 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-04 17:09:39 +00:00
Love Hörnquist Åstrand 32218cc132 use krb5_cc_new_unique, use constants for cache types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25057 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:07:07 +00:00
Love Hörnquist Åstrand 5b24268581 use krb5_cc_new_unique, use constants for cache types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25056 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:06:57 +00:00
Love Hörnquist Åstrand 9ecc9345f6 use calloc to allocate salt
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24990 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 09:03:15 +00:00