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

5100 Commits

Author SHA1 Message Date
Stefan Metzmacher
dad0371a9f r8052: that looks nicer:-)
metze
2007-10-10 13:19:03 -05:00
Andrew Tridgell
dac526845e r8051: separate out the MAX EAs test, as it fills disk too much to be run regularly 2007-10-10 13:19:03 -05:00
Stefan Metzmacher
054e1ca434 r8050: - make use of more [value()] properties
- the out subcontext's need to have a fixed size of r->in.offered,
  to make windows clients happy

metze
2007-10-10 13:19:02 -05:00
Stefan Metzmacher
81abbdaeb1 r8049: add function that returns the build version (of w2k3 here 3790)
metze
2007-10-10 13:19:02 -05:00
Stefan Metzmacher
d8c308a465 r8046: - add somemore failure checks in the RPC-SPOOLSS test
- test AddForm on the PrintServer object

- GetForm() isn't allowed on the PrintServer object so remove NTPTR
  function for it

- accept the dns name as servername in the spoolss server

metze
2007-10-10 13:19:02 -05:00
Stefan Metzmacher
d8175b01db r8045: fix valgrind warning, add zero padding when the string doesn't fill the full FIXLEN
metze
2007-10-10 13:19:02 -05:00
Stefan Metzmacher
fdbf822f1c r8044: give a better error code
metze
2007-10-10 13:19:02 -05:00
Andrew Tridgell
60863b6faf r8043: increase shell compatibility of ldb tests 2007-10-10 13:19:02 -05:00
Stefan Metzmacher
70118e9529 r8042: give better error message
metze
2007-10-10 13:19:02 -05:00
Andrew Tridgell
912fa269d2 r8041: remove a mis-spelled debug message :-) 2007-10-10 13:19:01 -05:00
Andrew Tridgell
3671459d9a r8040: run ldb test suite as part of samba 'make test' 2007-10-10 13:19:01 -05:00
Andrew Tridgell
f3e3b2ccd9 r8039: allow ldb test suite to be run outside of the ldb directory 2007-10-10 13:19:01 -05:00
Andrew Tridgell
7d2bee2c56 r8038: - fixed indexing on binary values that need base64 encoding and canonicalisation
- added support for recognising the S- form of objectsid in search
  expressions. I thought this could be done with just a comparison
  modified comparison function, but it turns out it also needs a
  canonicalisation function so that indexing can work
2007-10-10 13:19:01 -05:00
Andrew Tridgell
944c5844ab r8037: a fairly major update to the internals of ldb. Changes are:
- moved the knowledge of attribute types out of ldb_tdb and into the
   generic ldb code. This allows the ldb_match() message match logic
   to be generic, so it can be used by other backend

 - added the generic ability to load attribute handlers, for
   canonicalisation, compare, ldif read and ldif write. In the future
   this will be used by the schema module to allow us to correctly
   obey the attributetype schema elements

 - added attribute handlers for some of the core ldap attribute types,
   Integer, DirectoryString, DN, ObjectClass etc

 - added automatic registration of attribute handlers for well-known
   attribute names 'cn', 'dc', 'dn', 'ou' and 'objectClass'

 - converted the objectSid special handlers for Samba to the new system

 - added more correct handling of indexing in tdb backend based on the
   attribute canonicalisation function

 - added generic support for subclasses, moving it out of the tdb
   backend. This will be used in future by the schema module

 - fixed several bugs in the dn_explode code. It still needs more
   work, but doesn't corrupt ldb dbs any more.
2007-10-10 13:19:01 -05:00
Stefan Metzmacher
66d6b1d578 r8036: revert rev 8023/8024 as they have a bugs.
metze
2007-10-10 13:19:01 -05:00
Andrew Tridgell
a9c3244503 r8035: added indexing tests. current ldb fails the integer indexing, will be fixed shortly 2007-10-10 13:19:00 -05:00
Andrew Tridgell
ad6e62fdcf r8033: - add easier valgrind testing
- add tests for the @SUBCLASSES ltdb special
2007-10-10 13:19:00 -05:00
Andrew Tridgell
563058e78b r8032: added loop detection into talloc. Robert Collins found a way to make a
memory loop with talloc_unlink(), so now we detect it and handle it
2007-10-10 13:19:00 -05:00
Stefan Metzmacher
a2e34475d7 r8028: fix a crash bug in ulogoff, when the tree_connect failed before
metze
2007-10-10 13:19:00 -05:00
Stefan Metzmacher
078f42bc3f r8024: avoid one memcpy in the ipc_trans dcesrv_output() callback
we now can reference the DATA_BLOB that is used inside the dcesrv subsystem

metze
2007-10-10 13:19:00 -05:00
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