1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

5615 Commits

Author SHA1 Message Date
Andrew Tridgell
91b8a8d1d2 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
(This used to be commit 674ee2f1d12b0afc164a9e9072758fd1c5e54df7)
2001-06-21 09:10:42 +00:00
Andrew Tridgell
4ff011d88e 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
(This used to be commit 86613493a9b2e56523153486931d0bf8d39beb7a)
2001-06-21 05:38:28 +00:00
Jeremy Allison
fda0f83d75 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.
(This used to be commit 244aec8ea623fec828add3ab09c5003bf32bd5c7)
2001-06-21 01:01:15 +00:00
Jeremy Allison
3f1254bee1 Fixed W2K SP2 joining a Samba PDC hosted domain.
Jermey.
(This used to be commit 05a2911403a0710d994a618e72743205a3b0b87a)
2001-06-20 19:55:59 +00:00
Jeremy Allison
6fb063b4d5 Warning fix from Andrew Bartlett.
Jeremy.
(This used to be commit 87f647715d9fba9f8d25da0bde005a8d8858c2ae)
2001-06-20 17:49:38 +00:00
Simo Sorce
82970b833c 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)
(This used to be commit e1572f85d6247b760db10825b2fa688d7ed50bd3)
2001-06-20 16:54:32 +00:00
Tim Potter
567612291e make proto
(This used to be commit d0b37d1a623acce2ae4509aebda85ad1280dc8ac)
2001-06-20 07:13:55 +00:00
Tim Potter
401a017400 Added cli_samr_delete_dom_user() function.
(This used to be commit 2162454d9ea5a07892d0b5d7fc5abe7251b4fa98)
2001-06-20 07:08:28 +00:00
Tim Potter
5ebfcadf81 Added delete domain user rpcclient command.
(This used to be commit aa9024c95996dec67d76c5ed108cfba733dcdbfe)
2001-06-20 07:07:43 +00:00
Andrew Tridgell
fcda2645f0 added a close-share smbcontrol message that forcibly closes a share in smbd (to allow unmount)
(This used to be commit 15b17a80db605a55f667c95fb7e316877a441887)
2001-06-20 03:05:09 +00:00
Tim Potter
1c831ce6d8 Merge from appliance branch:
Don't call find_domain_from_name() from winbindd_kill_connections() as
you get stuck in an infinite loop!
(This used to be commit 8e982941d82b813197f2a9720149e60f629b5b20)
2001-06-20 01:52:40 +00:00
Jeremy Allison
9203386063 INFO_24 sometimes has a 2 byte length, sometimes doesn't. Safer to not
depend on it...
Jeremy.
(This used to be commit 0fe11c329f7b379299be65795031e4f1b14e0bec)
2001-06-19 19:56:06 +00:00
Jeremy Allison
d2846a3ea9 Only try and open a directory if we get EISDIR.
Jeremy.
(This used to be commit 5b1245f80357f585ef3b24704e5ef34ef71e232f)
2001-06-19 18:43:17 +00:00
Jeremy Allison
850a0e27e1 Extra debug in open.c, fix for bad debug message in reply.c
Jeremy.
(This used to be commit 2c2fc8513699eb39721ac1d65fa1fdaecde526a8)
2001-06-19 07:31:55 +00:00
Tim Potter
01877b38e4 Fixed typo.
(This used to be commit fdfd690538b02781e237831474d679307953ac8f)
2001-06-19 07:13:47 +00:00
Tim Potter
fd0f3dfd3c Fixed typo in debug message.
(This used to be commit d05577c33237a092bbc7ca21e68f3cef06b4ab3b)
2001-06-19 06:52:45 +00:00
Andrew Tridgell
32ce168a3f added a torture target for building all torture progs. Fixed a typo in locktest
(This used to be commit fd0d729ce0d9a057e867001c2ea52c8599713b28)
2001-06-19 02:06:12 +00:00
Andrew Tridgell
ffb63e4f8e moved all our torture code to a separate directory
(This used to be commit dd12c47645e2d0e832bc555492a6a8725a4495ee)
2001-06-19 02:02:19 +00:00
Andrew Tridgell
90b757f6bf torture code is moving to its own directory
(This used to be commit a4ef84e1a031042ca24fc3bea6d7311ab5976ac6)
2001-06-19 01:54:42 +00:00
Jeremy Allison
c1fbf761ce rpc_server/srv_srvsvc_nt.c: Don't test an uint32 for < 0.
utils/smbcacls.c: Set enum correctly.
Jeremy.
(This used to be commit 66f959e0ffb0cd385167a34c7db3f4959eaf1d7f)
2001-06-19 00:44:23 +00:00
Tim Potter
8a3782947a Added $(PROFILE_OBJ) to winbindd objects.
(This used to be commit 4897cfcf85340057f56d39128b0f0bdd72da2cf6)
2001-06-19 00:29:00 +00:00
Jeremy Allison
5f633c0e5e Set support for info levels...
Jeremy.
(This used to be commit e033f758914f6631545af17041b4e49c1ff885d9)
2001-06-19 00:11:12 +00:00
Jeremy Allison
c0be2fc029 Best-effort so far implementation of new W2K info levels.
An-embrace-and-extending we will go...
Jeremy.
(This used to be commit 43bf9b2c7aad15d65bac3a9c4f799be050a074cd)
2001-06-18 23:42:41 +00:00
Jeremy Allison
0c69d17653 New info level tester.
Jeremy.
(This used to be commit 9297ae69a7dde878bb4c696f90fbaceb46e18720)
2001-06-18 23:31:22 +00:00
Jeremy Allison
48a5c87240 Fix for assert fail - left over when moved to dynamic allocation.
Jeremy.
(This used to be commit 0fcf2006334bd41d4036e703a6725aaaf684e008)
2001-06-18 21:34:01 +00:00
Jeremy Allison
809c025878 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.
(This used to be commit db5b82e53a7061c4764d39ceb3df82e706aad42f)
2001-06-18 20:27:35 +00:00
Jeremy Allison
0417200fa9 Added "Jim McDonough" <jmcd@us.ibm.com> patches for directory support
for Win9x.
Jeremy.
(This used to be commit 70194b194e0ca4b0f4f9c1eece9176415f9bb928)
2001-06-18 17:52:58 +00:00
Andrew Tridgell
e324e21457 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
(This used to be commit 3d4a3bfacd9ef225aeaab801e5a216d12814b60a)
2001-06-18 08:26:15 +00:00
Tim Potter
7b01c627c6 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.
(This used to be commit 720fea53603b2f99153709e6717ca930ab60ca9f)
2001-06-18 05:42:18 +00:00
Tim Potter
672f554e76 Fixed typo in nmblookup example.
(This used to be commit d11c871fc5480e8ba3846e1de9a2f1834d535325)
2001-06-18 02:29:02 +00:00
Tim Potter
6903a4a2db Fixed typo in configure error message.
(This used to be commit 41fe64e70fdc99201ebbc76285897ab51af8c57d)
2001-06-18 02:27:33 +00:00
Jeremy Allison
af604fe769 Modified version of Jim's 0x27 and 0x28 Win9x Secdesc patch.
Jeremy.
(This used to be commit 5690ec77c87475f1fd2e854cda594eb996d6fd04)
2001-06-16 00:32:13 +00:00
Jeremy Allison
438e89b187 Jim McDonough's parse patches for Win9x get SD calls.
Jeremy.
(This used to be commit bc366f31537408380860906cc041de232b27b714)
2001-06-15 20:08:12 +00:00
Jeremy Allison
cf30d3bc91 Fixed typo spotted by "Jim McDonough" <jmcd@us.ibm.com>....
Jeremy.
(This used to be commit a600c96e596375bf27c15026c032944a066e7290)
2001-06-15 19:48:03 +00:00
Simo Sorce
9b70bdfc38 Be sure to not use strlen with NULL pointer.
(This used to be commit 53803b008717e8606b347ed8baab78121c6e9657)
2001-06-15 08:00:36 +00:00
Tim Potter
2b49ec356a Prototype update.
(This used to be commit 402639926f5d207ebefec296427dc3be0e979fe6)
2001-06-15 07:22:27 +00:00
Tim Potter
f339bbbc30 Added a unix error code for NT_STATUS_PATH_NOT_COVERED.
(This used to be commit 66e62245ea50fe7b996484ca919083eec2edfd14)
2001-06-15 07:13:12 +00:00
Tim Potter
b7e382bfb2 Add password length field to SAM_USER_INFO24 structure and fix init
and parse function.
(This used to be commit d2eafa7483a53958b6c930ca05da6e6a6c21b785)
2001-06-15 05:09:40 +00:00
Tim Potter
8888bf6582 Merged encode_pw_buffer() and nt_owf_genW() functions from TNG branch.
(This used to be commit fb80cf2aa13883c6dac461f95bc1000c4881d724)
2001-06-15 04:47:05 +00:00
Tim Potter
1aa05a31ac Fixed some return code checks for cli_initialise() from False to NULL.
Spotted by Joe Doran <joed@interlude.eu.org>
(This used to be commit 3e3b9bc5380652d882c02e7286258f0aabcaf395)
2001-06-14 00:08:42 +00:00
Tim Potter
f81489d02d Oops - proto.h contained junk from another workarea.
(This used to be commit 2ad921d1269cb1d098e7162f2d55f1a1536f325d)
2001-06-13 06:54:45 +00:00
Tim Potter
5eee0f1968 Added some msdfs client routines.
(This used to be commit 13df2304b309a2bd14d4441db0e72e75b8742262)
2001-06-13 06:37:02 +00:00
Tim Potter
df8713fdb9 Renamed -d option (make verbose) on smbstatus to -v.
Added -d <debuglevel> option.
(This used to be commit bdb9714380503d5bbe12a8bfa4ec723e1f5070ca)
2001-06-13 05:36:28 +00:00
Jeremy Allison
8209eda774 Make message receive fn static.
Jeremy.
(This used to be commit d8807b19228b12ddd6d93c02d1646a470a8e71ef)
2001-06-13 01:08:27 +00:00
Jeremy Allison
4248d14ff6 Fix from TAKAHASHI Motonobu <monyo@samba.gr.jp> for multibyte conversion
problems.
Jeremy.
(This used to be commit 24eea8a309ff0151277b9537a5c00321041e70d3)
2001-06-12 18:20:26 +00:00
Tim Potter
c569e20b10 Fixed typo in debug message.
(This used to be commit 4d2f6605820f7b62ff1a748952fd6edad63c1213)
2001-06-12 10:13:24 +00:00
Tim Potter
10f8162124 Removed commented out msdfs code that was being called anyway.
(This used to be commit a542f4513ab792363fd5772582c6d317aa913257)
2001-06-12 09:51:03 +00:00
Jeremy Allison
2f99c0e602 lib/util_getent.c: removed debug code.
smbd/posix_acls.c: Attempt to fix the "lose default acl" problem in Solaris.
Needs testing.
lib/sysacls.c: Typo fix.
Jeremy.
(This used to be commit d989f8bd3e1524183a24fb67be1af05b3289f648)
2001-06-12 01:49:30 +00:00
Jeremy Allison
3fc8c04cc2 Found & fixed memory bug. num+1 * sizeof(x) != (num+1)*sizeof(x)........
Jeremy.
(This used to be commit e0f88cabfc5ef480e7f8a7fecd2d12a1b4371a2a)
2001-06-11 22:06:11 +00:00
Jeremy Allison
f5197e0230 Fixed potential free of NULL found by SGI speedshop.
Jeremy.
(This used to be commit fc7830eec8f5478fc3d3296bb35cb11c94e7d9fa)
2001-06-11 20:56:18 +00:00