1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

5216 Commits

Author SHA1 Message Date
Andrew Bartlett
44f2d34bd3 r8013: Remember to add the header containing the prototype for the pac
generating function...

Andrew Bartlett
(This used to be commit 707cf5fba8e5652043d392d3ee77d042eb9c3a90)
2007-10-10 13:18:59 -05:00
Jelmer Vernooij
d6acd2fb16 r8012: Add UUID for NDR64 transfer syntax.
(This used to be commit 6a3f62222285fa091968bb025edfe21fcf5dfb86)
2007-10-10 13:18:58 -05:00
Andrew Tridgell
baa873b8a1 r8011: arrgh, commit the right version this time
(This used to be commit 5efea40ea63b6951b3bd4362f1ae57f960fefecf)
2007-10-10 13:18:58 -05:00
Andrew Tridgell
34c57c5629 r8010: added testing of wildcard attributes
(This used to be commit 25d3872a6ebbc152a83695e667f5d08e69c8c8ea)
2007-10-10 13:18:58 -05:00
Andrew Tridgell
bed487f6a3 r8009: expanded the ldb test suite. It worried me that some changes I have
pending, which I know break lots of features, still passed our test
suite! Now they don't.
(This used to be commit 5801167c8dfc8a61bfeac396bca8ffd3d5270296)
2007-10-10 13:18:58 -05:00
Andrew Tridgell
939cb07232 r8006: I have seen w2k3 send multiple encoding syntaxes in rpc bind
requests. This is a simple change to accept that, as long as the first
one is NDR.
(This used to be commit 330293ddff39266abb688c6292e59472ff47aebe)
2007-10-10 13:18:58 -05:00
Andrew Tridgell
c645eba60b r8005: escape '"' characters in ldap expressions. Makes scripting easier.
(This used to be commit 2de986455c9b616132f06a69c2f135019da2bb8b)
2007-10-10 13:18:58 -05:00
Andrew Tridgell
f792261654 r8004: added a maximum EAs size test from Kukks.
(This used to be commit 426c4d08ac9191c02dcd604a21ea390b7d255a41)
2007-10-10 13:18:58 -05:00
Andrew Tridgell
1050a54a3b r8003: ensure that we don't try to send a trans request with more than 64k data or params
(This used to be commit b4f2d17ace6a609ec87da103a89e36edee8903f9)
2007-10-10 13:18:57 -05:00
Andrew Tridgell
c58c7c4164 r8002: favor addresses on our local interfaces in NBT name resolution if
possible. This is needed because w2k3 will return bogus IPs in its
name resolution replies when it has an unplugged network interface.
(This used to be commit 2fafc230520fb5bbe9f763de94aaba87b56f5411)
2007-10-10 13:18:57 -05:00
Andrew Bartlett
ddffc922df r8001: Also fill in the krbtgt checksum, and make sure to put the right
checksum in the right place...

Andrew Bartlett
(This used to be commit 90d0f502da20add6784c883b2085cde519604933)
2007-10-10 13:18:57 -05:00
Andrew Bartlett
0a8d694e80 r8000: It seems make proto is required, for reasons I can't explain.
Andrew Bartlett
(This used to be commit b10f224f5515a97fc4fd5c40b304180593df79ea)
2007-10-10 13:18:57 -05:00
Rafal Szczesniak
396074a7fc r7999: Fix lacking structure definition.
rafal
(This used to be commit 6886aefe4c78e3e208eacb3c4b76f1189bd1352a)
2007-10-10 13:18:57 -05:00
Andrew Bartlett
9a7481bcfe r7993: Further work on the Krb5 PAC.
We now generate the PAC, and can verifiy both our own PAC and the PAC
from Win2k3.

This commit adds the PAC generation code, spits out the code to get
the information we need from the NETLOGON server back into a auth/
helper function, and adds a number of glue functions.

In the process of building the PAC generation code, some hints in the
Microsoft PAC specification shed light on other parts of the code, and
the updates to samr.idl and netlogon.idl come from those hints.

Also in this commit:

The Heimdal build package has been split up, so as to only link the
KDC with smbd, not the client utils.

To enable the PAC to be veified with gensec_krb5 (which isn't quite
dead yet), the keyblock has been passed back to the calling layer.

Andrew Bartlett
(This used to be commit e2015671c2f7501f832ff402873ffe6e53b89466)
2007-10-10 13:18:57 -05:00
Andrew Bartlett
f4e75294be r7991: I forgot to free the keyblock once we are done with it.
Andrew Bartlett
(This used to be commit a68e348375ab026385e7d5162ed8da8f2adbd84e)
2007-10-10 13:18:56 -05:00
Andrew Bartlett
4c0f86f828 r7990: An attempt at documenting the current state of cludges required to get
Samba4 going, with kerberos.

Andrew Bartlett
(This used to be commit d027d0f10682ca5906d2f1ae2889d476db61be9a)
2007-10-10 13:18:56 -05:00
Andrew Bartlett
f4607c6e55 r7989: Allow the use of hashed passwords in the kerberos client and server,
and create the in-memory keytab with the correct kvno, if available.

Andrew Bartlett
(This used to be commit 7b7b2b038e25f3d767b5db7d6e41dd947fdde091)
2007-10-10 13:18:56 -05:00
Andrew Bartlett
f62a70fe54 r7988: Store the KVNO for the machine account, and set it up in the provision.
Andrew Bartlett
(This used to be commit 90e94a4630c24282cd93ee05e258877b38e24a57)
2007-10-10 13:18:56 -05:00
Andrew Bartlett
cbbe4e816c r7986: Fix the compile, thanks to HotaruT.
This won't actually work until I get the keyblock filled in again, but
at least it will compile.

I first need to decide if we want to keep the server-side gensec_krb5
code at all, now we have the GSSAPI layer doing what we want.

Andrew Bartlett
(This used to be commit 28e49de9293002ee89f0666144c9028daefdde88)
2007-10-10 13:18:56 -05:00
Andrew Bartlett
5daf957362 r7980: Forgot to add kerberos_pac.c to this config.mk file.
Andrew Bartlett
(This used to be commit bba58a1876353effbef540dd0db9e66db5343c35)
2007-10-10 13:18:56 -05:00
Andrew Bartlett
66da650727 r7979: Metze reminded me to try one more combination, and we can now verify
the 'PAC', required for interopability with Active Directory.

This is still a cludge, as it doesn't handle different encryption
types, but that should be fairly easy to fix (needs PIDL/IDL changes).

Andrew Bartlett
(This used to be commit 690cfc44cef9b349cc31417d8353b6ce1c7832e1)
2007-10-10 13:18:56 -05:00
Andrew Bartlett
99777452f0 r7978: A start again on PAC verification. I have noticed that the kerberos
keys appear at the end of the PAC, which I feel is deliberate (it
makes this much easier).

I still can't make it work, but I'm sure we are closer.

Andrew Bartlett
(This used to be commit 6f0e1c80ae7b1e31e7a3fbff84f07442ee5a31cf)
2007-10-10 13:18:55 -05:00
Andrew Tridgell
8dde165d0f r7977: split up 'make clean' a little more as it is overflowing the command line size limits
on some platforms
(This used to be commit e18dc32074fe56d7ccbcf9cc621a4b88abe957b1)
2007-10-10 13:18:55 -05:00
Andrew Bartlett
2d95bf6da6 r7971: structs.h update
(This used to be commit 31e7df1392f39e170e3d072b8356e746208d0621)
2007-10-10 13:18:55 -05:00
Andrew Bartlett
025e03de54 r7970: This SMB signing code (merged from 3.0) turned out to be bogus.
Andrew Bartlett
(This used to be commit 817160ec1a85724c8bf482f128ea687396de0888)
2007-10-10 13:18:55 -05:00
Andrew Bartlett
3ff7916571 r7969: It seems reasonable that our tickets be marked renewable, in the
absense of an apparent AD flag to control this behaviour.

Andrew Bartlett
(This used to be commit 9886aa6f0e64cdb30774bfba3f2c683a3dbec9c4)
2007-10-10 13:18:55 -05:00
Andrew Bartlett
f9861c9c5a r7968: Pull the PAC from within GSSAPI, rather than only when using our own
'mock GSSAPI'.

Many thanks to Luke Howard for the work he has done on Heimdal for
XAD, to provide the right API hooks in GSSAPI.

Next step is to verify the signatures, and to build the PAC for the
KDC end.

Andrew Bartlett
(This used to be commit 2e82743c98e563e97c5a215d09efa0121854d0f7)
2007-10-10 13:18:55 -05:00
Andrew Bartlett
3433a464c2 r7967: We don't have the ms_krb5 stuff any more.
Andrew Bartlett
(This used to be commit 56a5ccd7d924343609698b034b91b4891fb3f08a)
2007-10-10 13:18:54 -05:00
Andrew Bartlett
edb86cf196 r7966: We need a better way to do this, but enable the KDC by default, if we
have kerberos.

Andrew Bartlett
(This used to be commit 3d82b1417b9f2e31089cb8ee7e4f98bd226f2e75)
2007-10-10 13:18:54 -05:00
Andrew Bartlett
2fb1e179f6 r7965: Remove the GENSEC password callback structure members, as these are no
longer used.

Andrew Bartlett
(This used to be commit 14be7d95694dd7557af67dc94ee83a983d2f05f6)
2007-10-10 13:18:54 -05:00
Jelmer Vernooij
65cc3f5d5c r7958: More debian packaging updates; packages build now with
a few minor issues.

Move ldb manpages one level higher - there is no longer a need to have
subdirectories.
(This used to be commit e8e3524b2394f4107230715ea38fb619332e0251)
2007-10-10 13:18:54 -05:00
Stefan Metzmacher
9bf7217aa2 r7955: we should not free a struct which is passed as a parameter, to a function
the caller should free it

this fixed a double free bug noticed by
Дейтер Александр Валериевич <tiamat@komi.mts.ru> 

metze
(This used to be commit ee1a5d5419f4d79af5c447a6b397a0f4dc89310a)
2007-10-10 13:18:53 -05:00
Jelmer Vernooij
fa8d539e0f r7943: Add 'make manpages', fix 'make installman' and 'make uninstallman'.
Not part of the "all" make target yet, as it requires xsltproc
(This used to be commit fd3f4636438cf1d9c0dd802064033271b9e4d935)
2007-10-10 13:18:53 -05:00
Jelmer Vernooij
c73c81ea15 r7942: Debian packages updates and fixes. Use dh_install for diverting
files to different packages.
(This used to be commit da706b14ab9391cc8af1789f3533a94ab935150f)
2007-10-10 13:18:53 -05:00
Andrew Tridgell
d6c1ad5c17 r7941: fixed handling of ASN.1 objects bigger than 64k
(This used to be commit f88a6018821163a52bdf384142c7d16f5011ab4e)
2007-10-10 13:18:53 -05:00
Andrew Tridgell
6861c9069a r7940: use local path first for ldbadd in provisioning
(This used to be commit cff7507f593816a831a14f03862f7bdb24c15d4f)
2007-10-10 13:18:53 -05:00
Andrew Tridgell
a6b242639d r7939: fix default hostname in provision
(This used to be commit 79d174005e3508745ea8b0bda2321abd184bf68b)
2007-10-10 13:18:53 -05:00
Simo Sorce
e1e95277c0 r7937: main file was missing
(This used to be commit 3898cdb0dc4722a7eb60a61b54ef778dab475aed)
2007-10-10 13:18:53 -05:00
Simo Sorce
1702f52498 r7936: new ldb_dn_explode and ldb_dn_casefold functions and co
(This used to be commit 7ccf21ab4eeb9821e457308a239f2103a106fb12)
2007-10-10 13:18:52 -05:00
Andrew Bartlett
14b0722edf r7935: auth_unix now uses crypt(), so depend on -lcrypt.
This builds on the work tridge did to make -lcrypt conditional, rather
than globally linked.  This was needed for Heimdal stuff, but then I
'fixed' heimdal, and we now reintroduce it here.

Andrew Bartlett
(This used to be commit 83d9d8f4827280a68dfd07beccf2924c9e0825b0)
2007-10-10 13:18:52 -05:00
Simo Sorce
b30d59c3bf r7934: ported samba3 pass_check functions to auth_unix.c
not having these platforms they are untested,
let's hope the buildfarm can catch any problem
(This used to be commit 08ec299dcbdc8dba12568b95b636866f147b2e7c)
2007-10-10 13:18:52 -05:00
Andrew Tridgell
d634966f20 r7933: darn, forgot to add this
(This used to be commit 773f7afb7a99ae1f6df45dcf52cc358b52c0ba22)
2007-10-10 13:18:52 -05:00
Stefan Metzmacher
a6853cf5c6 r7932: don't use the nbt called name as server name, for dcerpc_server_name()
in the ncacn_np trnaport

it's now supported to use the ip address in smbtorture for ncacn_np tests
that use dcerpc_server_name(),

and we can now pass the dns host name in the tree connect when we have the dns name
on the smbtorture command line

metze
(This used to be commit e29edbc7e62c738564ae842c9c01c969f5c70e5d)
2007-10-10 13:18:52 -05:00
Andrew Tridgell
173909efd5 r7931: fixed a bug in the cifs backend found with the new test code
(This used to be commit 447d5fcc1bdbdeaf2d96dbcace36b480b5a18c73)
2007-10-10 13:18:52 -05:00
Andrew Tridgell
6afb06d8e1 r7930: - added testing of the cifs passthru backend
- removed redundent $ADDARG code in selftest
(This used to be commit e431d0e9525c633c663ca48baea321369e39b226)
2007-10-10 13:18:51 -05:00
Andrew Tridgell
bd23956fa5 r7929: yet another attempt at fixing installswat on freebsd 5
nodie assures me this works now ...
(This used to be commit 3c17207487a84ac4f71a88e2efe57c153e9889b4)
2007-10-10 13:18:51 -05:00
Tim Potter
c36e1ae46c r7928: Add rename, unlink and list commands.
list() returns a list of strings, but maybe it should be a list of
objects with size, attrib, short name etc.
(This used to be commit 696aa182d5a159c26b80829e1eae9a9894cb7986)
2007-10-10 13:18:51 -05:00
Andrew Tridgell
382fc485b2 r7927: fixed an error on partial socket writes in the rpc server
(This used to be commit 3c7b5de67294ef161289af7da6716b44ffc5d526)
2007-10-10 13:18:51 -05:00
Andrew Tridgell
6a7119fc83 r7926: poptGetNextOpt() returns int, not char
this was breaking ldbadd on some platforms
(This used to be commit dd0ac3f68d709c0364d992673e76db73398c0369)
2007-10-10 13:18:51 -05:00
Andrew Tridgell
e83fb4fa1b r7925: small tidyup (please keep lines at a reasonable length)
(This used to be commit 0bfd91c32a62e651e81ce8d3b102158ec9c680fe)
2007-10-10 13:18:51 -05:00