1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
Commit Graph

4838 Commits

Author SHA1 Message Date
Gerald Carter
3ab50e648d sync this function with 2.2 (single check for NULL parameter) 0001-01-01 00:00:00 +00:00
Jeremy Allison
54ea00fa87 Removed unused (and potentially crash-causing) free function.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
0dc9227156 add an ignore on proto.h 0001-01-01 00:00:00 +00:00
Andrew Tridgell
8a37df73ec auto-build proto.h if its not there, but don't make it depend
on anything. Delete proto.h from CVS
0001-01-01 00:00:00 +00:00
Tim Potter
465994cfbc Cleanup of cli_lsa_enum_trust_dom(). talloc() doesn't like attempts to
allocate 0 bytes.
0001-01-01 00:00:00 +00:00
Tim Potter
5f4889beb9 Spelling fix. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
7a96ca313e the BAD_PTR idea in talloc.h is actually a bad idea - it means callers have no way of telling if the call really failed 0001-01-01 00:00:00 +00:00
Tim Potter
f179e0ff61 Use cli_read_one() for reading DCE/RPC reply fragments. We need to check
for and ignore ERRmoredata errors as the client library doesn't support
32-bit error messages.

Added some annotations for the RPC pipe code to make it a bit clearer
maybe.
0001-01-01 00:00:00 +00:00
Tim Potter
9e074bc2bf Merged cli_read_one() function for reading DCE/RPC reply fragments. 0001-01-01 00:00:00 +00:00
Jeremy Allison
0187cd6aef Andrew - please look this over. I've fixed a long standing (maybe 4-5
years old) bug when chainging a sessionsetup_and_X and tcon together.
The wrong username was being entered into the tdb, even though the
correct user was used for accessing files. This is related to the fact
that authorise_login() is not used for sessionsetup, but only for tcon
auths.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
bbfbe03cc6 added some comments to make the cli read code clearer 0001-01-01 00:00:00 +00:00
Simo Sorce
72b749ec89 use next_token instead of strtok.
single elemnts of list cannot be longer than a pstring (1024B now)
0001-01-01 00:00:00 +00:00
Jeremy Allison
2d1c6d1f6b Ok - I misspoke.... mmap returns MAP_FAILED, not neccessarily -1 :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b77c8b536d When mmap fails it returns -1 *NOT NULL*.
This got regressed somehow.....
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
6b4a70cd82 Merging Gerry's spoolss changes.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
674ee2f1d1 next_token() was supposed to be a reentrant replacement for strtok(),
but the code suffered from bitrot and is not now reentrant. That means
we can get bizarre behaviour
i've fixed this by making next_token() reentrant and creating a
next_token_nr() that is a small non-reentrant wrapper for those lumps
of code (mostly smbclient) that have come to rely on the non-reentrant
behaviour
0001-01-01 00:00:00 +00:00
Andrew Tridgell
86613493a9 Added STR_NOALIGN flags to clistr and srvstr fns. Yes, NT actually does
send unaligned unicode strings sometimes!
Fixed our handling of the workgroup name tacked on the end of the
NT1 negprot response (a unaligned unicode)
fixed a couple of places where we should be using the message_end fns instead
of pre-calculated buffer lengths
0001-01-01 00:00:00 +00:00
Jeremy Allison
244aec8ea6 Following info from TAKAHASHI Motonobu <monyo@samba.gr.jp>,
Samba Users Group Japan, ensure that we don't use dos_to_unix(xx,True),
but always use dos_to_unix(xx,False) to prevent overwriting.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
05a2911403 Fixed W2K SP2 joining a Samba PDC hosted domain.
Jermey.
0001-01-01 00:00:00 +00:00
Jeremy Allison
87f647715d Warning fix from Andrew Bartlett.
Jeremy.
0001-01-01 00:00:00 +00:00
Simo Sorce
e1572f85d6 initial support for paramter type P_LIST
it will avoid problems with lists being longer than 1024 bytes
just now only ip list parameters have been converted to the new type
(hosts allow, hosts deny, ssl hosts, ssl hosts resign)
0001-01-01 00:00:00 +00:00
Tim Potter
d0b37d1a62 make proto 0001-01-01 00:00:00 +00:00
Tim Potter
2162454d9e Added cli_samr_delete_dom_user() function. 0001-01-01 00:00:00 +00:00
Tim Potter
aa9024c959 Added delete domain user rpcclient command. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
15b17a80db added a close-share smbcontrol message that forcibly closes a share in smbd (to allow unmount) 0001-01-01 00:00:00 +00:00
Tim Potter
8e982941d8 Merge from appliance branch:
Don't call find_domain_from_name() from winbindd_kill_connections() as
you get stuck in an infinite loop!
0001-01-01 00:00:00 +00:00
Jeremy Allison
0fe11c329f INFO_24 sometimes has a 2 byte length, sometimes doesn't. Safer to not
depend on it...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
5b1245f803 Only try and open a directory if we get EISDIR.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
2c2fc85136 Extra debug in open.c, fix for bad debug message in reply.c
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
d05577c332 Fixed typo in debug message. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
fd0d729ce0 added a torture target for building all torture progs. Fixed a typo in locktest 0001-01-01 00:00:00 +00:00
Andrew Tridgell
dd12c47645 moved all our torture code to a separate directory 0001-01-01 00:00:00 +00:00
Andrew Tridgell
a4ef84e1a0 torture code is moving to its own directory 0001-01-01 00:00:00 +00:00
Jeremy Allison
66f959e0ff rpc_server/srv_srvsvc_nt.c: Don't test an uint32 for < 0.
utils/smbcacls.c: Set enum correctly.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
4897cfcf85 Added $(PROFILE_OBJ) to winbindd objects. 0001-01-01 00:00:00 +00:00
Jeremy Allison
e033f75891 Set support for info levels...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
43bf9b2c7a Best-effort so far implementation of new W2K info levels.
An-embrace-and-extending we will go...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9297ae69a7 New info level tester.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
0fcf200633 Fix for assert fail - left over when moved to dynamic allocation.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
db5b82e53a Added patches to remove Linux specific XFS ACLs. These are now handled by the
generic Linux ACL code.
rpc_server/srv_samr_nt.c: Don't delete a policy handle before it's created.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
70194b194e Added "Jim McDonough" <jmcd@us.ibm.com> patches for directory support
for Win9x.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
3d4a3bfacd added a oplock break handler hook to the client code, this allows for more complete testing of oplocks from smbtorture and would also be essential if a client app ever really did want to use oplocks properly 0001-01-01 00:00:00 +00:00
Tim Potter
720fea5360 Removed silly Get_Hostbyname() wrapper as DNS names are case-insensitive
and the use of this function only increased timeouts when Samba queries
a broken DNS server.
0001-01-01 00:00:00 +00:00
Jeremy Allison
5690ec77c8 Modified version of Jim's 0x27 and 0x28 Win9x Secdesc patch.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
bc366f3153 Jim McDonough's parse patches for Win9x get SD calls.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
a600c96e59 Fixed typo spotted by "Jim McDonough" <jmcd@us.ibm.com>....
Jeremy.
0001-01-01 00:00:00 +00:00
Simo Sorce
53803b0087 Be sure to not use strlen with NULL pointer. 0001-01-01 00:00:00 +00:00
Tim Potter
402639926f Prototype update. 0001-01-01 00:00:00 +00:00
Tim Potter
66e62245ea Added a unix error code for NT_STATUS_PATH_NOT_COVERED. 0001-01-01 00:00:00 +00:00
Tim Potter
d2eafa7483 Add password length field to SAM_USER_INFO24 structure and fix init
and parse function.
0001-01-01 00:00:00 +00:00