Commit Graph

12226 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
e0d4ec6201 build_HEADERZ += heim_threads.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22210 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-07 19:17:47 +00:00
Love Hörnquist Åstrand
8e5b5c9e61 handle removal of HDB_DB_DIR
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22209 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-07 19:03:41 +00:00
Love Hörnquist Åstrand
25d04f4314 (hdb_db_dir): Return the directory where the hdb database resides.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22208 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-07 18:21:47 +00:00
Love Hörnquist Åstrand
9252d2927e x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22203 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-07 14:02:34 +00:00
Love Hörnquist Åstrand
affe01bf0c revert previous patch, the problem is located in the RAND_file_name()
function that will cause recursive nss lookups, can't fix that here.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22200 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-07 13:48:01 +00:00
Love Hörnquist Åstrand
dcadcad1c3 Can't call getpwuid(getuid()) at all since that causes recursive
lookups. Pointed out by Hai Zaar.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22199 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-07 13:43:25 +00:00
Love Hörnquist Åstrand
8d8507fbf8 move static path into local headers that are not installed to prepare for configure-time relocations. Prompted by Hai Zaars FHS thread on heimdal-discuss
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22198 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-07 13:09:25 +00:00
Love Hörnquist Åstrand
473b2e044b Use HAVE_FCNTL for both lock and unlock, from Hai Zaar.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22194 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-07 02:23:00 +00:00
Love Hörnquist Åstrand
08e19e862a (krb5_generate_random_block): try to avoid the dead-lock in by not
holding the lock while running RAND_file_name. From Hai Zaar.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22193 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-07 02:16:01 +00:00
Love Hörnquist Åstrand
8dc3e8a874 spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22190 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-06 16:24:22 +00:00
Love Hörnquist Åstrand
a33bc65fe1 spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22189 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-06 16:23:59 +00:00
Love Hörnquist Åstrand
3f24633cdb Less warnings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22170 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 22:19:31 +00:00
Love Hörnquist Åstrand
7393bb9715 Less warnings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22169 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 22:19:16 +00:00
Love Hörnquist Åstrand
ed1079182d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22168 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 22:06:49 +00:00
Love Hörnquist Åstrand
fa5d1267bc Use credential if it was passed in.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22167 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 22:06:33 +00:00
Love Hörnquist Åstrand
d189f9e9d7 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22166 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 21:44:40 +00:00
Love Hörnquist Åstrand
0a9f8b895b Check if there is initial creds with _gss_ntlm_get_user_cred().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22165 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 21:44:26 +00:00
Love Hörnquist Åstrand
a650e10c34 Move probe up and comment why its called.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22164 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 21:36:35 +00:00
Love Hörnquist Åstrand
8ca9a4469c add credential handling, add probe function, add better acquired cred function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22163 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 21:25:06 +00:00
Love Hörnquist Åstrand
280b58bb08 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22162 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 20:20:49 +00:00
Love Hörnquist Åstrand
2da57a288f (krb5_digest_probe): return what mechs are supported/allowed.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22156 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 20:02:49 +00:00
Love Hörnquist Åstrand
43e2e59ccb x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22155 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 20:00:36 +00:00
Love Hörnquist Åstrand
42bb2c98dc Add DigestTypes, add --seq to antoher type.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22154 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 20:00:24 +00:00
Love Hörnquist Åstrand
10a064cefc x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22153 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 19:59:35 +00:00
Love Hörnquist Åstrand
8ab241da96 Add supportedMechs request.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22152 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 19:59:18 +00:00
Love Hörnquist Åstrand
3988b29f85 add group krb5_digest
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22150 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 19:07:40 +00:00
Love Hörnquist Åstrand
01401cc9b6 Add _gss_ntlm_get_user_info() that return the user info so it can be
used by external modules.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22149 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 18:03:04 +00:00
Love Hörnquist Åstrand
529fe557b5 use the right error code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22148 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 17:59:29 +00:00
Love Hörnquist Åstrand
c11e764195 Return GSS_C_NO_CREDENTIAL if there is no credential, ntlm have (not
yet) a default credential.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22147 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 17:58:45 +00:00
Love Hörnquist Åstrand
c9f248b7f0 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22145 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 17:32:33 +00:00
Love Hörnquist Åstrand
292c545215 Avoid trying to deref NULL, from Phil Fisher.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22144 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 17:31:55 +00:00
Love Hörnquist Åstrand
4854adc216 Make krb5_get_error_string return an allocated string to make the
function indempotent. From Zeqing (Fred) Xia.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22142 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 16:56:02 +00:00
Love Hörnquist Åstrand
0a39807d9f (init_context_from_config_file): set default_cc_name_set
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22132 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 01:23:41 +00:00
Love Hörnquist Åstrand
3dfec628f2 Always try to fetch cred (even with GSS_C_NO_NAME).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22129 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 01:13:13 +00:00
Love Hörnquist Åstrand
e53ec599a7 global krb5_context no longer used.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 00:56:55 +00:00
Love Hörnquist Åstrand
6aa94aa902 Flag if default_cc_name was set by the user, ignore envirnoment updates then.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22127 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 00:54:37 +00:00
Love Hörnquist Åstrand
068fc5ff83 (krb5_context_data): Flag if default_cc_name was set by the user.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22126 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 00:53:59 +00:00
Love Hörnquist Åstrand
bf772f42e4 (acquire_acceptor_cred): Check if there is at least one entry in the
keytab before declaring it as an useful keytab.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22124 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 00:03:52 +00:00
Love Hörnquist Åstrand
f6734fd25f bump version
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22122 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 22:55:54 +00:00
Love Hörnquist Åstrand
75399b34c3 (fcc_move): make sure ->version is uptodate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22120 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 22:36:59 +00:00
Love Hörnquist Åstrand
1816bb6dce quote?
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22119 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 22:02:48 +00:00
Love Hörnquist Åstrand
d340f5fab3 update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22115 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 21:21:42 +00:00
Love Hörnquist Åstrand
58a7d59b47 Put back code that was needed, move gen_new into new_unique.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22113 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 21:20:02 +00:00
Love Hörnquist Åstrand
ec82df5025 drop data/serial
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22111 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 18:38:04 +00:00
Love Hörnquist Åstrand
805f9b54c8 add missing sia_locl.h posix_getpw.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22109 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 17:30:10 +00:00
Love Hörnquist Åstrand
3a8d8a97c2 Implement krb5_cc_ops->default_name.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22108 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 17:23:53 +00:00
Love Hörnquist Åstrand
296b56abe8 (mcc_default_name): Remove const
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22107 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 17:22:51 +00:00
Love Hörnquist Åstrand
0d124a5725 Add KRB5_DEFAULT_CCNAME_KCM, redefine KRB5_DEFAULT_CCNAME to KRB5_DEFAULT_CCTYPE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22105 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 17:20:06 +00:00
Love Hörnquist Åstrand
8ff9a93093 Use krb5_cc_ops->default_name to get the default name.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22104 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 17:17:41 +00:00
Love Hörnquist Åstrand
804f92aa75 Implement krb5_cc_ops->default_name.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22103 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 17:16:44 +00:00