Commit Graph

2845 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
4b69fa3283 plug memory leak on file matching
make it not fall over when no non matching acl
make fnmatch matching useful by switching arguments


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13549 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-20 07:05:46 +00:00
Johan Danielsson
4385cd757d add a bunch of Li and document [kadmin] password_lifetime; from Henry B. Hotz
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13535 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-18 07:22:44 +00:00
Love Hörnquist Åstrand
b521a2fb43 (krb5_mk_rep): if KRB5_AUTH_CONTEXT_USE_SUBKEY is set send subkey
(generate if needed)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13518 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-14 16:16:58 +00:00
Love Hörnquist Åstrand
e3042fc389 add KRB5_AUTH_CONTEXT_USE_SUBKEY
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13517 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-14 16:14:16 +00:00
Love Hörnquist Åstrand
1e0d125761 understand [password_quality]
spelling


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13507 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-12 09:00:12 +00:00
Love Hörnquist Åstrand
39dc6f4fa5 (fcc_store_cred): NULL terminate krb5_config_get_bool_default' arglist
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13502 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-10 13:28:15 +00:00
Love Hörnquist Åstrand
9197bbb0c8 rename ca_dir to pkinit/x509_anchors since its more like that language
in RFC3280


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13494 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-09 21:06:10 +00:00
Love Hörnquist Åstrand
ed64621d8e document [libdefaults]fcc-mit-ticketflags=boolean
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13491 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-09 19:48:53 +00:00
Love Hörnquist Åstrand
cd4be77fc7 (fcc_store_cred): use [libdefaults]fcc-mit-ticketflags=boolean to
decide what format to write the fcc in. Default to mit version (aka
heimdal 0.7)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13486 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-09 17:40:05 +00:00
Love Hörnquist Åstrand
a73db09513 add _krb5_store_creds_heimdal_0_7 and
_krb5_store_creds_heimdal_pre_0_7 that store the creds in just that format
make krb5_store_creds default to mit format


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13485 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-09 17:34:59 +00:00
Love Hörnquist Åstrand
9107f84073 (krb5_ret_creds): Runtime detect the what is the higher bits of the
bitfield


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13483 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-09 17:13:23 +00:00
Love Hörnquist Åstrand
4ccc9ed53b (krb5_store_creds): add disabled code that store the ticket flags in
reverse order
(bitswap32): new function


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13481 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-08 19:27:42 +00:00
Love Hörnquist Åstrand
ac134c6bf0 (krb5_ret_creds): if the higher ticket flags are set, its a mit cache,
reverse the bits, bug pointed out by Sergio Gelato <Sergio.Gelato@astro.su.se>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13480 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-08 18:49:12 +00:00
Love Hörnquist Åstrand
12289e8b96 (default_etypes): avoid using disabled enctypes
(set_etypes): avoid using disabled enctypes


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13463 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 20:59:39 +00:00
Love Hörnquist Åstrand
49d345d693 add support for disabling checksum/encryption types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13452 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 17:04:59 +00:00
Love Hörnquist Åstrand
5065dd4bc7 (decrypt_internal_special): do not not modify the original data
test case from Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13421 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-06 16:36:46 +00:00
Love Hörnquist Åstrand
601b8fcfa3 (process_reply): log into result_string if something goes bad, return
0 (even on failure), not the KPASSWD protocol error code


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13420 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-03 22:14:47 +00:00
Love Hörnquist Åstrand
fb3cfcca9f more cc tests, mostly related to mcc behavior
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13419 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-03 21:09:28 +00:00
Love Hörnquist Åstrand
188cabf477 (mcc_get_principal): also check for primary_principal == NULL now that
that isn't used as dead flag


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13418 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-03 21:06:36 +00:00
Love Hörnquist Åstrand
bd852f759c don't overload the primary_principal == NULL as dead since that
doesn't always work
Based on patch from Jeffrey Hutzelman <jhutz@cmu.edu>, but tweek by me


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13417 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-03 20:49:34 +00:00
Johan Danielsson
37be50b9f6 (krb5_get_default_realm): let krb5_set_default_realm set an error
string for us


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13404 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-23 13:49:28 +00:00
Love Hörnquist Åstrand
6da4e2989e adapt to rename of oid_cmp to heim_oid_cmp
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13399 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-22 17:31:53 +00:00
Love Hörnquist Åstrand
9dac88f093 update error codes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13396 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-20 21:42:34 +00:00
Love Hörnquist Åstrand
ba2fb75678 prefix pkinit error codes with KRB5_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13395 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-20 21:40:42 +00:00
Love Hörnquist Åstrand
e7eaae52ff handle memory allocate errors
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13391 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-19 21:24:14 +00:00
Love Hörnquist Åstrand
73447cd88f (_krb5_xlock): handle that everything was ok, and don't put an error
in the error strings then


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13390 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-19 21:22:52 +00:00
Love Hörnquist Åstrand
9503937a3d indent, use krb5_abortx() instead of abort()
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13389 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-19 12:44:33 +00:00
Love Hörnquist Åstrand
8696c13a7f (process_pa_data_to_key): spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13388 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-19 12:41:19 +00:00
Love Hörnquist Åstrand
82bc224368 adapt to the new format of heim_integer, start working on w2k compat
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13379 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-17 08:46:59 +00:00
Love Hörnquist Åstrand
d85519e16d s/heim_big_integer/heim_integer/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13355 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-13 17:08:29 +00:00
Love Hörnquist Åstrand
ad01ed478a adapt to asn1 bignum code, use HEIM_PKINIT errors
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13353 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-13 16:24:27 +00:00
Love Hörnquist Åstrand
2e261f0a4b add HEIM_PKINIT specific errors
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13352 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-13 16:23:40 +00:00
Love Hörnquist Åstrand
0d4320db0b (change_password): handle that printf("%.*s", 0, (void*)NULL); doesn't
work on solaris


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13326 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-11 12:30:35 +00:00
Love Hörnquist Åstrand
310701f968 don't use path's in first .Nm, it confuses some locate.updatedb, use
FILES section to describe where the file is instead.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13321 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-10 13:28:45 +00:00
Love Hörnquist Åstrand
1987668bf1 add "next iv" test for aes128, check decryption case too
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13312 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 21:05:57 +00:00
Love Hörnquist Åstrand
38222b38b2 (_krb5_aes_cts_encrypt): out iv is the iv of the next to last block,
fix decryption case too


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13311 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 21:04:41 +00:00
Love Hörnquist Åstrand
b1c7bcffd1 add "next iv" test for aes128
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13310 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 20:48:25 +00:00
Love Hörnquist Åstrand
290b1c07d8 (_krb5_aes_cts_encrypt): out iv is the iv of the next to last block
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13309 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 20:47:21 +00:00
Love Hörnquist Åstrand
051ed5b5a1 (krb5_mk_rep): abort on internal asn1 encode error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13306 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 17:06:10 +00:00
Love Hörnquist Åstrand
b556de6237 (krb5_mk_rep): abort on internal asn1 encode error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13305 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 17:05:02 +00:00
Love Hörnquist Åstrand
a74d87717c (krb5_get_in_cred): abort on internal asn1 encode error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13304 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 17:03:42 +00:00
Love Hörnquist Åstrand
5e5a56079a (krb5_mk_priv): abort on internal asn1 encode error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13303 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 17:03:00 +00:00
Love Hörnquist Åstrand
74ee19a354 (make_pa_tgs_req): abort on internal asn1 encode error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13302 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 16:59:37 +00:00
Love Hörnquist Åstrand
79ec557a94 (krb5_build_authenticator): abort on internal asn1 encode error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13301 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 16:58:24 +00:00
Love Hörnquist Åstrand
da1b9cbc7f (krb5_build_ap_req): abort on internal asn1 encode error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13300 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 16:56:19 +00:00
Love Hörnquist Åstrand
653db66d34 register WRFILE ops
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13294 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-25 21:05:42 +00:00
Love Hörnquist Åstrand
b5f0883c6a add krb5_wrfkt_ops/WRFILE (same as FILE)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13293 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-25 21:03:22 +00:00
Love Hörnquist Åstrand
df1bac1a97 add krb5_wrfkt_ops
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13292 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-25 21:00:29 +00:00
Love Hörnquist Åstrand
9c3fc6f67f (_krb5_xlock): catch EINVAL and assume that it means that the
filesystem doesn't support locking


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13279 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-21 13:20:06 +00:00
Love Hörnquist Åstrand
b18ecb3e09 remove #if 0 out file locking code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13278 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-21 10:55:54 +00:00