981 Commits

Author SHA1 Message Date
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
Love Hörnquist Åstrand
412155fa6e Remove strange code around getarg(), just do like everyone else does it.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24865 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-27 03:32:10 +00:00
Love Hörnquist Åstrand
5be004f3fa Handle relative time syntax using +<parse_time>.
Example: kadmin mod --pw-expiration-time='+1month 1day'

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24642 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-07 15:11:22 +00:00
Love Hörnquist Åstrand
fb66afbaa2 create WELLKNOWN/ANONYMOUS
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24570 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:02:43 +00:00
Love Hörnquist Åstrand
60fb283294 include gssapi header files directly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24554 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-30 16:49:54 +00:00
Love Hörnquist Åstrand
eff4906254 use kadm5_s_init_with_password_ctx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24549 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-30 16:48:55 +00:00
Love Hörnquist Åstrand
e147d3fba4 use kadm5_s_init_with_password_ctx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24548 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-30 16:48:46 +00:00
Love Hörnquist Åstrand
be2f540704 drop <gssapi/*
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24545 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-30 16:48:14 +00:00
Love Hörnquist Åstrand
04ac45eec0 drop HAVE_CONFIG_H
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24544 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-30 16:47:36 +00:00
Love Hörnquist Åstrand
9a96b6bc44 fix out of range bug
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24479 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 20:49:22 +00:00
Love Hörnquist Åstrand
9cfb421fc5 fix out of range bug
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24477 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 20:49:03 +00:00
Love Hörnquist Åstrand
bfda4404bf use gssapi/*.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24390 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:36:19 +00:00
Love Hörnquist Åstrand
92a1b951fe make xdr function static
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24316 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 23:05:01 +00:00
Love Hörnquist Åstrand
82c4b8765f move xdr function here
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24313 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 22:02:31 +00:00
Love Hörnquist Åstrand
d3cef9ce45 plug memory leaks and other bugs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24247 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:43:11 +00:00
Love Hörnquist Åstrand
3223c11aab verify verf header
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24244 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:42:42 +00:00
Love Hörnquist Åstrand
8f80188c3f cleanup
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24243 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:42:32 +00:00