Commit Graph

25372 Commits

Author SHA1 Message Date
Love Hornquist Astrand
a6f9dfc5ad drop krb4 2010-03-16 20:43:24 -07:00
Love Hornquist Astrand
433b1d5073 drop RCSID 2010-03-16 12:52:58 -07:00
Love Hornquist Astrand
dde9ae659b drop RCSID 2010-03-16 12:50:09 -07:00
Russ Allbery
97648fc257 Disable kpasswdd error replies to completely malformed requests
Only send an error reply if the request passes basic verification.
Otherwise, kpasswdd would reply to every UDP packet, allowing an
attacker to set up a ping-pong DoS attack via a spoofed UDP packet with
a source address of another UDP service that also replies to every
packet.

Also suppress the error reply if ap_req_len is 0, since this indicates
an error packet.  An error packet may be the result of a ping-pong
attacker pointing us at another kpasswdd.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-03-16 11:50:22 -07:00
Russ Allbery
5230b2f8f5 Discard old keys in MIT dump files in hprop
An MIT dump file may contain multiple key sets for one principal, with
different kvnos.  The Heimdal database can only represent a single
kvno, and previously the kvno was set to the last key found in the entry
and all keys were added to the entry.  Since kvnos are given from high
to low in the database dump, this would result in the principal getting
the kvno of the oldest key and all keys stored without regard for kvno.

Instead, ignore all keys with kvnos lower than the first kvno we see and
only store keys with a kvno matching it.  If we see a key with a kvno
higher than the first kvno we see, exit with an error since that case is
not currently handled (and should not happen in a typical MIT database
dump).

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-03-16 11:48:15 -07:00
Matthias Dieter Wallnöfer
69ea9b38e9 heimdal - fix overlapped identifiers in the "krb5" library
heimdal - fix overlapped identifiers in the "krb5" library

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-03-16 10:05:35 -07:00
Love Hornquist Astrand
50990d61cf free always "ctx->password" when it isn't needed anymore
Patch originally from Matthias Dieter Wallnöfer, changed by me to keep
clearing the password from memory.
2010-03-16 10:04:20 -07:00
Love Hornquist Astrand
313a2243bb Allow users to specify their own configuration file ~/.krb5/config
Idea from Rune L on heimdal-discuss
2010-03-16 09:09:27 -07:00
Harald Barth
a06a40dd77 dont use modern syntax to please old makeinfo 2010-03-15 05:05:10 -07:00
Love Hornquist Astrand
33d80cbcfc include roken.h 2010-03-12 09:04:39 -08:00
Love Hornquist Astrand
cf1b11f8a0 export more 2010-03-11 23:35:26 -08:00
Love Hornquist Astrand
6da28e73eb move same ifdef magic from roken-common.h.in to here, use strerror() 2010-03-11 23:35:00 -08:00
Love Hornquist Astrand
7d9335ce69 in the STRERROR_R_PROTO_COMPATIBLE case, only provide a rk_strerror_r function if there is a broken prototype
From harald barth.
2010-03-11 18:40:47 -08:00
Love Hornquist Astrand
e57bd85101 spelling 2010-03-10 20:05:31 -08:00
Love Hornquist Astrand
f2611400b0 Set e_text for more cases 2010-03-07 02:44:25 -08:00
Love Hornquist Astrand
ae74dc7316 allow a cross realm ticket returned in the non referrals case 2010-03-07 01:02:02 -08:00
Love Hornquist Astrand
03262460dd use krb5_principal_is_krbtgt 2010-03-07 01:01:32 -08:00
Love Hornquist Astrand
71150bb1bc add krb5_principal_is_krbtgt 2010-03-07 01:00:48 -08:00
Love Hornquist Astrand
a46bc97443 Windows code never calls dirfd, avoid warning 2010-02-27 19:23:08 -08:00
Love Hornquist Astrand
94a8d9c5e5 autoconf test for dirfd and dd_fd 2010-02-25 22:18:32 -08:00
Love Hornquist Astrand
53024a5a22 start to document gss_import_name 2010-02-21 23:21:58 +01:00
Love Hornquist Astrand
521098738c document gss_release_name 2010-02-21 23:21:43 +01:00
Love Hornquist Astrand
a40c4855ed provide complete krb5-mit.conf 2010-02-21 07:03:46 -08:00
Love Hornquist Astrand
564fe5cb05 remove heimdal-db* 2010-02-21 07:01:30 -08:00
Love Hornquist Astrand
24eeb74c4a make getnameinfo quiet by default 2010-02-20 14:01:53 -08:00
Love Hornquist Astrand
7c86764dea make getifaddrs quiet by default 2010-02-20 13:59:39 -08:00
Love Hornquist Astrand
e297702f78 split dist and nodisk source for heim_ipc[cs]
So that the generated files doesn't have to be built on host w/o mig,
reported by Jelmer Vernooij on heimdal-discuss
2010-02-20 11:22:07 -08: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
Guido Günther
45a94f309b Use libcapng to drop all privileges
except for CAPNG_NET_BIND_SERVICE so we can bind to ports < 1024.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-18 19:08:45 -08:00
Love Hornquist Astrand
ec18315352 drop autobuild 2010-02-18 19:08:24 -08:00
Love Hornquist Astrand
90397c9e4b drop autobuild 2010-02-18 19:07:25 -08:00
Love Hornquist Astrand
3ddb2af8d5 more flags and stuff 2010-02-13 17:41:33 -08:00
Love Hornquist Astrand
33e9da40b4 *** empty log message *** 2010-02-13 17:39:08 -08:00
Love Hornquist Astrand
61d6c3b9c5 add flags in gssapi_context_flags 2010-02-13 17:38:56 -08:00
Love Hornquist Astrand
53f7c6be92 more refs 2010-02-13 17:28:29 -08:00
Love Hornquist Astrand
57332c9b7d gssapi_mechs_intro 2010-02-13 17:28:13 -08:00
Love Hornquist Astrand
b7581f5dcb document more about mechs 2010-02-13 17:27:14 -08:00
Love Hornquist Astrand
96852bdc79 list contants for mechs 2010-02-13 17:23:09 -08:00
Love Hornquist Astrand
84b58b78b6 start of documention of gss_init_sec_context 2010-02-13 17:14:46 -08:00
Love Hornquist Astrand
711ef346a0 move krb5_set_home_dir_access() group krb5 2010-02-10 18:26:46 -08:00
Love Hornquist Astrand
c9a0c39786 add check for [libdefaults_entries]allow_weak_crypto 2010-02-04 16:13:06 -08:00
Russ Allbery
bc3d8992cd Don't attempt to load a password quality verifier from NULL
When kadm5_add_passwd_quality_verifier is called with a NULL
check_library parameter and [password_quality].policy_libraries
is set, the function calls add_verifier() for each string in the
policy_libraries section and then falls through to the non-NULL
case and calls add_verifier() a final time with a NULL argument.
This leads to dlopening the running executable and then failing
since it contains no password quality verifier.

If the check_library argument is NULL, only call add_verifier()
for the configured policy_libraries and do not fall through to
the non-NULL case.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-02 20:46:23 -08:00
Russ Allbery
f3a559b3c2 Ensure data structures allocated by hprop are initialized
Use calloc instead of malloc when allocating data structures while
importing a dump in hprop.  Fixes a crash in hprop when reading MIT
dump files due unintialized memory in the Salt data structure, plus
will be more robust against any future changes to the data model.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-02 20:43:48 -08:00
Love Hornquist Astrand
04d3215d39 _wind_ucs2read is not a private symbol 2010-02-02 20:16:47 -08:00
Russ Allbery
e7d997e8ee Comment .gitignore
Add some header comments and an introductory comment explaining how to
check that no rule ignores files present in the repository.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-02 19:37:44 -08:00
Russ Allbery
dc2b09f167 Remove lib/hx509/*.pem files from .gitignore
These files are included in the repository and don't have makefile
rules to generate them, so don't ignore them.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-02 19:37:28 -08:00
Russ Allbery
92a17668e5 Flesh out .gitignore
Update .gitignore to include all the files generated during a normal
build on Debian squeeze.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-02 19:36:46 -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
Russ Allbery
3d715adc21 Rename the database after closing it in hpropd
If a Berkeley DB database is used as the underlying database, renaming
the database before closing it can produce error messages like the
following on close:

/var/lib/heimdal-kdc/heimdal~.db: unable to flush: No such file or directory

since the underlying database library caches the old file name.  There
is a rename() method in the Berkeley DB API, but it also invalidates
the database handle and requires that it be reopened.  Since the
hdb_rename implementation does not require that the database be open,
close the database before renaming it to avoid this problem.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-02 13:27:48 -08:00