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

9521 Commits

Author SHA1 Message Date
Andrew Bartlett
778debedea r17300: Try to fix some segfaults in ldb_ildap module, when the remote server
drops the connection.  The reconnect code needs to be hooked in here.

Andrew Bartlett
2007-10-10 14:15:08 -05:00
Andrew Bartlett
90c07b8801 r17299: Improve the partition module to replicate attribute records into all
partitions.

Test that we do that correctly.

Andrew Bartlett
2007-10-10 14:15:08 -05:00
Andrew Bartlett
c1ea0a350c r17298: Fix up the local_password module to the current LDB API, and build it by default.
Andrew Bartlett
2007-10-10 14:15:08 -05:00
Andrew Bartlett
f814fae400 r17297: Some compilers don't seem to like the ;;
Andrew Bartlett
2007-10-10 14:15:07 -05:00
Stefan Metzmacher
88bcb57e82 r17290: don't do any stuff that can fail in the _recv function
metze
2007-10-10 14:15:07 -05:00
Andrew Bartlett
8b0f6e637e r17289: Fix the build: I havn't commited this module yet.
Andrew Bartlett
2007-10-10 14:15:07 -05:00
Andrew Bartlett
4569c58a42 r17288: Don't mess with entries in the local password prefix, and fix const
warnings.

Andrew Bartlett
2007-10-10 14:15:07 -05:00
Andrew Bartlett
44806c67db r17287: Add the local_password module to the tree, so it doesn't get lost in
ldb API changes.

Andrew Bartlett
2007-10-10 14:15:07 -05:00
Andrew Bartlett
3043969708 r17286: Simply fail the tls_initialise if we don't have TLS compiled in.
Adjust the web_server code to cope with this.

Andrew Bartlett
2007-10-10 14:15:06 -05:00
Stefan Metzmacher
c865aea260 r17285: some reformating
metze
2007-10-10 14:15:06 -05:00
Stefan Metzmacher
ee81ad5793 r17284: move the input checking stuff from ntlmssp_update() into its
own function.

metze
2007-10-10 14:15:06 -05:00
Stefan Metzmacher
216e02c69c r17283: use the async calls of auth_check_password() and gensec_update()
in the smb server.

metze
2007-10-10 14:15:06 -05:00
Stefan Metzmacher
43f99f1171 r17282: test some simple operation with the LANMAN1 and LANMAN2 protocol,
that finally tests our RAW_SESSSETUP_OLD code

metze
2007-10-10 14:15:05 -05:00
Stefan Metzmacher
1d74291626 r17281: we now have client/server max protol
metze
2007-10-10 14:15:05 -05:00
Stefan Metzmacher
c70edc3fb8 r17280: NT_STATUS_INVALID_HANDLE maps to ERRbadfid, which is wrong in this
places, so only overwrite ERRbaduid and ERRinvnid when NTSTATUS support
is given.

metze
2007-10-10 14:15:05 -05:00
Stefan Metzmacher
fe463bc568 r17278: fix un uninitialized value found by valgrind
metze
2007-10-10 14:15:05 -05:00
Stefan Metzmacher
e231eba828 r17277: we need to trigger an event when we return directly,
otherwise the callers callback function will not be called
and the caller is hanging forever...

metze
2007-10-10 14:15:05 -05:00
Stefan Metzmacher
699dee70aa r17274: fix typos
metze
2007-10-10 14:10:26 -05:00
Stefan Metzmacher
ed40bb3c16 r17273: add an async version of auth_check_password() on the public
auth interface and implement the sync version as wrapper
to auth_check_password_send/recv()

as next all callers need to be converted to the async interface
and then the modules

metze
2007-10-10 14:10:26 -05:00
Stefan Metzmacher
c49e27d5d0 r17272: move the callback stuff into a substructure
metze
2007-10-10 14:10:26 -05:00
Stefan Metzmacher
5b26cbc342 r17270: split the logic of saying this auth backend wants to handle this
request from the password checking. This will help to make
the password checking hook async later

metze
2007-10-10 14:10:25 -05:00
Stefan Metzmacher
14ecc56343 r17268: change the smb2 session setup to use the new gensec_update_send/recv() api
metze
2007-10-10 14:10:25 -05:00
Stefan Metzmacher
d5638a4faf r17267: - add an async interface for gensec_update() to the public gensec api
- note this is still uses the sync update() hook of the gensec modules
  but it allows me to fix the callers first

Later auth_check_password() will also get an async version,
so that we can later implement an async version of auth_winbind
using async IRPC to the winbind task.

metze
2007-10-10 14:10:25 -05:00
Stefan Metzmacher
e4c28001d3 r17265: some reformatting
metze
2007-10-10 14:10:25 -05:00
Stefan Metzmacher
b091d182fe r17264: - remove unused includes from talloc
- check explicit check for varargs.h as fallback from stdarg.h
  and fail the build if both are not present

metze
2007-10-10 14:10:25 -05:00
Stefan Metzmacher
195754b169 r17263: export talloc_free_children()
metze
2007-10-10 14:10:24 -05:00
Stefan Metzmacher
196803a6c6 r17257: make the size_t is to small error more verbose
(hopefully nobody will ever see this:-)

metze
2007-10-10 14:10:24 -05:00
Stefan Metzmacher
d8952f00c7 r17256: fix 2 crash bugs, which are introduced by making parameters
ref pointers!

I'm sure there're more places and more care is needed when idl files
are changed. Hopefully testing against windows in the build farm
find such bugs in future...

Why is in the client library this no more possible:

NTSTATUS foo([in,out,ref] uint8 *foo);

and then just

r.in.foo = &foo;
status = dcerpc_foo(p, mem_ctx, &r);

and r.out.foo will set to r.in.foo via pidl magic,
that worked some time ago...

metze
2007-10-10 14:10:24 -05:00
Andrew Tridgell
7b05c007ea r17255: fixed BENCH-NBENCH for new smb_raw_find_first() syntax 2007-10-10 14:10:24 -05:00
Stefan Metzmacher
b5c06d5b4c r17253: add configure checks for writev/readv to see how portable they're
metze
2007-10-10 14:10:24 -05:00
Stefan Metzmacher
9190d134c9 r17251: - split out the starttls into its own function
- give an operations error when tls is already on the socket

metze
2007-10-10 14:10:23 -05:00
Andrew Bartlett
dc4500eb90 r17250: Fix comment, the Samba3 winbind protocol uses the host byte order here.
Andrew Bartlett
2007-10-10 14:10:23 -05:00
Stefan Metzmacher
7b136ddf48 r17243: some svcctl idl fixes from <andrzej.hajda@wp.pl>
metze
2007-10-10 14:10:23 -05:00
Stefan Metzmacher
ed5ffc7bfc r17241: substitude @datarootdir@ with old autoconf versions:-)
metze
2007-10-10 14:10:23 -05:00
Stefan Metzmacher
0b16350fa2 r17240: move extended operations to a new file
metze
2007-10-10 14:10:23 -05:00
Jelmer Vernooij
c575dee5c7 r17238: Add datarootdir (required for newer autoconf versions) 2007-10-10 14:10:22 -05:00
Stefan Metzmacher
10cb9c07ac r17237: - keep pointer to the different sockets
- we need this to later:
  - to disallow a StartTLS when TLS is already in use
  - to place the TLS socket between the raw and sasl socket
    when we had a sasl bind before the StartTLS
  - and rfc4513 says that the server may allow to remove the TLS from
    the tcp connection again and reuse raw tcp
  - and also a 2nd sasl bind should replace the old sasl socket

metze
2007-10-10 14:10:22 -05:00
Stefan Metzmacher
f2196bf9b6 r17230: don't overwrite the error with NT_STATUS_NO_MEMORY
metze
2007-10-10 14:10:22 -05:00
Stefan Metzmacher
3711b968ad r17227: don't call a function which takes some nonoptional args
with NULL.

metze
2007-10-10 14:10:22 -05:00
Stefan Metzmacher
e8db1fb558 r17226: add some comments about ldap binds and pending requests
metze
2007-10-10 14:10:22 -05:00
Andrew Bartlett
4827a6b171 r17225: Fix the build by fixing the spelling of START-TLS.
Andrew Bartlett
2007-10-10 14:10:21 -05:00
Andrew Bartlett
9bd66d4c95 r17224: Accept the start-tls extended request. Getting OpenLDAP to recognise
our certificate, and proceed with the connection is left as an
exercise for the reader...

Andrew Bartlett
2007-10-10 14:10:21 -05:00
Andrew Bartlett
68ddc4921f r17223: In some protocols it is not possible to negoitate off some features,
without the agreement of the peer.  This can cause problems, because
one side things sealing is disabled, while the other thinks it is
enabled.

Andrew Bartlett
2007-10-10 14:10:20 -05:00
Andrew Bartlett
003e2ab93c r17222: Change the function prototypes for the GENSEc and TLS socket creation
routines to return an NTSTATUS.  This should help track down errors.

Use a bit of talloc_steal and talloc_unlink to get the real socket to
be a child of the GENSEC or TLS socket.

Always return a new socket, even for the 'pass-though' case.

Andrew Bartlett
2007-10-10 14:10:20 -05:00
Andrew Bartlett
7c5a25a423 r17221: Add some integer wrap parinoia to data_blob_append().
Andrew Bartlett
2007-10-10 14:10:20 -05:00
Andrew Bartlett
83dd22accf r17215: Prepare the SASL socket before actually settting it. This allows
errors to be reported corectly, rather than just dropping the socket.

Andrew Bartlett
2007-10-10 14:10:19 -05:00
Simo Sorce
e0af5cf51d r17210: I wonder how I missed this, build farm caught it. 2007-10-10 14:10:19 -05:00
Simo Sorce
15b8fafb99 r17209: Add dependency over the new share configuration module into smbd
Should fix some build farm machine
2007-10-10 14:10:19 -05:00
Simo Sorce
d4c2b89350 r17208: Add a away to test the ldb module.
Actually you can't test both classic and ldb together, but you can replace the standard
script/tests/mktestsetup.sh file with this one and run make test to see share_ldb in action
2007-10-10 14:10:19 -05:00
Simo Sorce
df1da91d4f r17207: Add the ldb based shares configuration module 2007-10-10 14:10:19 -05:00