Commit Graph

25586 Commits

Author SHA1 Message Date
Love Hornquist Astrand
b7581f5dcb document more about mechs 2010-02-13 17:27:14 -08:00
Love Hornquist Astrand
96852bdc79 list contants for mechs 2010-02-13 17:23:09 -08:00
Love Hornquist Astrand
84b58b78b6 start of documention of gss_init_sec_context 2010-02-13 17:14:46 -08:00
Love Hornquist Astrand
711ef346a0 move krb5_set_home_dir_access() group krb5 2010-02-10 18:26:46 -08:00
Love Hornquist Astrand
c9a0c39786 add check for [libdefaults_entries]allow_weak_crypto 2010-02-04 16:13:06 -08:00
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
f3a559b3c2 Ensure data structures allocated by hprop are initialized
Use calloc instead of malloc when allocating data structures while
importing a dump in hprop.  Fixes a crash in hprop when reading MIT
dump files due unintialized memory in the Salt data structure, plus
will be more robust against any future changes to the data model.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-02 20:43:48 -08:00
Love Hornquist Astrand
04d3215d39 _wind_ucs2read is not a private symbol 2010-02-02 20:16:47 -08:00
Russ Allbery
e7d997e8ee Comment .gitignore
Add some header comments and an introductory comment explaining how to
check that no rule ignores files present in the repository.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-02 19:37:44 -08:00
Russ Allbery
dc2b09f167 Remove lib/hx509/*.pem files from .gitignore
These files are included in the repository and don't have makefile
rules to generate them, so don't ignore them.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-02 19:37:28 -08:00
Russ Allbery
92a17668e5 Flesh out .gitignore
Update .gitignore to include all the files generated during a normal
build on Debian squeeze.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-02 19:36:46 -08:00
Russ Allbery
d5970c0851 Report mkvno as unknown
When the principal is retrieved from the database via libkadm5srv, the
keys are always decrypted, so the reported mkvno is always 0.  Rather
than returning 0 and implying that the key in the database is not
encrypted, report the mkvno as unknown for right now.

A better fix is required to either not decrypt the keys when retrieving
get information or to get the mkvno before keys are decrypted.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-02 19:36:20 -08:00
Love Hornquist Astrand
117652f353 Disable kadmind.exe since currently it doesn't build 2010-02-02 19:29:55 -08:00
Russ Allbery
3d715adc21 Rename the database after closing it in hpropd
If a Berkeley DB database is used as the underlying database, renaming
the database before closing it can produce error messages like the
following on close:

/var/lib/heimdal-kdc/heimdal~.db: unable to flush: No such file or directory

since the underlying database library caches the old file name.  There
is a rename() method in the Berkeley DB API, but it also invalidates
the database handle and requires that it be reopened.  Since the
hdb_rename implementation does not require that the database be open,
close the database before renaming it to avoid this problem.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-02 13:27:48 -08:00
Russ Allbery
20c65310ea Support MIT dump formats 5 and 6 in hprop
Dump formats 5 and 6 differ from the supported version 4 dump format
only in that they include policy information for each principal in an
extension that the dump parsing code already knows how to ignore and
that they include policy lines.  Ignore the policy information, since
there isn't a corresponding concept in Heimdal, and accept the new
dump format versions.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-02 13:27:36 -08:00
Russ Allbery
73d0fc23a4 Store last password change date when parsing MIT dumps in hprop
If the MIT dump file includes a last password change date, allocate
a database extension structure to hold that information and include
it in the corresponding Heimdal database entry.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-02 13:27:10 -08:00
Russ Allbery
01d54cacc9 Allow weak crypto in hprop
hprop may be decrypting an old database encrypted with a DES master
key, in which case it shouldn't fail because DES is disabled by default.

This could permit weak enctypes to be used when authenticating to a
remote hpropd, although stronger enctypes are still preferred.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-01-27 21:57:32 -08:00
Russ Allbery
8a57d5cb08 Add krb5_allow_weak_crypto API to enable weak enctypes
Add krb5_allow_weak_crypto parallel to the API introduced in MIT
Kerberos 1.8.  Enables or disables all enctypes marked as weak.
Add a new enctype flag marking weak enctypes (all of the ones that
are disabled by default).

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-01-27 21:50:58 -08:00
Love Hornquist Astrand
560fc640bb Lowercase linux, from Harald Barth 2010-01-26 22:14:59 -08:00
Love Hornquist Astrand
908ece3604 Adapt for Linux with SOCK_CLOEXEC, patch from Harald Barth 2010-01-26 10:46:51 -08:00
Love Hornquist Astrand
4376b6c8b1 spelling 2010-01-25 23:50:37 -08:00
Love Hornquist Astrand
2fbdb6a514 rewrite socket to rk_socket of there is SOCK_CLOEXEC and there is linux, prompted by Harald Barth 2010-01-25 23:01:18 -08:00
Love Hornquist Astrand
deee0bbad9 put SOCK_CLOEXEC in the right argument, from Harald Barth 2010-01-25 23:01:09 -08:00
Russ Allbery
4038832098 Export krb5_principal_get_num_comp
krb5_principal_get_num_comp was prototyped as a public function but
not exported from libkrb5.  Add it to the export version map.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-01-25 22:39:14 -08:00
Love Hornquist Astrand
609e8dd156 reset GSS_C_DELEG_FLAG when there is no consumer 2010-01-19 21:22:53 +00: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
1f4bb75eef Only free hx509ctx if its actually allocated 2010-01-12 17:47:54 -08:00
Love Hornquist Astrand
1b3a8d3032 just close socket 2010-01-08 14:19:21 +01:00
Love Hornquist Astrand
3b51f94c2b Make compile on pre-leopard (Tiger needs CSSM_SIZE), From Quanah Gibson-Mount 2010-01-08 13:17:47 +01:00
Love Hornquist Astrand
461c1b1535 check for CommonCrypto/CommonDigest.h since it doesn't exists on Tiger 2010-01-08 13:13:10 +01:00
Love Hornquist Astrand
9200bb1738 Wrap <CommonCrypto/CommonDigest.h> with ifdef since it doesn't exists on Tiger 2010-01-08 13:12:44 +01:00
Love Hornquist Astrand
f6e0d19cc0 make rk_SOCK_EXIT a statment to avoid warnings 2010-01-08 13:08:24 +01:00
Love Hornquist Astrand
c24a7d2d80 fix const-ifyier on cc-ops 2010-01-08 13:07:27 +01:00
Love Hornquist Astrand
26770c90f3 move unused variable to inside #ifdef 2010-01-08 12:59:35 +01:00
Love Hornquist Astrand
f3ea26c759 remove unused variable 2010-01-08 12:58:20 +01:00
Love Hornquist Astrand
3cc8e8bfc7 listen for http requests 2010-01-06 12:54:54 +01:00
Love Hornquist Astrand
8857c285e8 build ts-http 2010-01-06 12:54:27 +01:00
Love Hornquist Astrand
dad3296f64 expose SIPC_TYPE flags 2010-01-06 12:54:09 +01:00
Love Hornquist Astrand
0f5267b97f Make http connections work 2010-01-06 12:53:52 +01:00
Love Hornquist Astrand
1354b6650b clean up http support 2010-01-06 10:42:28 +01:00
Love Hornquist Astrand
68d2f52ad4 fixup prototype 2010-01-06 10:42:16 +01:00
Love Hornquist Astrand
6847593406 Include <base64.h>. 2010-01-06 10:40:53 +01:00
Love Hornquist Astrand
eab88ad791 Include <ctype.h>. 2010-01-06 10:36:12 +01:00
Love Hornquist Astrand
ef30147831 Add Secure Endpoints, Inc 2010-01-05 19:23:38 +01:00
Love Hornquist Astrand
8aed9dceeb need to fix lib/krb5/expand_path_w32.c 2010-01-05 19:21:45 +01:00
Love Hornquist Astrand
2711882f3f Add bits to support HTTP in server 2010-01-04 16:11:18 +01:00
Love Hornquist Astrand
48504c5771 [Heimdal-704] export encode_Key/length_Key, from Jan Rekorajski 2010-01-04 13:14:11 +01:00
Love Hornquist Astrand
e5bc5d6a32 happy new year 2010-01-02 17:57:12 +01:00
Love Hornquist Astrand
6a7810d12f Export initialize_hdb_error_table_r and free_Salt, requested by Jelmer Vernooij in Debian bug #56275 2010-01-02 17:53:57 +01:00