1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-16 00:23:52 +03:00
Commit Graph

5080 Commits

Author SHA1 Message Date
Stefan Metzmacher
d0574d407f r8023: use a pointer to a DATA_BLOB for each reply,
that will allow the write_fn callback of dcesrv_output()
to reference the memory with a valid TALLOC pointer

metze
2007-10-10 13:19:00 -05:00
Stefan Metzmacher
fe483dcd87 r8021: we only need to return STATUS_BUFFER_OVERFLOW for the ipc_trans replies
and not for the ipc_read() replies as here the client explicit says how much data it wants

the write_fn() in dcesrv_output() now returns NTSTATUS

and the ipc specific implementations are moved to the ntvfs_ipc module

metze
2007-10-10 13:19:00 -05:00
Stefan Metzmacher
d04057b932 r8020: - add --with-selftest-prefix option that specify the prefix used in make test
- also we use ./prefix test as default and not `pwd`/prefix-test
  to workaround the path length limit for unix sockets
  ... char sun_path[108]; ...

metze
2007-10-10 13:18:59 -05:00
Andrew Bartlett
44b86b7e65 r8016: Get the keyblock arguments correct. (the context struct changed, but
I forgot to update the users)

Andrew Bartlett
2007-10-10 13:18:59 -05:00
Andrew Bartlett
707cf5fba8 r8013: Remember to add the header containing the prototype for the pac
generating function...

Andrew Bartlett
2007-10-10 13:18:59 -05:00
Jelmer Vernooij
6a3f622222 r8012: Add UUID for NDR64 transfer syntax. 2007-10-10 13:18:58 -05:00
Andrew Tridgell
5efea40ea6 r8011: arrgh, commit the right version this time 2007-10-10 13:18:58 -05:00
Andrew Tridgell
25d3872a6e r8010: added testing of wildcard attributes 2007-10-10 13:18:58 -05:00
Andrew Tridgell
5801167c8d 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.
2007-10-10 13:18:58 -05:00
Andrew Tridgell
330293ddff 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.
2007-10-10 13:18:58 -05:00
Andrew Tridgell
2de986455c r8005: escape '"' characters in ldap expressions. Makes scripting easier. 2007-10-10 13:18:58 -05:00
Andrew Tridgell
426c4d08ac r8004: added a maximum EAs size test from Kukks. 2007-10-10 13:18:58 -05:00
Andrew Tridgell
b4f2d17ace r8003: ensure that we don't try to send a trans request with more than 64k data or params 2007-10-10 13:18:57 -05:00
Andrew Tridgell
2fafc23052 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.
2007-10-10 13:18:57 -05:00
Andrew Bartlett
90d0f502da r8001: Also fill in the krbtgt checksum, and make sure to put the right
checksum in the right place...

Andrew Bartlett
2007-10-10 13:18:57 -05:00
Rafal Szczesniak
6886aefe4c r7999: Fix lacking structure definition.
rafal
2007-10-10 13:18:57 -05:00
Andrew Bartlett
e2015671c2 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
2007-10-10 13:18:57 -05:00
Andrew Bartlett
a68e348375 r7991: I forgot to free the keyblock once we are done with it.
Andrew Bartlett
2007-10-10 13:18:56 -05:00
Andrew Bartlett
7b7b2b038e 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
2007-10-10 13:18:56 -05:00
Andrew Bartlett
90e94a4630 r7988: Store the KVNO for the machine account, and set it up in the provision.
Andrew Bartlett
2007-10-10 13:18:56 -05:00
Andrew Bartlett
28e49de929 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
2007-10-10 13:18:56 -05:00
Andrew Bartlett
bba58a1876 r7980: Forgot to add kerberos_pac.c to this config.mk file.
Andrew Bartlett
2007-10-10 13:18:56 -05:00
Andrew Bartlett
690cfc44ce 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
2007-10-10 13:18:56 -05:00
Andrew Bartlett
6f0e1c80ae 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
2007-10-10 13:18:55 -05:00
Andrew Tridgell
e18dc32074 r7977: split up 'make clean' a little more as it is overflowing the command line size limits
on some platforms
2007-10-10 13:18:55 -05:00
Andrew Bartlett
31e7df1392 r7971: structs.h update 2007-10-10 13:18:55 -05:00
Andrew Bartlett
817160ec1a r7970: This SMB signing code (merged from 3.0) turned out to be bogus.
Andrew Bartlett
2007-10-10 13:18:55 -05:00
Andrew Bartlett
9886aa6f0e r7969: It seems reasonable that our tickets be marked renewable, in the
absense of an apparent AD flag to control this behaviour.

Andrew Bartlett
2007-10-10 13:18:55 -05:00
Andrew Bartlett
2e82743c98 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
2007-10-10 13:18:55 -05:00
Andrew Bartlett
56a5ccd7d9 r7967: We don't have the ms_krb5 stuff any more.
Andrew Bartlett
2007-10-10 13:18:54 -05:00
Andrew Bartlett
3d82b1417b r7966: We need a better way to do this, but enable the KDC by default, if we
have kerberos.

Andrew Bartlett
2007-10-10 13:18:54 -05:00
Andrew Bartlett
14be7d9569 r7965: Remove the GENSEC password callback structure members, as these are no
longer used.

Andrew Bartlett
2007-10-10 13:18:54 -05:00
Jelmer Vernooij
e8e3524b23 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.
2007-10-10 13:18:54 -05:00
Stefan Metzmacher
ee1a5d5419 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
2007-10-10 13:18:53 -05:00
Jelmer Vernooij
fd3f463643 r7943: Add 'make manpages', fix 'make installman' and 'make uninstallman'.
Not part of the "all" make target yet, as it requires xsltproc
2007-10-10 13:18:53 -05:00
Andrew Tridgell
f88a601882 r7941: fixed handling of ASN.1 objects bigger than 64k 2007-10-10 13:18:53 -05:00
Andrew Tridgell
cff7507f59 r7940: use local path first for ldbadd in provisioning 2007-10-10 13:18:53 -05:00
Andrew Tridgell
79d174005e r7939: fix default hostname in provision 2007-10-10 13:18:53 -05:00
Simo Sorce
3898cdb0dc r7937: main file was missing 2007-10-10 13:18:53 -05:00
Simo Sorce
7ccf21ab4e r7936: new ldb_dn_explode and ldb_dn_casefold functions and co 2007-10-10 13:18:52 -05:00
Andrew Bartlett
83d9d8f482 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
2007-10-10 13:18:52 -05:00
Simo Sorce
08ec299dcb 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
2007-10-10 13:18:52 -05:00
Andrew Tridgell
773f7afb7a r7933: darn, forgot to add this 2007-10-10 13:18:52 -05:00
Stefan Metzmacher
e29edbc7e6 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
2007-10-10 13:18:52 -05:00
Andrew Tridgell
447d5fcc1b r7931: fixed a bug in the cifs backend found with the new test code 2007-10-10 13:18:52 -05:00
Andrew Tridgell
e431d0e952 r7930: - added testing of the cifs passthru backend
- removed redundent $ADDARG code in selftest
2007-10-10 13:18:51 -05:00
Andrew Tridgell
3c17207487 r7929: yet another attempt at fixing installswat on freebsd 5
nodie assures me this works now ...
2007-10-10 13:18:51 -05:00
Tim Potter
696aa182d5 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.
2007-10-10 13:18:51 -05:00
Andrew Tridgell
3c7b5de672 r7927: fixed an error on partial socket writes in the rpc server 2007-10-10 13:18:51 -05:00
Andrew Tridgell
dd0ac3f68d r7926: poptGetNextOpt() returns int, not char
this was breaking ldbadd on some platforms
2007-10-10 13:18:51 -05:00