Commit Graph

6507 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
ea42ef5261 clean up error handling, plug memory leaks, and free memory in error path,
assume realloc(NULL, ...) works, factor out common code, indent


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13509 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-14 12:38:48 +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
1ac5cd4aa5 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13473 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 22:44:49 +00:00
Love Hörnquist Åstrand
dd88e2f3fb (kadm5_s_create_principal): remove old XXX command and related code,
_kadm5_set_keys will do all this now


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13472 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 22:43:46 +00:00
Love Hörnquist Åstrand
a0390fc0ee drop structures for message formats, no longer used
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13471 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 22:30:57 +00:00
Love Hörnquist Åstrand
7b94ee3d0e comment describing message formats
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13470 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 22:29:54 +00:00
Love Hörnquist Åstrand
44428fe1de x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13469 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 22:27:31 +00:00
Love Hörnquist Åstrand
2220d2a312 use macro for HDB * -> LDAP *
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13467 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 22:04:39 +00:00
Love Hörnquist Åstrand
103cb19803 spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13464 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 21:03:00 +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
c5fd7d3102 Intergrate Heimdal's hdb-ldap and the Samba password database.
From: Andrew Bartlett <abartlet@samba.org>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13460 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 17:38:48 +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
ae01d1df5e x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13446 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 14:26:41 +00:00
Love Hörnquist Åstrand
912dfa6eee (spnego_accept_sec_context): make sure the length of the choice
element doesn't overrun us


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 14:26:20 +00:00
Love Hörnquist Åstrand
f96b2ccb60 (spnego_reply): make sure the length of the choice element doesn't
overrun us


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13444 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 14:25:33 +00:00
Love Hörnquist Åstrand
1b7fe5bcc4 fix prototype of encode_utf8string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13443 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 14:03:49 +00:00
Love Hörnquist Åstrand
15ba74a10d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13442 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 13:38:23 +00:00
Love Hörnquist Åstrand
8dd36b4b32 move NegotiationToken to avoid warning
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13440 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 13:38:08 +00:00
Love Hörnquist Åstrand
46418aa4c8 uncomment NegotiationToken
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13439 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 12:57:02 +00:00
Love Hörnquist Åstrand
5c87eb99f3 spnego_files += asn1_NegotiationToken.x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13438 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 12:56:39 +00:00
Love Hörnquist Åstrand
f2bdee2b8d catch CHOICE and generate dummy placeholder
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13435 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 12:44:00 +00:00
Love Hörnquist Åstrand
322b4a8a3e added dummy parsing of CHOICE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13434 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 12:42:55 +00:00
Love Hörnquist Åstrand
2e03946bac revert the part of the file I didn't mean to commit yet (samba support)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13433 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-06 23:13:16 +00:00
Love Hörnquist Åstrand
6a63f6b416 drop SMTP_NAME
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13432 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-06 23:09:24 +00:00
Love Hörnquist Åstrand
34659fc782 support building ldap backend as module
sort asn1 hdb files


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13431 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-06 22:30:21 +00:00
Love Hörnquist Åstrand
e4b3116bfe when building ldap as a shared module, don't include it in the list
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13430 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-06 22:26:46 +00:00
Love Hörnquist Åstrand
f46a1ac367 make ldap possible to build as a shared module
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13428 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-06 21:51:24 +00:00
Love Hörnquist Åstrand
44cb7e1d74 add hdb_{,un}seal_key{,_mkey} from Andrew Bartlett <abartlet@samba.org>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13427 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-06 18:58:22 +00:00
Love Hörnquist Åstrand
02bf38f7a1 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13426 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-06 17:27:04 +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
Love Hörnquist Åstrand
dff9e56989 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13416 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-02 22:19:17 +00:00
Love Hörnquist Åstrand
3224391860 make it possible to use libsl from c++
From: Mattias Amnefelt <mattiasa@kth.se>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13415 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-02 22:04:57 +00:00
Love Hörnquist Åstrand
6b07954615 (_kadm5_set_keys_randomly): make sure enctype to copy enctype for des keys
From: Andrew Bartlett <abartlet@samba.org>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13409 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-29 06:12:50 +00:00
Love Hörnquist Åstrand
40ac026c53 (kadm5_s_create_principal_with_key): don't call _kadm5_set_keys2,
create_principal will do that for us. But set kvno to 1.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13408 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-29 06:07:32 +00:00
Love Hörnquist Åstrand
a3beff27cb (change): bump kvno
(kadm5_s_chpass_principal_with_key): bump kvno


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13407 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-29 06:00:56 +00:00
Love Hörnquist Åstrand
4f7deb0238 (kadm5_s_randkey_principal): bump kvno
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13406 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-29 05:59:22 +00:00
Love Hörnquist Åstrand
d420dc5958 (_kadm5_set_*): don't change the kvno, let the callee to that
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13405 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-29 05:49:29 +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