Commit Graph

103 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
d448f74010 Check return value from asprintf instead of string != NULL since it
undefined behavior on Linux. From Björn Sandell


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16224 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-22 17:17:44 +00:00
Love Hörnquist Åstrand
c41860a8ee use NULL as last argument to execl, not 0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14747 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-06 11:23:54 +00:00
Love Hörnquist Åstrand
2830ca741b get_v4_tgt only used when compileing with kerberos 4 support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14506 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-01-08 23:38:01 +00:00
Johan Danielsson
03bae875ad use krb5_appdefault_boolean instead of krb5_config_get_bool
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14203 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-08 09:02:59 +00:00
Johan Danielsson
26457b7135 replace krb5_free_creds_contents by krb5_free_cred_contents
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-25 19:25:35 +00:00
Johan Danielsson
b66d2709e0 protect the world from des_encrypt in crypt.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13614 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-22 17:30:24 +00:00
Love Hörnquist Åstrand
5ad3b9d8fb include <crypt.h>, From: Fredrik Ljungberg <flag@pobox.se>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13412 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-01 22:02:40 +00:00
Love Hörnquist Åstrand
fc82b86bb0 (verify_krb5): set mcred.client too
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12934 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-30 18:57:49 +00:00
Love Hörnquist Åstrand
3026b3bd70 (verify_krb5): use krb5_cc_clear_mcred
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12427 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-06 23:36:28 +00:00
Love Hörnquist Åstrand
3602b138c6 include kafs.h in the krb5 case
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12173 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-29 09:17:17 +00:00
Love Hörnquist Åstrand
f697d47d2f (GetPasswd): cast argument to isprint to unsigned char
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12005 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-14 11:16:11 +00:00
Love Hörnquist Åstrand
7f03375e74 do krb5_afslog when compling with afs support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11868 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-18 14:18:56 +00:00
Assar Westerlund
11e49bd767 (verify): move ret to where it's used
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11642 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-02-10 10:01:52 +00:00
Assar Westerlund
68823821a9 add --version as a special case
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11226 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-23 19:29:38 +00:00
Assar Westerlund
14da30bf65 srandom paren fix
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-10 14:12:43 +00:00
Assar Westerlund
20be9e286b use more randomness (arc4random + srandomdev)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10676 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-09 20:27:25 +00:00
Assar Westerlund
7906b0624f (verify_krb5): remove unused variable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10171 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-23 22:20:04 +00:00
Assar Westerlund
99f53c4c8b new krb524_convert_creds_kdc_ccache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10113 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-18 13:11:33 +00:00
Johan Danielsson
904eb2b037 don't explicitly set the krb4 ticket file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9750 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-15 17:13:13 +00:00
Assar Westerlund
67422a6b02 s/[gs]et_progname/[gs]etprogname/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9704 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-20 01:44:56 +00:00
Assar Westerlund
633782864b (main): handle krb5_init_context failure consistently
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9443 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-31 08:05:03 +00:00
Björn Groenvall
4efd6d8ddf Missing newline in printf.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8368 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-09 12:33:41 +00:00
Björn Groenvall
f3c11fde79 Not all systems implement setuid(2) the way you expect.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8362 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-09 09:59:47 +00:00
Assar Westerlund
231d5834ac (verfiy_krb5): get the v4-realm from the v5-ticket and not from the
default one.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8158 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-09 09:56:25 +00:00
Assar Westerlund
a321675515 (verify_krb5): add obtainting of v4 tickets.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8157 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-09 09:40:01 +00:00
Assar Westerlund
bf75fac82a large strc{py,at}_truncate -> strlc{py,at} replacement
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6984 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-16 20:41:57 +00:00
Assar Westerlund
288f640276 (verify): use KRB_VERIFY_SECURE instead of 1
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5569 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-17 22:35:48 +00:00
Assar Westerlund
77d90ff418 krb_verify_user_multiple -> krb_verify_user
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5557 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-16 17:30:01 +00:00
Björn Groenvall
298b64f1e8 Integrate Assars multi-realm patch.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5542 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-15 13:36:27 +00:00
Johan Danielsson
ec88c17777 add some if-braces to keep gcc happy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5507 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-11 13:59:19 +00:00
Assar Westerlund
29c5cba17e (main): create place-holder ticket file with open(O_EXCL | O_CREAT)
instead of creat


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5065 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-07-07 23:37:34 +00:00
Johan Danielsson
a5f54865d4 merge strcpy_truncate branch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5027 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-06-09 19:25:40 +00:00
Johan Danielsson
9a84c190d0 Check return values from XGrab*.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4790 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-22 01:33:30 +00:00
Assar Westerlund
ccbf259f64 remove redundant preprocessor stuff
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4663 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-24 04:20:28 +00:00
Björn Groenvall
490fbda2df Fix buffer overrun and non terminated string problem.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4651 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-22 11:34:54 +00:00
Assar Westerlund
fe41a052cd (init_words): recognize both -p' and -prog'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4632 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-21 13:36:17 +00:00
Assar Westerlund
bda4b95d4c strerror ugly fix
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4388 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-12 04:38:12 +00:00
Assar Westerlund
7dfe42ff25 old krb_verify_user
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4237 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-24 14:35:11 +00:00
Assar Westerlund
3ba57e454e new signature for krb_verify_user
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4205 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-15 17:11:26 +00:00
Johan Danielsson
a54776623b Make it build w/o krb4.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4067 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-29 03:58:43 +00:00
Johan Danielsson
f62acdf369 update from krb4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3612 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-14 22:37:30 +00:00
Johan Danielsson
dda7a7f327 Kerberos 5 patches
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3495 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-13 04:47:04 +00:00
Björn Groenvall
b5132f6fdf Fix realloc problem
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3454 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-09 12:11:16 +00:00
Björn Groenvall
229316b6de Encrypted passwords are really long under FreeBSD.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3351 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-03 14:17:59 +00:00
Björn Groenvall
02c607db68 New resource destroyTickets with corresponding option -nodestroytickets.
First try local authentication and if it fails press on with kerberos.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1905 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-12 11:52:17 +00:00
Assar Westerlund
ec826f40b2 inst fix
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1657 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-04 04:17:44 +00:00
Assar Westerlund
dd02a92a8b replace sprintf all over the place
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1635 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-02 14:29:33 +00:00
Assar Westerlund
6dd290313a <sys/types.h>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1546 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-05 19:34:59 +00:00
Björn Groenvall
951e90c4f1 Change the "LOGOUT" password to be managable through X-resources. The
password is stored in UNIX crypt format so that it can be stored in a
global resource file for sites that whish to keep it a secret.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1180 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-01-21 20:53:38 +00:00
Johan Danielsson
7cc5b658c1 Cast to Cardinal*
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1069 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-24 05:19:48 +00:00