1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
Commit Graph

4092 Commits

Author SHA1 Message Date
Tim Potter
481e80afc4 r6322: Fix compile warning for struct sockaddr.
(This used to be commit 9c45f8d7bc)
2007-10-10 13:11:31 -05:00
Andrew Tridgell
f06e39e308 r6321: added IDL and test suite for NBT dgram 'sam logon' request (sent by
clients when a user tries to login)
(This used to be commit 08ded62156)
2007-10-10 13:11:31 -05:00
Andrew Tridgell
b6fd09d805 r6320: some minor netlogon datagram fixes - NT4 can now join a Samba4 domain without
Samba3 nmbd
(This used to be commit 4507bdc339)
2007-10-10 13:11:31 -05:00
Andrew Bartlett
b3221032d2 r6315: Allow sane session setup behaviour on SPNEGO regarding VUIDs.
Andrew Bartlett
(This used to be commit 6e2327ee9b)
2007-10-10 13:11:31 -05:00
Andrew Bartlett
1372e938fc r6314: A more complete RAW-CONTEXT test. This Samba4 currently fails, but it
now tests areas in extended security handling (SPNEGO) that are just
plain odd...

Andrew Bartlett
(This used to be commit d8d63e8c79)
2007-10-10 13:11:31 -05:00
Andrew Bartlett
9782a22fa9 r6313: Much better handling of LogoffAndX when the vuid is invalid (ie, don't
segfault).  This should fix another of the issues that Richard came up
with last week.

Andrew Bartlett
(This used to be commit c2c8b6abf3)
2007-10-10 13:11:30 -05:00
Andrew Bartlett
ab06749443 r6312: Metze reminds me this header is no longer required.
Andrew Bartlett
(This used to be commit c67a9370c4)
2007-10-10 13:11:30 -05:00
Andrew Bartlett
f3e3f3aab6 r6310: Rename password.c to session.c, and remove the linked list of all
outstanding sessions, as we don't use it.

Andrew Bartlett
(This used to be commit 0cbd11a0f2)
2007-10-10 13:11:30 -05:00
Andrew Bartlett
b1dba5e7fb r6309: Remove this file it is empty and unreferenced. (In preperation for
renaming password.c over the top, as it deals with sessions, not
passwords).

Andrew Bartlett
(This used to be commit 0bba8da460)
2007-10-10 13:11:30 -05:00
Stefan Metzmacher
b95914cd82 r6295: - add idl for EcDoRpc from the exchange_emsmdb interface
this one uses a obfuscation(0xA5) subcontext

this is taken from the openchange.org project

metze
(This used to be commit 4632b37d0c)
2007-10-10 13:11:30 -05:00
Stefan Metzmacher
5eff721651 r6294: - add obfuscate support, which is used in MAPI rpc's, (the ^= 0xA5 stuff),
based on a patch from j.kerihuel@openchange.org

- remove unused $ndr_flags argument for the ParseCompression*Start() function's

metze
(This used to be commit 27ccdd6182)
2007-10-10 13:11:30 -05:00
Stefan Metzmacher
0af9ba9179 r6293: fix formating
metze
(This used to be commit f5424d2dad)
2007-10-10 13:11:29 -05:00
Andrew Tridgell
b708e87a63 r6288: the nbt dgram server now responds to GETDC requests. It works with our
test suite, but doesn't yet seem to satisfy a nt4 client. I'm
investigating.
(This used to be commit 406217262d)
2007-10-10 13:11:29 -05:00
Andrew Tridgell
e7dd6a1291 r6287: sorted out a small but surprisingly tricky dependency problem with the
ndr code for handling sids and security descriptors now that we have a
sid in the nbt IDL
(This used to be commit f8e77fcdea)
2007-10-10 13:11:29 -05:00
Andrew Bartlett
fc1b6bae23 r6286: Add back metze's test of setting a trust password to ''. I removed
this because I don't want our torture suite to leave behind accounts
with known passwords if it is stopped in the wrong place.  It is now
run behind the -X (dangerous) wrapper.

Andrew Bartlett
(This used to be commit 057a81d81e)
2007-10-10 13:11:29 -05:00
Andrew Bartlett
3ae4d872f5 r6272: For 'programmed' use of an anonymous account, we should use
cli_credentials_set_conf(), not cli_credentials_guess().

Also, clarify why for particular flags, we don't do a DCERPC-level
authentication.

Andrew Bartlett
(This used to be commit 838925761d)
2007-10-10 13:11:29 -05:00
Andrew Bartlett
6d1ae6d35a r6271: Don't zero the cli_credentials structure - instead allow valgrind to
track the use of un-initialised values.

This change will require a recompile from clean, as the enum
describing the status of each element now has a default of
CRED_UNINITIALISED.

Andrew Bartlett
(This used to be commit 83c2eb806d)
2007-10-10 13:11:29 -05:00
Andrew Bartlett
20841a25ad r6270: Move the VUID handling to a IDR tree. This should avoid O(n)
behaviour on session setups, and because we no longer need do deal
with the linked list as much, the code is much simpiler too.

We may be able to compleatly remove the tid and vuid linked lists, but
I need to check.

This patch also tries to clean up the VUID handling and session setups
in general.  To avoid security issues, we now have a distinction
between VUIDs allocated for the session setup (to tie togeather the
multiple round trips) and those used after authentication.

Andrew Bartlett
(This used to be commit 3e5775146d)
2007-10-10 13:11:29 -05:00
Andrew Tridgell
ce7eb41930 r6248: added parsing of type 10 UAS announce netlogon packets
(This used to be commit d7e6e395ce)
2007-10-10 13:11:28 -05:00
Andrew Tridgell
b0ca8ed455 r6247: added the server side code for receiving mailslot requests, and
parsing incoming netlogon requests. No replies are sent yet.
(This used to be commit 3b34df6a67)
2007-10-10 13:11:28 -05:00
Andrew Tridgell
866c62f26d r6246: stop waiting when we get a reply
(This used to be commit 8b9a5d8336)
2007-10-10 13:11:28 -05:00
Andrew Tridgell
f83e6ded9d r6245: receive and parse the GETDC response in the NBT-DGRAM test. The test
now tries to bind to port 138 if possible, so if you run it as root
and smbd/nmbd is not running then it works against windows servers
(This used to be commit 52ccdb79bc)
2007-10-10 13:11:28 -05:00
Jeremy Allison
e3775ee850 r6238: Ensure if realloc fails on an internal
tdb we fail gracefully.
Jeremy.
(This used to be commit d69f7c0546)
2007-10-10 13:11:28 -05:00
Richard Sharpe
c46c6e23ba r6229: Back out these changes ...
(This used to be commit 321fbae512)
2007-10-10 13:11:28 -05:00
Andrew Tridgell
7c6c366150 r6223: added a bit more datagram infrastructure and the beginnings of a test
suite. The NBT-DGRAM test does a UDP/138 netlogon request, to which a
windows server sends a reply, but the windows server sends the reply
to the wrong port (it always sends to 138), so the test suite doesn't
see it.
(This used to be commit a7634625db)
2007-10-10 13:11:27 -05:00
Andrew Tridgell
567a74690c r6222: fixed the socket wrapper code for getsockname()
(This used to be commit 11e245a3f0)
2007-10-10 13:11:27 -05:00
Richard Sharpe
66a3750b14 r6219: This change allows us to fall back to authenticating without
DCERPC_SCHANNEL_128 if we fail. Thus, it allows us to work with Windows
NT DCs ...
(This used to be commit 3034b22670)
2007-10-10 13:11:27 -05:00
Tim Potter
86122d78e5 r6215: Add test for LookupNames. Fix CreateUser2 test.
(This used to be commit e3a69a7322)
2007-10-10 13:11:27 -05:00
Tim Potter
b796dc4077 r6214: Fix typo in DomainHandle.OpenUser() function.
Implement DomainHandle.LookupNames() function.

UserHandle.DeleteUser() closes the handle so don't try and close it
when the GC destroys the class instance.
(This used to be commit 57680163bc)
2007-10-10 13:11:27 -05:00
Tim Potter
f0641cae5d r6213: Add %array_functions for struct samr_String so we can create and
access arrays of them.
(This used to be commit fc2b73d4d7)
2007-10-10 13:11:26 -05:00
Tim Potter
3b64edcfff r6212: Treat uint8 and int8's as integers instead of chars. Swig maps a char
to a string when we really want an integer.
(This used to be commit 86c62b92e8)
2007-10-10 13:11:26 -05:00
Tim Potter
2543885bf3 r6211: Use cli_credentials_set_{domain,username,password}() to fill in
command line arguments for credentials typemap.  Neat!
(This used to be commit a3e7d71463)
2007-10-10 13:11:26 -05:00
Tim Potter
d77e7cd774 r6210: Call cli_credentials_set_conf() when initialising credentials in
cli_credentials typemap.
(This used to be commit 1c88e71ec6)
2007-10-10 13:11:26 -05:00
Andrew Tridgell
769070d502 r6209: started added code to support mailslot requests over UDP/138
datagrams. This adds the IDL to parse mailslot packets, plus mailslot
dispatch and listener registration code.

mailslots are used for UDP/138 browse and netlogon packets
(This used to be commit f20e7e5200)
2007-10-10 13:11:26 -05:00
Tim Potter
e1e8928840 r6208: Add cli_credentials support for swig wrappers. For the moment it
only does anonymous connections.
(This used to be commit b09a472353)
2007-10-10 13:11:26 -05:00
Stefan Metzmacher
cf52d62ec9 r6207: - clean up source topdir
- move provision stuff to setup/
- remove unused scripts

metze
(This used to be commit c35887ca64)
2007-10-10 13:11:26 -05:00
Stefan Metzmacher
f9b3a8d3b9 r6206: go baack 10 revisions to get DatabaseDeltas, this shows that the bdc only
need one call to get in sync again (except something like NT_STATUS_MORE_ENTRIES is returned)

also the pdc only need to know the current state values

metze
(This used to be commit f4e12b3893)
2007-10-10 13:11:25 -05:00
Stefan Metzmacher
4baf0b01c4 r6197: fix for my last commit, I removed SPOOLSS_ARCHITECTURE, which was "Architecture"
(sorry richard:-)

disable lookup for DefaultSpoolDirectory until, I have fixed the parsing when WERR_MORE_DATA
is returned

metze
(This used to be commit d5993337b8)
2007-10-10 13:11:25 -05:00
Richard Sharpe
89f03dc4eb r6196: Make the comparisons consistent with in the same expression.
(This used to be commit 6f7337163e)
2007-10-10 13:11:25 -05:00
Richard Sharpe
d3911fa5d7 r6195: I think Metze meant SPOOLSS_ARCHITECTURE_NT_X86, but I could be wrong.
(This used to be commit 85c2b8b944)
2007-10-10 13:11:25 -05:00
Stefan Metzmacher
746bb14367 r6194: - fix some spoolss_*Form names and types
- fix GetPrinterData(), look inside the datablob

- add idl for RemoteFindFirstChangeNotify(), without meaning yet, just to not return a DCERPC_FAULT
  when receiving this request

metze
(This used to be commit 92f3d5bd9c)
2007-10-10 13:11:25 -05:00
Stefan Metzmacher
b46eb7aa17 r6193: we don't need to store the handle type here,
it's in handle->wire_handle.handle_type

metze
(This used to be commit 539286bc9f)
2007-10-10 13:11:25 -05:00
Stefan Metzmacher
32e6cf5e3f r6192: remove handle->destroy function pointer, this should be done by talloc destructors now
metze
(This used to be commit 862226f557)
2007-10-10 13:11:25 -05:00
Stefan Metzmacher
051206ff1e r6191: fix spoolss_Enum* push code
metze
(This used to be commit e66aa87f14)
2007-10-10 13:11:24 -05:00
Stefan Metzmacher
638104dd4c r6190: fix gensize on unions
metze
(This used to be commit 661e64e9ce)
2007-10-10 13:11:24 -05:00
Stefan Metzmacher
d2128c1249 r6189: move function to the right place
metze
(This used to be commit 08d22a07cf)
2007-10-10 13:11:24 -05:00
Stefan Metzmacher
fa27fa88da r6188: correct fix for rev 6182
we should start with an empty switch_list
in ndr_print as we do for ndr_pull/ndr_push

metze
(This used to be commit 848f553117)
2007-10-10 13:11:24 -05:00
Richard Sharpe
cf97980f31 r6187: 1. Make sure that we don't try to delete . and .. in a more portable way.
2. Also, don't try to delete directories.

I am not entirely happy with this patch, and the fact that there is a
define for HAVE_SYS_STAT_H suggests that there are some systems for which
stat will not be defined, which means that the patch is not entirely
portable.
(This used to be commit fe7ddad7d4)
2007-10-10 13:11:24 -05:00
Andrew Tridgell
6db5d09dba r6185: added LIBCLI_DGRAM to the list of libs to be built as part of LIBCLI
(This used to be commit 47e1452da0)
2007-10-10 13:11:24 -05:00
Andrew Tridgell
a47cb58c2f r6184: the beginnings of the libcli/dgram/ library, and the dgram
server. Currently just listens on port 138 and parses the packets
(using IDL like the rest of NBT). This allows me to develop the
structures and test with real packets
(This used to be commit 10d64a5253)
2007-10-10 13:11:24 -05:00