Commit Graph

46 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
61e14619de use krb5_get_init_creds_opt_alloc/krb5_get_init_creds_opt_free
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12737 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 00:31:42 +00:00
Love Hörnquist Åstrand
fd2b38ca93 (kadm_connect): if a context realm was passed in, use that to form the
kadmin/admin principal


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11950 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-01 15:06:41 +00:00
Jacques A. Vidrine
bc46f2ed8c Bug fix: the default credentials cache was not being used if a client
name was specified.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11038 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-06-16 15:13:25 +00:00
Johan Danielsson
de239fe22f (get_cred_cache): when getting the default_client from the cred cache,
make sure the instance part is "admin"; this should require fewer uses
of -p


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10894 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-03-25 13:17:38 +00:00
Johan Danielsson
94939f9b1b we have to create our own param struct before marshaling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10824 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-02-08 18:31:49 +00:00
Johan Danielsson
adb1ef4618 call krb5_get_init_creds_opt_set_default_flags
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10200 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-29 16:45:34 +00:00
Assar Westerlund
4dff86bc9f (init_context): handle krb5_init_context failure consistently
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9440 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-31 08:00:23 +00:00
Assar Westerlund
cb4baeb84f remove unused variable and handle some parameters being NULL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8754 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-22 01:08:18 +00:00
Johan Danielsson
159d70b8df use krb5_write_priv_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8743 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-21 23:39:47 +00:00
Johan Danielsson
909da8dc41 break out connection code to separate function, and defer calling it
until we actually do something


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8650 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-11 15:57:19 +00:00
Assar Westerlund
6fadf041d3 (set_funcs): add chpass_principal_with_key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8061 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-23 23:03:38 +00:00
Assar Westerlund
aab3633ea8 (get_new_cache): make sure to request non-forwardable, non-proxiable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7833 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-01-28 03:20:18 +00:00
Assar Westerlund
ff5c821bf1 (_kadm5_c_init_context): handle getting back port number from admin
host
(kadm5_c_init_with_context): remove `proto/' part before doing
getaddrinfo()


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7639 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-20 14:05:49 +00:00
Assar Westerlund
0d560248f4 (kadm5_c_init_with_context): stupid fixes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7571 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-07 05:20:33 +00:00
Assar Westerlund
da4cebd749 (kadm5_c_init_with_context): don't use unitialized stuff
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7569 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-07 04:49:53 +00:00
Assar Westerlund
5ef2c74608 use krb5_warn{,x}
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7508 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-04 19:50:03 +00:00
Assar Westerlund
661312f68b re-write to use getaddrinfo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7492 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-04 18:02:18 +00:00
Johan Danielsson
c5b916ca6f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Assar Westerlund
3338703f46 (_kadm5_c_init_context): call krb5_add_et_list so that we aren't
dependent on the layout of krb5_context_data


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7389 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-14 16:31:51 +00:00
Johan Danielsson
e62be9c527 (kadm5_c_init_with_context): try to cope with old servers
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7328 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-09 17:54:55 +00:00
Assar Westerlund
5e05184149 (_kadm5_c_init_context): use `krb5_get_krb_admin_hst'. check return
value from strdup


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7101 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-03 20:14:20 +00:00
Assar Westerlund
f284b5472f (get_cred_cache): band-aid instead of rewriting
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6437 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-07 10:05:41 +00:00
Assar Westerlund
2a50031890 (get_cred_cache): you cannot reuse the cred cache if the principals
are different.  close and NULL the old one so that we create a new one.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6349 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-23 10:19:40 +00:00
Assar Westerlund
5df21ee4a4 (get_cred_cache): use get_default_username
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6314 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-15 02:46:25 +00:00
Assar Westerlund
2029da488e (get_cred_cache): use $USERNAME
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6267 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-21 09:27:43 +00:00
Johan Danielsson
b53166b10e (get_cred_cache): figure out principal
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6251 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-17 14:36:51 +00:00
Assar Westerlund
7089d31618 (get_new_cache): don't abort when interrupted from password prompt
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6113 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-04 01:24:09 +00:00
Assar Westerlund
9724d68217 (kadm5_c_init_with_context): remove unused `error'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5354 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-13 16:20:55 +00:00
Assar Westerlund
cb09ff0795 (get_kadm_ticket): only remove creds if krb5_get_credentials was
succesful.
(get_new_cache): return better error codes and return earlier.
(get_cred_cache): only delete default_client if it's different from
client
(kadm5_c_init_with_context): return a more descriptive error.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5312 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-01-30 19:39:59 +00:00
Assar Westerlund
957cd47a28 allow specification of port number.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5285 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-01-30 12:48:55 +00:00
Assar Westerlund
b9fc14488a (_kadm5_c_init_context): move up initalize_kadm5_error_table_r. From
Love <lha@stacken.kth.se>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5283 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-01-30 12:44:26 +00:00
Assar Westerlund
2a39855c79 (get_cred_cache): try to do the right thing with default_client
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5052 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-06-30 16:11:18 +00:00
Johan Danielsson
fb9cacff85 Implement init_with_{skey,creds}*. Make use of `password' parameter to
init_with_password.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4907 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-23 02:56:50 +00:00
Johan Danielsson
8c91994194 Get creds for client name passed in.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4648 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-21 23:55:09 +00:00
Johan Danielsson
2efbae8001 Try to get ticket via initial request, if not possible via tgt.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4623 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-21 00:52:08 +00:00
Assar Westerlund
dc8d030a39 remove semicolon
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4491 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-01 02:46:41 +00:00
Johan Danielsson
630157db65 initialize_*_error_table -> initialize_*_error_table_r
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4417 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-16 16:36:46 +00:00
Assar Westerlund
dbc3249d8c use krb5_getportbyname
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4281 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-06 03:21:29 +00:00
Johan Danielsson
46569a331b Add context to all krb5_config_*get_*.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4256 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-03 21:14:31 +00:00
Johan Danielsson
c9fdac7141 undo last change
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4144 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-06 08:04:19 +00:00
Johan Danielsson
a1f7459397 Use re-entrant error-table.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4128 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-05 04:25:31 +00:00
Johan Danielsson
7d293dc9fb Use function pointer trampoline for easier dual use (without radiation-hardening capability).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3948 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 21:21:47 +00:00
Johan Danielsson
dc4603aaed Close socket.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3934 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 20:30:17 +00:00
Johan Danielsson
af364bca96 less leaks
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3833 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-09 01:18:20 +00:00
Johan Danielsson
d6e637ca2c Use application version.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3792 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-05 23:57:41 +00:00
Johan Danielsson
54378aee2e Add client support.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3789 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-05 23:32:43 +00:00