1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

189 Commits

Author SHA1 Message Date
Karolin Seeger
1cad4304bf s4-heimdal: Fix typo in comment.
Karolin
2010-06-01 09:35:53 +02:00
Stefan Metzmacher
5797b9a913 s4:heimdal: remove unused heimdal/lib/hcrypto/evp-cc.c
metze
2010-05-11 18:11:05 +02:00
Karolin Seeger
55838a8c02 s4-heimdal: Fix typo in comment.
Karolin
2010-04-13 20:09:13 +02:00
Andrew Bartlett
1d59abc724 s4:heimdal Add hooks to check with the DB before we allow s4u2self
This allows us to resolve multiple forms of a name, allowing for
example machine$@REALM to get an S4U2Self ticket for
host/machine@REALM.

Andrew Bartlett
2010-04-10 21:40:58 +10:00
Karolin Seeger
deccb6cf9a s4-krb5: Fix typos in comment.
Karolin
2010-04-09 09:24:28 +02:00
Andrew Bartlett
64b8b0cdaf s4:heimal Update generated files (cp from Heimdal) 2010-03-27 12:24:00 +11:00
Andrew Bartlett
533024be44 s4:heimdal: import lorikeet-heimdal-201003262338 (commit f4e0dc17709829235f057e0e100d34802d3929ff) 2010-03-27 11:55:22 +11:00
Andrew Bartlett
564d5cd2c4 s4:heimdal New files and supporting logic for heimdal update 2010-03-27 11:53:23 +11:00
Andrew Bartlett
89eaef0253 s4:heimdal: import lorikeet-heimdal-201001120029 (commit a5e675fed7c5db8a7370b77ed0bfa724196aa84d) 2010-03-27 11:51:27 +11:00
Matthias Dieter Wallnöfer
2bdece18c6 kerberos - set the memory to "0"s before freeing the password to prevent security issues 2010-03-16 18:20:51 +01:00
Matthias Dieter Wallnöfer
a6c57472ab heimdal - remove unused variable 2010-03-16 17:11:49 +01:00
Matthias Dieter Wallnöfer
dc5e0d8464 heimdal - fix overlapped identifiers in the "krb5" library 2010-03-16 17:11:49 +01:00
Matthias Dieter Wallnöfer
973001e91a heimdal - free always "ctx->password" when it isn't needed anymore
"strdup" does always create a new object in the memory (through "malloc") which
needs to be freed if it isn't used anymore.
2010-03-16 17:11:48 +01:00
Karolin Seeger
694ab7c5ff s4-heimdal: Fix typos in comment.
Karolin
2010-02-15 12:23:11 +01:00
Stefan Metzmacher
4a4b2a5eaf s4:heimdal: regerenate files
Andrew using cp like in commit ca12e7bc8f
is wrong as that removes #include "config.h" and breaks the build on AIX.

metze
2010-02-08 09:59:29 +01:00
Andrew Tridgell
bb009412d3 heimdal: work around differences between GNU and XSI strerror_r()
This is a fairly ugly workaround, but then again, strerror_r() is a
very ugly mess.
2009-12-14 22:29:57 +11:00
Andrew Tridgell
29c87ef830 s4-heimdal: fixed a use-after-free heimdal bug
This caused samba4kinit to segfault on some systems
2009-12-08 15:16:13 +11:00
Kamen Mazdrashki
bf7cc3262e krb5: Fix leaked hx509_context pointer
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-08 12:39:10 +11:00
Andrew Bartlett
dc351a579d s4:heimdal: import lorikeet-heimdal-200911170333 (commit b532c294d974cead40a1183c71be644c6ccc2832)
This fixes up connections to Windows 2003, because the previous import
had a broken arcfour-hmac-md5 implementation (fixed in Heimdal
316fc6ff8ffb0cbb1ef3689685e9977c37405bc4)

Andrew Bartlett
2009-11-17 16:21:29 +11:00
Andrew Bartlett
ca12e7bc8f s4:heimdal Import generated files from heimdal tree
We should be able to rebuild these, but a cp is easier :-)
2009-11-13 23:19:06 +11:00
Andrew Bartlett
4f8ba5ad6a s4:heimdal: import lorikeet-heimdal-200911122202 (commit 9291fd2d101f3eecec550178634faa94ead3e9a1) 2009-11-13 23:19:05 +11:00
Andrew Bartlett
5bc87c14a1 s4:heimdal: import lorikeet-heimdal-200909210500 (commit 290db8d23647a27c39b97c189a0b2ef6ec21ca69) 2009-11-13 23:19:05 +11:00
Matthias Dieter Wallnöfer
9f170bc7ea heimdal - hdb/ext.c - fix a "shadows variable" warning
Renamed the variable "str" in the nested block to "str2" to prevent the collision
with "str" in the main function block.
2009-10-21 17:35:51 +02:00
Andrew Bartlett
3493b62b4b s4:heimdal A real fix for bug 6801
The issue was that we would free the entry after the database, not
knowing that the entry was a talloc child of the database.

Andrew Bartlett
2009-10-14 10:20:01 +11:00
Matthias Dieter Wallnöfer
02b289f65b heimdal - fix various warnings
- Shadowed variables
- "const" related warnings
- Parameter names which shadow function declarations
- Non-void functions which have no return value

(patch also ported upstream)
2009-10-03 13:20:52 +02:00
Stefan Metzmacher
16f1ba2558 s4:heimdal/gssapi/krb5: set cred_handle in _gsskrb5_import_cred
metze
2009-09-18 20:34:16 +02:00
Andrew Bartlett
64e2b859d2 s4:heimdal: import lorikeet-heimdal-200908052208 (commit 370a73a74199a5a55188340906e15fd795f67a74)
This removes some of the portability changes made to code under
heimdal/

If these are still required, then we will re-add them with code under
heimdal_build/ (so that we can simply 'drop in' future heimdal
releases).

Andrew Bartlett
2009-08-06 08:44:53 +10:00
Andrew Bartlett
cd1d7f4be7 s4:heimdal: import lorikeet-heimdal-200908050050 (commit 8714779fa7376fd9f7761587639e68b48afc8c9c)
This also adds a new hdb-glue.c file, to cope with Heimdal's
uncondtional enabling of SQLITE.

(Very reasonable, but not required for Samba4's use).

Andrew Bartlett
2009-08-05 12:18:17 +10:00
Andrew Bartlett
8ff1f50b0c s4:kerberos Add support for user principal names in certificates
This extends the PKINIT code in Heimdal to ask the HDB layer if the
User Principal Name name in the certificate is an alias (perhaps just
by case change) of the name given in the AS-REQ.  (This was a TODO in
the Heimdal KDC)

The testsuite is extended to test this behaviour, and the other PKINIT
certficate (using the standard method to specify a principal name in a
certificate) is updated to use a Administrator (not administrator).
(This fixes the kinit test).

Andrew Bartlett
2009-07-28 14:10:47 +10:00
Andrew Bartlett
0c2dca71fa s4:heimdal Extend the 'hdb as a keytab' code
This extends the hdb_keytab code to allow enumeration of all the keys.

The plan is to allow ktutil's copy command to copy from Samba4's
hdb_samba4 into a file-based keytab used in wireshark.

One day, with a few more hacks, we might even make this a loadable
module that can be used directly...

Andrew Bartlett
2009-07-27 22:41:41 +10:00
Andrew Bartlett
6cb81f7b37 s4:heimdal: import lorikeet-heimdal-200907162216 (commit d09910d6803aad96b52ee626327ee55b14ea0de8)
This includes in particular changes to the KDC to resolve bug 6272,
originally by Matthieu Patou <mat+Informatique.Samba@matws.net>.  We
need to sort the AuthorizationData elements to put the PAC first, or
else WinXP breaks when browsed from Win2k8.

Andrew Bartlett
2009-07-17 08:32:01 +10:00
Andrew Bartlett
e25325539a s4:heimdal: import lorikeet-heimdal-200907152325 (commit 2bef9cd5378c01e9c2a74d6221761883bd11a5c5) 2009-07-16 11:31:36 +10:00
Andrew Bartlett
84dca625ca s4:heimdal The implied GSS_C_MUTUAL_FLAG depends on AP_OPTS_MUTUAL_REQUIRED
We had previously assumed it was unconditional.  Samba3 didn't mind
very much, but Samba4's samba3-like client did, and the behaviour
differed to Win2008 behaviour.

Andrew Bartlett
2009-07-16 09:23:35 +10:00
Stefan Metzmacher
5d4d9d333d s4:heimdal: readd heimdal/lib/asn1/asn1parse.y which was parse.y before the last import
Also commit the regenerated files for systems without yacc and lex.

This fixes the build with automatic dependecies for me.

metze
2009-07-06 13:28:11 +02:00
Björn Jacke
e9fc7c5e15 heimdal: don't include <ifaddrs.h> without knowing it's there
this is 73dbbe0d54 re-added. abartlet, please pick this to lorikeet.
2009-07-03 19:13:08 +02:00
Andrew Bartlett
89a074b784 s4:heimdal Allow KRB5_NT_ENTERPRISE names in all DB lookups
The previous code only allowed an KRB5_NT_ENTERPRISE name (an e-mail
list user principal name) in an AS-REQ.  Evidence from the wild
(Win2k8 reportadely) indicates that this is instead valid for all
types of requests.

While this is now handled in heimdal/kdc/misc.c, a flag is now defined
in Heimdal's hdb so that we can take over this handling in future (once we start
using a system Heimdal, and if we find out there is more to be done
here).

Andrew Bartlett
2009-06-30 12:11:14 +10:00
Andrew Bartlett
9b261c008a s4:heimdal: import lorikeet-heimdal-200906080040 (commit 904d0124b46eed7a8ad6e5b73e892ff34b6865ba)
Also including the supporting changes required to pass make test

A number of heimdal functions and constants have changed since we last
imported a tree (for the better, but inconvenient for us).

Andrew Bartlett
2009-06-12 07:45:48 +10:00
Björn Jacke
d2bb72d713 s4:heimdal: fix build on FreeBSD
Patch from Timur I. Bakeyev sent to samba-technical:

Heimdal requires openpty() presence. FreeBSD has in in standard libc, so
autodetection works, but compilation fails, as declaration of this function is
missing.

This patch adds proper header detection and inclusion for openpty().
2009-06-08 22:14:49 +02:00
Jeremy Allison
3a88316e23 Fix the build. Looks like no one ever compiled this on a system
with a libintl.h before.
Jeremy.
2009-02-24 12:19:06 -08:00
Jeremy Allison
365925eea3 Start fixing Solaris build failures.
Jeremy.
2009-02-24 11:37:57 -08:00
Stefan Metzmacher
6028e8f346 heimdal: void functions should not return a value
metze
2009-01-31 08:54:01 +01:00
Stefan Metzmacher
2fe137e7bc heimdal:hdb: always include "config.h" first
metze
2009-01-30 19:44:20 +01:00
Stefan Metzmacher
55f663a04b heimdal:camellia: include roken.h
metze
2009-01-30 19:37:06 +01:00
Stefan Metzmacher
e592718c43 heimdal:roken: arg_match_long() should return a value
This should fix a build problem on IRIX.

metze
2009-01-30 18:02:21 +01:00
Stefan Metzmacher
3f09dd0d82 heimdal:roken: arg_printusage() should not try to return a value.
This should fix problems with the IRIX build.

metze
2009-01-30 17:58:57 +01:00
Stefan Metzmacher
9cf1175d33 heimdal:camellia-ntt.c: include config.h as first header
metze
2009-01-30 17:52:37 +01:00
Stefan Metzmacher
cdca75dee6 heimdal: don't include <sys/cdefs.h> without knowing it's there
metze
2009-01-30 17:38:41 +01:00
Stefan Metzmacher
73dbbe0d54 heimdal: don't include <ifaddrs.h> without knowing it's there
metze
2009-01-30 17:38:40 +01:00
Jelmer Vernooij
e7810b1bc2 Use standard heimdal function for finding interfaces - libreplace provides support for the underlying functions now. 2008-11-02 18:14:53 +01:00
Stefan Metzmacher
2b29b71864 s4: import lorikeet-heimdal-200810271034
metze
2008-10-28 08:53:09 +01:00