1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-18 17:57:55 +03:00

8452 Commits

Author SHA1 Message Date
Jeremy Allison
82b573678d Fixed the AFP_Resource:$DATA filename creation bug.
Jeremy.
(This used to be commit b6c466e8800c03d154381c02a3893f338430b82d)
2002-04-17 21:59:55 +00:00
Jeremy Allison
37d67c3345 libsmb/cli_netlogon.c: Fixed confusing debug messages.
param/loadparm.c: Added missing debugs that would have helped me find a misconfiguration
I lost a day on....
Jeremy.
(This used to be commit 6e9572379784c77f3c4e6a95e18a9641880a8ffc)
2002-04-17 17:34:38 +00:00
Jeremy Allison
5e2547e4db Fix unused warnings with deleted code.
Jeremy.
(This used to be commit 255c68856eeccf75b152e15be66130175907188c)
2002-04-17 16:58:12 +00:00
Tim Potter
67d99a88c4 Fixed command line argument parsing.
(This used to be commit 28c1fae4d89399ec4d15bfb3ccd17d8b5b0495fc)
2002-04-17 06:43:47 +00:00
Andrew Tridgell
0e6ac42b4d disabled the traversal of the brlock database at startup and
shutdown. I have just helped debug a very large Solaris server where
the traversal was taking so long that the clients timed out, created a
new process which in turn did a traversal!

we will need to find some other way of doing a brlock.tdb cleanup (if
its even needed at all)
(This used to be commit 2728d131356313db0d6341b0a01d6625d13367c3)
2002-04-17 05:43:05 +00:00
Andrew Tridgell
e35ac78c49 make suure we get the return value from the pull_*() functions right
for both null terminated and buffer length terminated strings
(This used to be commit e8fbf853e0eed61bb7405be731f18fb2426f8dc4)
2002-04-17 02:37:46 +00:00
Simo Sorce
1416106736 sync with 2.2
(This used to be commit 18d5ffd835165d2570443c979d9157e2388b37d8)
2002-04-16 22:56:08 +00:00
Andrew Tridgell
7c0301d100 stricter conditions on termination in strings
this was a very nasty bug with filename corruption and NT4 clients. The
exact termination conditions are quite critical ...
(This used to be commit a538efe7d00e7a61df194ca1c22e0583dcbb7a4a)
2002-04-16 22:55:39 +00:00
Simo Sorce
a32940d53e Fix incorrect zpadlen handling in fmtfp.
Thanks to Ollie Oldham <ollie.oldham@metro-optix.com> for spotting it.
few mods to make it easier to compile the tests.
addedd the "Ollie" test to the floating point ones.
(This used to be commit 415f9d92bc0a37d38b81a653a4b4c5f0fefa2fe8)
2002-04-16 22:38:04 +00:00
Gerald Carter
eebe9749e0 few fixes and regenerate
(This used to be commit 0ffda9ffad2073a5995ce34fde5c3b5fc4859b90)
2002-04-16 16:52:20 +00:00
Gerald Carter
1d49e9bc71 merges from SAMBA_2_2
(This used to be commit 91929afbb0cad422cc6d05f9a10ba5c3d797d779)
2002-04-16 16:49:08 +00:00
Jean-François Micouleau
7a661ac63c we did not initialise global_myname and global_myworkgroup which lead to
duplicate entries in secrets.tdb and false SID generated.

took me *hours* to understand.

	J.F.
(This used to be commit bfc3a25b776a5a66e1bd0e2c60c101cea87ef4d5)
2002-04-16 15:49:24 +00:00
Andrew Tridgell
4fd802c444 fixed a problem with the smb_buf() macro on some compilers
(This used to be commit 66d6d4810ab7b0a1bf2039c387938aad69e01569)
2002-04-16 13:10:54 +00:00
Andrew Tridgell
f70836df9e ignore a few more files
(This used to be commit 1c92fab4050f21b4c5cc962e0b80b5c551b24745)
2002-04-16 12:27:54 +00:00
Andrew Tridgell
bb8dbb7732 reran configure after adding a test for strnlen()
(This used to be commit 78ead781261d397ace22640e3820d0f4fe17722c)
2002-04-16 12:24:42 +00:00
Andrew Tridgell
b66932e1a5 fixed the handling of STR_TERMINATE
(This used to be commit dbc6b137a83cf9fe0558625dd32f92f15296fba6)
2002-04-16 12:07:12 +00:00
Andrew Tridgell
02f84c6bd0 i forgot to commit these parts of the string handling patch earlier. Sorry.
(This used to be commit bac0093a9713416b1679d1bc167b70f02b06ef78)
2002-04-16 10:40:23 +00:00
Andrew Tridgell
e7b729e0d9 make sure we don't walk past the end of the current SMB buffer when
pulling a string
this might explain a serious filename corruption bug that Quantum QA spotted
(This used to be commit a877eae24becad9e0cd5b33ffe0916a20d5ba227)
2002-04-16 06:15:28 +00:00
Andrew Tridgell
a95d731fa4 make sure that we leave the tree unused after disconnecting
(This used to be commit e75e4ad7d3af5beee48b3001fd904eede8df033f)
2002-04-15 23:48:39 +00:00
Tim Potter
37e4471dea Stubs for connect, domain, user, group and alias policy objects.
Wrote samr connect fn.
(This used to be commit f2155aa3f4608b14777092002c39358b816dbea5)
2002-04-15 23:33:09 +00:00
Gerald Carter
4d917cd8f5 merge from SAMBA_2_2
(This used to be commit fedc11cab16dbecfdae858fc48d629b9172c0fb8)
2002-04-15 13:35:18 +00:00
Andrew Bartlett
6d239fc97f Another patch from jelmer:
Doco for pdbedit and (ugly, but the best we could come up with) fix
for compiling pdbedit on some non-gcc compilers.

Andrew Bartlett
(This used to be commit 80adf1dbb56cf8bdbfbcc2c8c7b670c0a23c97f8)
2002-04-15 08:50:36 +00:00
Tim Potter
b84cce809b Skeleton for SAMR module.
(This used to be commit 70bd1a0f94412236bf6603f16947336cb75c6415)
2002-04-15 07:29:47 +00:00
Andrew Tridgell
3fca495f8c this fixes the displaying of free disk space for DOS6 clients. Win2000
changes its behaviour based on the negotiated protocol for the
SMBdskattr SMB
(This used to be commit b693917530d649e22a677bd3bb1adedbfdd89bba)
2002-04-15 06:57:17 +00:00
Andrew Tridgell
b5c61023ff better handling of DOS LANMAN2.1 protocol
(This used to be commit 7f923d738b94eef042b21e4d0143861755620d91)
2002-04-15 06:56:01 +00:00
Andrew Tridgell
f6929068a1 by using a prompter function we can avoid the bug in the MIT kerberos
libraries with handling blank passwords.
(This used to be commit 59d755ffb57c322a104ff8f52819956cafff1bac)
2002-04-15 04:55:37 +00:00
Tim Potter
1667a82106 Merge of print server permission handling fixes from HEAD.
Unit tests rock!
(This used to be commit bc673c42045ceb46d9569bc4d88f9c64897fc85a)
2002-04-15 04:07:13 +00:00
Tim Potter
36514b65ee Fixed incorrect debug.
(This used to be commit 3b6df44ddc80d728c01511529ccb05c1ba3d414b)
2002-04-15 01:55:57 +00:00
Tim Potter
4a5225bf64 Added hex values as comments for the standard access rights.
(This used to be commit 00511ae2b4bc0ef3bfda89cc0ae3e1fba092b6d6)
2002-04-15 01:11:40 +00:00
Tim Potter
9aabbc564f Rename new_policy_hnd_object() to new_spoolss_policy_hnd_object()
(This used to be commit 4bf6a9830acde47994975dffd578454ebb75e45a)
2002-04-14 23:42:54 +00:00
Tim Potter
0c01601d31 Explicitly return a list in py_ntstatus_tuple() and py_werror_typle(). Not
sure whether these should really be tuples or lists.

In open_pipe_creds() raise PyExc_RuntimeError exceptions if the pipe
connect function returns an error.
(This used to be commit 45cb1fed490d1fdafc5b63f2f5a33dfe5b334972)
2002-04-14 23:39:02 +00:00
Tim Potter
f6da697708 Call PyErr_SetString instead of fprintf to stderr.
Don't clean up talloc and cli_state on close printer.  They will be
destroyed in the handle dealloc function.
(This used to be commit 4114fe5996f84dfd14855ffdf666e065446607b4)
2002-04-14 23:36:01 +00:00
Tim Potter
3540c42bf4 Shutdown cli_state in the dealloc function. This happens automatically
when a handle object falls out of scope.
(This used to be commit 39546dd241b36d5e7b8e239525a13b91e4e9db80)
2002-04-14 23:33:31 +00:00
Tim Potter
8d680f8796 Added enumerate trusted domains.
(This used to be commit 3a11ce31ca3eed23f3bf82c46b2ebd2423be737d)
2002-04-14 12:26:09 +00:00
Volker Lendecke
26152050bb Merge from 2_2.
Volker
(This used to be commit 8973a01f5efa547ed356e27fe1660da732b24cdd)
2002-04-14 12:14:52 +00:00
Tim Potter
d0386372b2 The cli_lsa_lookup_{names,sids} functions were returning useless
information when one or more of the names/sids being queried were not
resolvable.  We now return a list the same length as the parameters passed
instead of an array of just the resolvable names/sids.
(This used to be commit 245468dbabb7c849ce423cc3cb586fa913d0adfe)
2002-04-14 11:21:25 +00:00
Tim Potter
3a139656a3 Added error string for STATUS_SOME_UNMAPPED
(This used to be commit f736e115c00e02e3f131ccceb7769559dd4d908a)
2002-04-14 11:13:49 +00:00
Tim Potter
57630be652 Added a status code for lsa_lookup_{sids,names} returning the fact that
only some of the entries could be resolved.
(This used to be commit 0722e71d1ef59a72567f383e3572546ab78e9e6a)
2002-04-14 10:50:32 +00:00
Andrew Bartlett
cd58107e6e Extra file for the tdb search code (linked list definition).
Andrew Bartlett
(This used to be commit c3312006009f5b312b285e3e679d01719012f29d)
2002-04-14 09:45:09 +00:00
Andrew Bartlett
07e6ff5fcf Partly based on the work by mimir (Rafal Szczesniak
<mimir@diament.ists.pwr.wroc.pl>) this patch allows samba to correctly
enumerate its trusted domains - by exaimining the keys in the secrets.tdb file.

This patch has been tested with both NT4 and rpcclient/wbinfo, and adds
some extra functionality to talloc and rpc_parse to allow it to deal with
already unicode strings.

Finally, this cleans up some const warnings that were in net_rpc.c by pushing
another dash of const into the rpc client code.

Andrew Bartlett
(This used to be commit 0bdd94cb992b40942aaf2e5e0efd2868b4686296)
2002-04-14 09:44:16 +00:00
Tim Potter
06f1577930 New file to hold common prototypes.
(This used to be commit d5862891979678c4defb3e33791edca1f1f8c3e4)
2002-04-14 09:04:45 +00:00
Tim Potter
562393fc85 Moved security descriptor routines into their own file.
(This used to be commit 8e0457f8aa7b5ecababcdec4dfbc328d11513192)
2002-04-14 09:04:12 +00:00
Tim Potter
cc8dce0deb Moved function prototypes to py_common_proto.h
(This used to be commit f006bcf8e50e44b955678356039a6d6a7e16ab20)
2002-04-14 09:03:05 +00:00
Tim Potter
f143cb6144 Added copyright.
Added lookup_names() and lookup_sids() functions.
(This used to be commit 2d2c925014374605b29e052729e959c0fd690586)
2002-04-14 09:00:13 +00:00
Andrew Tridgell
a99e810bda it looks like it is possible for a w2k client to send a spnego auth without sending the negotiate - try to cope
(This used to be commit 95278aa41f654108d9d20cd0096a34caf175d32b)
2002-04-14 09:00:05 +00:00
Andrew Tridgell
24065c0bf5 win2000 does not check the permissions on the share directory on
tconx, so win2000 clients don't expect a permissions error in
tconx. We now match this behaviour, by only checking that the
directory exists during tconx and relying on the permissions on other
calls to protect directories
(This used to be commit 4fc476686476da31cc2b45badb05cb0765259f98)
2002-04-14 06:24:17 +00:00
Andrew Tridgell
a83a0ac9c5 pull_username() is a local function
(This used to be commit fbf154bcfb68b90eb43ada9de317c93f43711608)
2002-04-14 05:51:13 +00:00
Andrew Tridgell
58c7f38368 hanle the case where the win2000 username is completely different from
the pre-win2000 username
(This used to be commit aa139ba507e4b898377fdfc9b27f7febf029d5a4)
2002-04-14 05:46:23 +00:00
Andrew Tridgell
35bc06d35c modified the ADS backend to accept either the long or short versions
of long usernames (win2000 usernames can be longer than 20 characters)
(This used to be commit 0719e756f60950b9ec04450fda5cc3776752e9a9)
2002-04-14 05:14:50 +00:00
Tim Potter
c4e49dee7a Fixed debugs.
(This used to be commit 6d9336f3b9b205e5916424ee844658b445439fdb)
2002-04-14 04:58:49 +00:00