Commit Graph

797 Commits

Author SHA1 Message Date
Love Hornquist Astrand
2bcacbd052 patch from Christos Zoulas 2011-04-23 18:27:35 -07:00
Love Hornquist Astrand
17b38758ff patch from Christos Zoulas 2011-04-23 18:25:40 -07:00
Love Hornquist Astrand
e307a6f350 init max_life and max_rlife 2010-11-27 11:04:55 -08:00
Asanka C. Herath
f40fe926ad Windows: Comprehensive clean target 2010-11-24 15:32:13 -05:00
Love Hornquist Astrand
a85c548fd1 wait for dead children, and then abandon the live ones 2010-10-30 12:15:04 -07:00
Love Hornquist Astrand
2a2b229efc reap all zombie children, promted by bug report from Patrik Lundin 2010-10-27 19:34:28 -07:00
Anton Lundin
eac56da073 Rename struct to not clash with aix header sys/proc.h
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-09-16 22:47:27 -07:00
Russ Allbery
ce438f343c Fix error reporting prefix for kadmin list
Pass the function name into foreach_principal instead of the static
"get" string, so the correct function is reported in errors in
kadmin list.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-09-01 22:59:30 -07:00
Russ Allbery
890c797f68 Don't retrieve principal data for kadmin list
kadmin list and kadmin get -t used the same output display logic
as short output, which meant that they called kadm5_get_principal
for each principal.  However, they then just threw that output
away since the terse format displays only the principal name.

For terse get output, instead use a separate set of functions that
just print the string version of the principal name and do not
retrieve additional information.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-09-01 22:59:12 -07:00
Asanka Herath
cdcdc5cad5 Windows: Version information for binaries 2010-08-20 13:06:54 -04:00
Asanka Herath
d83611238a Windows: Build a single heimdal.dll
Heimdal.dll is a combination of libasn1, libwind, libhcrypto, libhx509
and libkrb5.
2010-08-20 13:06:54 -04:00
Love Hornquist Astrand
433b1d5073 drop RCSID 2010-03-16 12:52:58 -07:00
Ingo Schwarze
0b2eece5be Do not use nested displays. Found by and unbreaking the build with mandoc(1). I will also send this patch upstream. OK todd@ jmc@
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-20 11:21:26 -08:00
Russ Allbery
d5970c0851 Report mkvno as unknown
When the principal is retrieved from the database via libkadm5srv, the
keys are always decrypted, so the reported mkvno is always 0.  Rather
than returning 0 and implying that the key in the database is not
encrypted, report the mkvno as unknown for right now.

A better fix is required to either not decrypt the keys when retrieving
get information or to get the mkvno before keys are decrypted.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-02 19:36:20 -08:00
Love Hornquist Astrand
117652f353 Disable kadmind.exe since currently it doesn't build 2010-02-02 19:29:55 -08:00
Love Hornquist Astrand
b914fd57c5 remove NO_INETD by shuffling code around 2009-12-25 06:37:57 +01:00
Love Hornquist Astrand
93e0cc80f4 make use rk_SOCK_ERRNO, make compile again 2009-12-23 14:36:52 +01:00
Love Hornquist Astrand
be73fa4687 use krb5_socket_t 2009-12-23 14:12:38 +01:00
Love Hornquist Astrand
160ddd0e43 use rk_closesocket 2009-12-23 14:06:37 +01:00
Asanka Herath
4eb90e1c8c Use correct socket glue 2009-12-21 18:02:32 -05:00
Asanka Herath
a0ae9f5a0e Merge remote branch 'h-github/master' into win32-port2
* h-github/master: (64 commits)
  refix socket wrappers with rk_
  Patch from Secure Endpoints/Asanka Herath for windows support
  unset KRB5CCNAME
  its really just LIBADD more most of them
  correct quoting
  Use -lpthread for modern freebsd instead
  clean KRB5CCNAME and KRB5_CONFIG, require test to reset them
  more up ${env_setup}
  use PTHREADS_LIBADD for freebsd6 and newer
  add PTHREAD_LIBADD
  add PTHREAD_LIBADD
  add PTHREAD_LIBADD
  switch to PTHREADS_LIBADD
  log what the error string say too
  More debug logging
  sprinkle more 'echo "test failed"'
  sprinkle 'echo "test failed"'
  use calloc(), indent more prettier
  in sh, equal compare is really = for strings, not ==
  Check for duplicates, already loaded mechs
  ...

Conflicts (resolved):
	lib/krb5/auth_context.c
	lib/krb5/changepw.c
	lib/krb5/context.c
	lib/krb5/error_string.c
	lib/krb5/kuserok.c
	lib/krb5/libkrb5-exports.def.in
	lib/krb5/net_write.c
	lib/krb5/store_fd.c
	lib/krb5/test_cc.c
	lib/roken/strerror_r.c
2009-12-21 13:44:00 -05:00
Love Hornquist Astrand
c867fd3e2e Make libtool pull in the depenency on libldap
Put in explicy depenency on libdap so that libtool
might to the right thing for us.

Patch from Jan Rekorajski
2009-12-08 00:15:10 -08:00
Love Hornquist Astrand
86f4c66efd Merge branch 'master' into wip/win32-port2 2009-11-25 05:41:14 -08:00
Asanka Herath
b191b1e12f Make kdc build on windows
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-11-24 22:19:37 -08:00
Asanka Herath
d00f9984a5 Make roken build on windows
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-11-24 21:42:02 -08:00
Love Hornquist Astrand
c6bbdb545b First drop of Windows build infrastructure from Secure Endpoints 2009-11-24 12:12:53 -08:00
Asanka Herath
4583cc514d NTMakefile for kadmin 2009-11-24 10:17:51 -08:00
Asanka Herath
a1942c1bad Use SOCKET data type instead of ints for sockets in kadmin
Also use the new mini_inetd() API
2009-11-24 10:17:51 -08:00
Asanka Herath
14ae739820 Don't rely on Posix links in kadmin/stash.c 2009-11-24 10:17:51 -08:00
Asanka Herath
b1063ea8fc Initial Windows port 2009-11-24 10:11:14 -08:00
Love Hornquist Astrand
368536bc08 add password/bare options 2009-11-21 23:53:26 -08:00
Love Hornquist Astrand
d83aacd2c5 drop krb5_get_err_text 2009-11-04 22:27:55 -08:00
Love Hornquist Astrand
57faf165a0 [HEIMDAL-646] malloc(0) checks for AIX 2009-10-11 18:03:22 -07:00
Love Hornquist Astrand
da376b3c48 [HEIMDAL-646] malloc(0) checks for AIX 2009-10-11 17:19:00 -07:00
Love Hornquist Astrand
dc4e8669ea Abstract out asn1_compile and slc 2009-09-16 00:12:13 -07:00
Love Hornquist Astrand
6c28d3a772 Switch __FUNCTION__ to __FILE__ since Sun Developer studio doesn't support the former 2009-08-15 05:59:35 +02:00
Love Hornquist Astrand
20d4cca179 Make skip-ing work again, so that tests passes again 2009-07-30 18:55:45 +02:00
Love Hornquist Astrand
a1e127a3a8 Make sure we don't use negative indexing [CID-57] 2009-07-30 13:10:59 +02:00
Love Hornquist Astrand
8490e8fd34 make compile 2009-07-30 13:04:30 +02:00
Love Hornquist Astrand
3af78ea3fb out of memory [CID-63] 2009-07-30 12:53:50 +02:00
Love Hornquist Astrand
60c9bca968 Free new_key_data in case of failure [CID-78] 2009-07-30 12:10:14 +02:00
Love Hornquist Astrand
e395b3a9ea Free d on failure [CID-103] 2009-07-30 10:45:19 +02:00
Love Hornquist Astrand
9b710bed81 store is never read again 2009-07-29 22:37:58 +02:00
Love Hornquist Astrand
330fd7645d Always ask for principal (KADM5_PRINCIPAL)
The protocol for "get principal" does not support not sending
principal, so when the caller doesn't add KADM5_PRINCIPAL to the mask,
lets add it for them.

Reported by Henry.B.Hotz@jpl.nasa.gov in [HEIMDAL-588]
2009-07-19 21:01:20 -07:00
Love Hörnquist Åstrand
b7b88769b9 fix spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25290 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-06-24 18:07:48 +00:00
Love Hörnquist Åstrand
f6fa5c810e Close f, from cppcheck
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25276 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-06-08 20:33:12 +00:00
Love Hörnquist Åstrand
0c6e235109 use krb5_principal_get_realm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25119 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-16 08:15:44 +00:00
Love Hörnquist Åstrand
5bfb2c6578 use calloc to allocate salt
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24989 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 09:03:05 +00:00
Love Hörnquist Åstrand
c2ef08565c catch bad privs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24875 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-27 03:34:34 +00:00
Love Hörnquist Åstrand
8a1dc13633 abort on memory error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24874 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-27 03:34:24 +00:00