kai/samba.git
22 years agoAdded the basic tests of smb functionality for HEAD
Andrew Bartlett [Tue, 26 Jun 2001 07:41:40 +0000 (07:41 +0000)]
Added the basic tests of smb functionality for HEAD

This works with the new build farm system

Andrew Bartlett
(This used to be commit 542977bc4323e041512e91d7a38422e7abc4e5ae)

22 years agoEnsure we always have a valid pointer on unmarshalling an SD with zero
Jeremy Allison [Tue, 26 Jun 2001 06:31:55 +0000 (06:31 +0000)]
Ensure we always have a valid pointer on unmarshalling an SD with zero
ace entries.
Jeremy.
(This used to be commit 274c0f5028d41175222dfaaf446e3ed8f5687a5f)

22 years agoPut an 0x in front of a hex number.
Tim Potter [Tue, 26 Jun 2001 06:26:05 +0000 (06:26 +0000)]
Put an 0x in front of a hex number.
(This used to be commit a48d480ce986ff1c00f2c17f30f23723ce0bb044)

22 years agoFixed bug introduced by changeover of security descriptor code from
Tim Potter [Tue, 26 Jun 2001 06:11:40 +0000 (06:11 +0000)]
Fixed bug introduced by changeover of security descriptor code from
malloc() to talloc().  Previously, creating an ACL containing zero ACEs
would return a non-NULL pointer to zero bytes of memory.  The talloc() code
would return a NULL pointer making the ACL a NULL ACL instead of an empty
one.  The difference is a NULL ACL allows all access and an empty ACL
denies all access.

We solve this by calling talloc(ctx, sizeof(SEC_ACE) * num_aces + 1).
Heh.
(This used to be commit 89eaaafe7d266788609fab6951fd912c441b3a26)

22 years agoAlways use DOMAIN\user first that this is the more specific case.
Jeremy Allison [Tue, 26 Jun 2001 06:06:42 +0000 (06:06 +0000)]
Always use DOMAIN\user first that this is the more specific case.
Jeremy.
(This used to be commit 52143c08536a5f5d888b78b4769c06f7a0a2992b)

22 years agofixed build
Andrew Tridgell [Tue, 26 Jun 2001 05:38:24 +0000 (05:38 +0000)]
fixed build

don't rush commits :)
(This used to be commit 442bf5cc9e6de7888f9a8cc06050f73ef880c4d9)

22 years agofall back to "unsigned" for uint32 on systems that don't have one
Andrew Tridgell [Tue, 26 Jun 2001 05:21:49 +0000 (05:21 +0000)]
fall back to "unsigned" for uint32 on systems that don't have one
(This used to be commit 4d0c3167099f461b46fafaa3a35b14babbadcb93)

22 years agoRemove warning about trapdoor systems for non-root mode.
Andrew Bartlett [Tue, 26 Jun 2001 03:45:45 +0000 (03:45 +0000)]
Remove warning about trapdoor systems for non-root mode.

Andrew Bartlett
(This used to be commit b33000cdc0cafd4888c3f07c56050626743abd14)

22 years agoEnsure numeric group or user names don't get misinterpreted.
Jeremy Allison [Mon, 25 Jun 2001 21:29:33 +0000 (21:29 +0000)]
Ensure numeric group or user names don't get misinterpreted.
Jeremy.
(This used to be commit e88da9dcc79801028127bcbe328af001b58e653a)

22 years agoAdded Andrew's pam password change stuff. Needs some testing but looks good !
Jeremy Allison [Mon, 25 Jun 2001 20:44:04 +0000 (20:44 +0000)]
Added Andrew's pam password change stuff. Needs some testing but looks good !
Jeremy.
(This used to be commit e94957d548745649ce04423dc6f16bbe3dd4f869)

22 years agoFixed stupid typo that would stop trusted domains working.
Jeremy Allison [Mon, 25 Jun 2001 19:08:30 +0000 (19:08 +0000)]
Fixed stupid typo that would stop trusted domains working.
Jeremy.
(This used to be commit fa721b4adfbcac4827251b02f6af7f0b5211c104)

22 years agoCosmetic fixups found while playing with the server manager. Added support
Tim Potter [Mon, 25 Jun 2001 06:13:27 +0000 (06:13 +0000)]
Cosmetic fixups found while playing with the server manager.  Added support
for NET_SRV_SET_INFO rpc call which is made when double-clicking on a
computer in the server manager and changing the description.  We always
return NT_STATUS_NOPROBLEMO as NT doesn't seem to decode any error messages
passed back.

Maybe the changed comment string could be stored in a tdb and regurgitated
instead of the "server string" smb.conf parameter?
(This used to be commit d936ffedd90fe442f990c9ac2e172877f28d7230)

22 years agogot rid of the date headers off all text docs
Andrew Tridgell [Mon, 25 Jun 2001 03:36:09 +0000 (03:36 +0000)]
got rid of the date headers off all text docs
(This used to be commit 9d02041f0095d77753bd96bf070459547ec1339d)

22 years agofixed usage of socklen_t and also tidied up SIG_ATOMIC_T, using a typedef instead...
Andrew Tridgell [Mon, 25 Jun 2001 02:53:13 +0000 (02:53 +0000)]
fixed usage of socklen_t and also tidied up SIG_ATOMIC_T, using a typedef instead of a define
(This used to be commit e2ecff419fdc0a0dc7551b33b377dc11061ef2a3)

22 years agomake sure we have BOOL in autoconf usage of util_sec.c
Andrew Tridgell [Mon, 25 Jun 2001 01:20:47 +0000 (01:20 +0000)]
make sure we have BOOL in autoconf usage of util_sec.c
(This used to be commit 72f63f5144ececdef31c659ab645eb71a88943b5)

22 years agoadded a -L option to smbpasswd to force it to run locally so we can test smbpasswd...
Andrew Tridgell [Mon, 25 Jun 2001 01:15:17 +0000 (01:15 +0000)]
added a -L option to smbpasswd to force it to run locally so we can test smbpasswd as non-root
(This used to be commit ab635202655712a05b812ff40550d00d00552853)

22 years ago- make the regresison test mode code build in by default. This should
Andrew Tridgell [Mon, 25 Jun 2001 00:46:34 +0000 (00:46 +0000)]
- make the regresison test mode code build in by default. This should
  allow us to have test targets without special configure options
- fixed make proto so that it actually does something
(This used to be commit 55109a752578e9389d853cb27ec17c2114ecff77)

22 years agofixed error
Simo Sorce [Sun, 24 Jun 2001 01:41:38 +0000 (01:41 +0000)]
fixed error
using wrong pointer to test and free s/str/s/
(This used to be commit 7e5a9860fad92fee79bcc20f2ea2a3728080dba2)

22 years agoLog debug before and after netbios names copied so we know if they've been
Jeremy Allison [Sat, 23 Jun 2001 20:01:23 +0000 (20:01 +0000)]
Log debug before and after netbios names copied so we know if they've been
changed.
Jeremy.
(This used to be commit f8c121c69c9561f011a0e08a9d0beaf1cefd1667)

22 years agouhm some pointer went wrong
Simo Sorce [Sat, 23 Jun 2001 15:27:04 +0000 (15:27 +0000)]
uhm some pointer went wrong
(This used to be commit d0acacfc9df86abab24420f1807b4d5253e8c285)

22 years agohandle P_LIST parameters
Simo Sorce [Sat, 23 Jun 2001 15:01:34 +0000 (15:01 +0000)]
handle P_LIST parameters
(This used to be commit 26ab608c91c7357df3a79bc34111194f115de005)

22 years agofix compiler warnings
Simo Sorce [Sat, 23 Jun 2001 14:58:38 +0000 (14:58 +0000)]
fix compiler warnings
(This used to be commit 1959864490e79756257ba10431b188de78b8c8a7)

22 years agofix compiler warnings
Simo Sorce [Sat, 23 Jun 2001 14:13:32 +0000 (14:13 +0000)]
fix compiler warnings
(This used to be commit 7420e2f7898f1d141ba2af3eda07a67862fee842)

22 years agoAdded other_safe_chars to alpha_strcpy(). Needs testing but is a better
Jeremy Allison [Sat, 23 Jun 2001 07:22:16 +0000 (07:22 +0000)]
Added other_safe_chars to alpha_strcpy(). Needs testing but is a better
fix for the problem.
Jeremy.
(This used to be commit e059fffd03a1382fb2b7059b6de369d9fc765a17)

22 years agoBetter fix for client name vulnarability.
Jeremy Allison [Sat, 23 Jun 2001 00:22:14 +0000 (00:22 +0000)]
Better fix for client name vulnarability.
Jeremy.
(This used to be commit 17c3faa367328d186d10f59f08549de0c608b16a)

22 years agoFix for multibyte default service parameter from TAKAHASHI Motonobu, Samba Users...
Jeremy Allison [Fri, 22 Jun 2001 22:05:47 +0000 (22:05 +0000)]
Fix for multibyte default service parameter from TAKAHASHI Motonobu, Samba Users Group Japan
Jeremy
(This used to be commit a2da1f91c1b08414592d5f014c8539575d0e9637)

22 years agoFixed logic bug in timeout processing spotted by Ying Chen <ying@almaden.ibm.com>.
Jeremy Allison [Fri, 22 Jun 2001 20:56:52 +0000 (20:56 +0000)]
Fixed logic bug in timeout processing spotted by Ying Chen <ying@almaden.ibm.com>.
Jeremy.
(This used to be commit 08c168242364bf4d415f49d134e507a7e234611b)

22 years agoFix for race condition found by Herb where we can end up with a NULL dbf.
Jeremy Allison [Fri, 22 Jun 2001 19:46:38 +0000 (19:46 +0000)]
Fix for race condition found by Herb where we can end up with a NULL dbf.
Jeremy.
(This used to be commit 5cbb2106735ad0533198a83d62541cabd7beed20)

22 years agoFix from "Jim McDonough" <jmcd@us.ibm.com>" - when we use open_file_shared(),
Jeremy Allison [Fri, 22 Jun 2001 18:58:35 +0000 (18:58 +0000)]
Fix from "Jim McDonough" <jmcd@us.ibm.com>" - when we use open_file_shared(),
we need to close with close_file().
Jeremy.
(This used to be commit 5b2ffd160f3b4b9607bb6fd6db1644af9254ad9e)

22 years agoadded the ability to test smbd safely as an ordinary user. The way it works is
Andrew Tridgell [Fri, 22 Jun 2001 15:14:45 +0000 (15:14 +0000)]
added the ability to test smbd safely as an ordinary user. The way it works is
that libsmb/ creates a local tcp socket then launches smbd as a subprocess
attached to that socket. smbd thinks it is being launched from inetd.

to use it do the following:

- compile with -DSMB_REGRESSION_TEST
- run like this (also works with smbtorture etc)
    export SMBD_TEST=1
    export LIBSMB_PROG=bin/smbd
    smbclient //server/share -Uuser%pass

obviously you need to setup a smb.conf etc. Using --prefix to configure
is useful.

The aim of all this stuff is to add a decent set of regression tests
to the build farm, so we know if smbd actually runs correctly on all the
platforms, not just builds. We can run smbtorture, masktest, locktest etc,
plus a bunch of smbclient scripts and any new tests we write.

This doesn't help much with nmbd (at least not yet) but its a good start.
(This used to be commit 7e8e6ae9a88c4d2587eb4e7f0501cd71bd36ebb2)

22 years agosync this function with 2.2 (single check for NULL parameter)
Gerald Carter [Fri, 22 Jun 2001 14:18:27 +0000 (14:18 +0000)]
sync this function with 2.2 (single check for NULL parameter)
(This used to be commit 3ab50e648d682080308d2db6bdb71eef0e303988)

22 years agoRemoved unused (and potentially crash-causing) free function.
Jeremy Allison [Fri, 22 Jun 2001 02:37:52 +0000 (02:37 +0000)]
Removed unused (and potentially crash-causing) free function.
Jeremy.
(This used to be commit 54ea00fa870f258b885b18e8684caa8488948607)

22 years agoadd an ignore on proto.h
Andrew Tridgell [Fri, 22 Jun 2001 02:34:34 +0000 (02:34 +0000)]
add an ignore on proto.h
(This used to be commit 0dc9227156823f6a44e6a0260e091b972057baa3)

22 years agoauto-build proto.h if its not there, but don't make it depend
Andrew Tridgell [Fri, 22 Jun 2001 02:33:27 +0000 (02:33 +0000)]
auto-build proto.h if its not there, but don't make it depend
on anything. Delete proto.h from CVS
(This used to be commit 8a37df73ec4d8d1a7db60a49cd5d7d22c4704a88)

22 years agoCleanup of cli_lsa_enum_trust_dom(). talloc() doesn't like attempts to
Tim Potter [Fri, 22 Jun 2001 02:15:02 +0000 (02:15 +0000)]
Cleanup of cli_lsa_enum_trust_dom().  talloc() doesn't like attempts to
allocate 0 bytes.
(This used to be commit 465994cfbca72649474345bc057d436961cccf97)

22 years agoSpelling fix.
Tim Potter [Fri, 22 Jun 2001 01:58:19 +0000 (01:58 +0000)]
Spelling fix.
(This used to be commit 5f4889beb9311fd3912c3dfccf18fc9ab22b964c)

22 years agothe BAD_PTR idea in talloc.h is actually a bad idea - it means callers have no way...
Andrew Tridgell [Fri, 22 Jun 2001 01:56:16 +0000 (01:56 +0000)]
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
(This used to be commit 7a96ca313e2f6b5ad8a713babd3cac0bbcc4c399)

22 years agoUse cli_read_one() for reading DCE/RPC reply fragments. We need to check
Tim Potter [Fri, 22 Jun 2001 01:19:45 +0000 (01:19 +0000)]
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.
(This used to be commit f179e0ff61794073aedcf77544865ad2f18c6e6d)

22 years agoMerged cli_read_one() function for reading DCE/RPC reply fragments.
Tim Potter [Fri, 22 Jun 2001 01:09:40 +0000 (01:09 +0000)]
Merged cli_read_one() function for reading DCE/RPC reply fragments.
(This used to be commit 9e074bc2bf2df34048b67457623bb8219fb1e4d6)

22 years agoAndrew - please look this over. I've fixed a long standing (maybe 4-5
Jeremy Allison [Fri, 22 Jun 2001 00:57:59 +0000 (00:57 +0000)]
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.
(This used to be commit 0187cd6aef7586d7ad4bdc70c50f3f2e7c69519c)

22 years agoadded some comments to make the cli read code clearer
Andrew Tridgell [Fri, 22 Jun 2001 00:42:53 +0000 (00:42 +0000)]
added some comments to make the cli read code clearer
(This used to be commit bbfbe03cc6166c23c42a704b5acaa19cbdbc39ce)

22 years agouse next_token instead of strtok.
Simo Sorce [Thu, 21 Jun 2001 23:33:12 +0000 (23:33 +0000)]
use next_token instead of strtok.
single elemnts of list cannot be longer than a pstring (1024B now)
(This used to be commit 72b749ec89fa3642c0b3330a5331be645f84e24c)

22 years agoOk - I misspoke.... mmap returns MAP_FAILED, not neccessarily -1 :-).
Jeremy Allison [Thu, 21 Jun 2001 19:56:25 +0000 (19:56 +0000)]
Ok - I misspoke.... mmap returns MAP_FAILED, not neccessarily -1 :-).
Jeremy.
(This used to be commit 2d1c6d1f6b55a0a78eb8afbe16d2ad8b3253a220)

22 years agoWhen mmap fails it returns -1 *NOT NULL*.
Jeremy Allison [Thu, 21 Jun 2001 19:50:21 +0000 (19:50 +0000)]
When mmap fails it returns -1 *NOT NULL*.
This got regressed somehow.....
Jeremy.
(This used to be commit b77c8b536d4b6d2162f4932227f01cffb730c645)

22 years agoMerging Gerry's spoolss changes.
Jeremy Allison [Thu, 21 Jun 2001 17:46:14 +0000 (17:46 +0000)]
Merging Gerry's spoolss changes.
Jeremy.
(This used to be commit 6b4a70cd8285c1e4d452e3af7df070b4c446ff54)

22 years agomerge from 2.2
Gerald Carter [Thu, 21 Jun 2001 14:27:41 +0000 (14:27 +0000)]
merge from 2.2
(This used to be commit 5932471a03e74ef7fcc71e22dbb52c530332a713)

22 years agonext_token() was supposed to be a reentrant replacement for strtok(),
Andrew Tridgell [Thu, 21 Jun 2001 09:10:42 +0000 (09:10 +0000)]
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)

22 years agoAdded STR_NOALIGN flags to clistr and srvstr fns. Yes, NT actually does
Andrew Tridgell [Thu, 21 Jun 2001 05:38:28 +0000 (05:38 +0000)]
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)

22 years agoFollowing info from TAKAHASHI Motonobu <monyo@samba.gr.jp>,
Jeremy Allison [Thu, 21 Jun 2001 01:01:15 +0000 (01:01 +0000)]
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)

22 years agoFixed W2K SP2 joining a Samba PDC hosted domain.
Jeremy Allison [Wed, 20 Jun 2001 19:55:59 +0000 (19:55 +0000)]
Fixed W2K SP2 joining a Samba PDC hosted domain.
Jermey.
(This used to be commit 05a2911403a0710d994a618e72743205a3b0b87a)

22 years agoWarning fix from Andrew Bartlett.
Jeremy Allison [Wed, 20 Jun 2001 17:49:38 +0000 (17:49 +0000)]
Warning fix from Andrew Bartlett.
Jeremy.
(This used to be commit 87f647715d9fba9f8d25da0bde005a8d8858c2ae)

22 years agoinitial support for paramter type P_LIST
Simo Sorce [Wed, 20 Jun 2001 16:54:32 +0000 (16:54 +0000)]
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)

22 years agomake proto
Tim Potter [Wed, 20 Jun 2001 07:13:55 +0000 (07:13 +0000)]
make proto
(This used to be commit d0b37d1a623acce2ae4509aebda85ad1280dc8ac)

22 years agoAdded cli_samr_delete_dom_user() function.
Tim Potter [Wed, 20 Jun 2001 07:08:28 +0000 (07:08 +0000)]
Added cli_samr_delete_dom_user() function.
(This used to be commit 2162454d9ea5a07892d0b5d7fc5abe7251b4fa98)

22 years agoAdded delete domain user rpcclient command.
Tim Potter [Wed, 20 Jun 2001 07:07:43 +0000 (07:07 +0000)]
Added delete domain user rpcclient command.
(This used to be commit aa9024c95996dec67d76c5ed108cfba733dcdbfe)

22 years agoadded a close-share smbcontrol message that forcibly closes a share in smbd (to allow...
Andrew Tridgell [Wed, 20 Jun 2001 03:05:09 +0000 (03:05 +0000)]
added a close-share smbcontrol message that forcibly closes a share in smbd (to allow unmount)
(This used to be commit 15b17a80db605a55f667c95fb7e316877a441887)

22 years agoMerge from appliance branch:
Tim Potter [Wed, 20 Jun 2001 01:52:40 +0000 (01:52 +0000)]
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)

22 years agoINFO_24 sometimes has a 2 byte length, sometimes doesn't. Safer to not
Jeremy Allison [Tue, 19 Jun 2001 19:56:06 +0000 (19:56 +0000)]
INFO_24 sometimes has a 2 byte length, sometimes doesn't. Safer to not
depend on it...
Jeremy.
(This used to be commit 0fe11c329f7b379299be65795031e4f1b14e0bec)

22 years agoOnly try and open a directory if we get EISDIR.
Jeremy Allison [Tue, 19 Jun 2001 18:43:17 +0000 (18:43 +0000)]
Only try and open a directory if we get EISDIR.
Jeremy.
(This used to be commit 5b1245f80357f585ef3b24704e5ef34ef71e232f)

22 years agoExtra debug in open.c, fix for bad debug message in reply.c
Jeremy Allison [Tue, 19 Jun 2001 07:31:55 +0000 (07:31 +0000)]
Extra debug in open.c, fix for bad debug message in reply.c
Jeremy.
(This used to be commit 2c2fc8513699eb39721ac1d65fa1fdaecde526a8)

22 years agoFixed typo.
Tim Potter [Tue, 19 Jun 2001 07:13:47 +0000 (07:13 +0000)]
Fixed typo.
(This used to be commit fdfd690538b02781e237831474d679307953ac8f)

22 years agoFixed typo in debug message.
Tim Potter [Tue, 19 Jun 2001 06:52:45 +0000 (06:52 +0000)]
Fixed typo in debug message.
(This used to be commit d05577c33237a092bbc7ca21e68f3cef06b4ab3b)

22 years agoadded a torture target for building all torture progs. Fixed a typo in locktest
Andrew Tridgell [Tue, 19 Jun 2001 02:06:12 +0000 (02:06 +0000)]
added a torture target for building all torture progs. Fixed a typo in locktest
(This used to be commit fd0d729ce0d9a057e867001c2ea52c8599713b28)

22 years agomoved all our torture code to a separate directory
Andrew Tridgell [Tue, 19 Jun 2001 02:02:19 +0000 (02:02 +0000)]
moved all our torture code to a separate directory
(This used to be commit dd12c47645e2d0e832bc555492a6a8725a4495ee)

22 years agotorture code is moving to its own directory
Andrew Tridgell [Tue, 19 Jun 2001 01:54:42 +0000 (01:54 +0000)]
torture code is moving to its own directory
(This used to be commit a4ef84e1a031042ca24fc3bea6d7311ab5976ac6)

22 years agorpc_server/srv_srvsvc_nt.c: Don't test an uint32 for < 0.
Jeremy Allison [Tue, 19 Jun 2001 00:44:23 +0000 (00:44 +0000)]
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)

22 years agoAdded $(PROFILE_OBJ) to winbindd objects.
Tim Potter [Tue, 19 Jun 2001 00:29:00 +0000 (00:29 +0000)]
Added $(PROFILE_OBJ) to winbindd objects.
(This used to be commit 4897cfcf85340057f56d39128b0f0bdd72da2cf6)

22 years agoSet support for info levels...
Jeremy Allison [Tue, 19 Jun 2001 00:11:12 +0000 (00:11 +0000)]
Set support for info levels...
Jeremy.
(This used to be commit e033f758914f6631545af17041b4e49c1ff885d9)

22 years agoBest-effort so far implementation of new W2K info levels.
Jeremy Allison [Mon, 18 Jun 2001 23:42:41 +0000 (23:42 +0000)]
Best-effort so far implementation of new W2K info levels.
An-embrace-and-extending we will go...
Jeremy.
(This used to be commit 43bf9b2c7aad15d65bac3a9c4f799be050a074cd)

22 years agoNew info level tester.
Jeremy Allison [Mon, 18 Jun 2001 23:31:22 +0000 (23:31 +0000)]
New info level tester.
Jeremy.
(This used to be commit 9297ae69a7dde878bb4c696f90fbaceb46e18720)

22 years agoFix for assert fail - left over when moved to dynamic allocation.
Jeremy Allison [Mon, 18 Jun 2001 21:34:01 +0000 (21:34 +0000)]
Fix for assert fail - left over when moved to dynamic allocation.
Jeremy.
(This used to be commit 0fcf2006334bd41d4036e703a6725aaaf684e008)

22 years agoAdded patches to remove Linux specific XFS ACLs. These are now handled by the
Jeremy Allison [Mon, 18 Jun 2001 20:27:35 +0000 (20:27 +0000)]
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)

22 years agoAdded "Jim McDonough" <jmcd@us.ibm.com> patches for directory support
Jeremy Allison [Mon, 18 Jun 2001 17:52:58 +0000 (17:52 +0000)]
Added "Jim McDonough" <jmcd@us.ibm.com> patches for directory support
for Win9x.
Jeremy.
(This used to be commit 70194b194e0ca4b0f4f9c1eece9176415f9bb928)

22 years agoadded a oplock break handler hook to the client code, this allows for more complete...
Andrew Tridgell [Mon, 18 Jun 2001 08:26:15 +0000 (08:26 +0000)]
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)

22 years agoRemoved silly Get_Hostbyname() wrapper as DNS names are case-insensitive
Tim Potter [Mon, 18 Jun 2001 05:42:18 +0000 (05:42 +0000)]
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)

22 years agoFixed typo in nmblookup example.
Tim Potter [Mon, 18 Jun 2001 02:29:02 +0000 (02:29 +0000)]
Fixed typo in nmblookup example.
(This used to be commit d11c871fc5480e8ba3846e1de9a2f1834d535325)

22 years agoFixed typo in configure error message.
Tim Potter [Mon, 18 Jun 2001 02:27:33 +0000 (02:27 +0000)]
Fixed typo in configure error message.
(This used to be commit 41fe64e70fdc99201ebbc76285897ab51af8c57d)

22 years agoModified version of Jim's 0x27 and 0x28 Win9x Secdesc patch.
Jeremy Allison [Sat, 16 Jun 2001 00:32:13 +0000 (00:32 +0000)]
Modified version of Jim's 0x27 and 0x28 Win9x Secdesc patch.
Jeremy.
(This used to be commit 5690ec77c87475f1fd2e854cda594eb996d6fd04)

22 years agoJim McDonough's parse patches for Win9x get SD calls.
Jeremy Allison [Fri, 15 Jun 2001 20:08:12 +0000 (20:08 +0000)]
Jim McDonough's parse patches for Win9x get SD calls.
Jeremy.
(This used to be commit bc366f31537408380860906cc041de232b27b714)

22 years agoFixed typo spotted by "Jim McDonough" <jmcd@us.ibm.com>....
Jeremy Allison [Fri, 15 Jun 2001 19:48:03 +0000 (19:48 +0000)]
Fixed typo spotted by "Jim McDonough" <jmcd@us.ibm.com>....
Jeremy.
(This used to be commit a600c96e596375bf27c15026c032944a066e7290)

22 years agoBe sure to not use strlen with NULL pointer.
Simo Sorce [Fri, 15 Jun 2001 08:00:36 +0000 (08:00 +0000)]
Be sure to not use strlen with NULL pointer.
(This used to be commit 53803b008717e8606b347ed8baab78121c6e9657)

22 years agoPrototype update.
Tim Potter [Fri, 15 Jun 2001 07:22:27 +0000 (07:22 +0000)]
Prototype update.
(This used to be commit 402639926f5d207ebefec296427dc3be0e979fe6)

22 years agoAdded a unix error code for NT_STATUS_PATH_NOT_COVERED.
Tim Potter [Fri, 15 Jun 2001 07:13:12 +0000 (07:13 +0000)]
Added a unix error code for NT_STATUS_PATH_NOT_COVERED.
(This used to be commit 66e62245ea50fe7b996484ca919083eec2edfd14)

22 years agoAdd password length field to SAM_USER_INFO24 structure and fix init
Tim Potter [Fri, 15 Jun 2001 05:09:40 +0000 (05:09 +0000)]
Add password length field to SAM_USER_INFO24 structure and fix init
and parse function.
(This used to be commit d2eafa7483a53958b6c930ca05da6e6a6c21b785)

22 years agoMerged encode_pw_buffer() and nt_owf_genW() functions from TNG branch.
Tim Potter [Fri, 15 Jun 2001 04:47:05 +0000 (04:47 +0000)]
Merged encode_pw_buffer() and nt_owf_genW() functions from TNG branch.
(This used to be commit fb80cf2aa13883c6dac461f95bc1000c4881d724)

22 years agoFixed some return code checks for cli_initialise() from False to NULL.
Tim Potter [Thu, 14 Jun 2001 00:08:42 +0000 (00:08 +0000)]
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)

22 years agoOops - proto.h contained junk from another workarea.
Tim Potter [Wed, 13 Jun 2001 06:54:45 +0000 (06:54 +0000)]
Oops - proto.h contained junk from another workarea.
(This used to be commit 2ad921d1269cb1d098e7162f2d55f1a1536f325d)

22 years agoAdded some msdfs client routines.
Tim Potter [Wed, 13 Jun 2001 06:37:02 +0000 (06:37 +0000)]
Added some msdfs client routines.
(This used to be commit 13df2304b309a2bd14d4441db0e72e75b8742262)

22 years agoRenamed -d option (make verbose) on smbstatus to -v.
Tim Potter [Wed, 13 Jun 2001 05:36:28 +0000 (05:36 +0000)]
Renamed -d option (make verbose) on smbstatus to -v.

Added -d <debuglevel> option.
(This used to be commit bdb9714380503d5bbe12a8bfa4ec723e1f5070ca)

22 years agoMake message receive fn static.
Jeremy Allison [Wed, 13 Jun 2001 01:08:27 +0000 (01:08 +0000)]
Make message receive fn static.
Jeremy.
(This used to be commit d8807b19228b12ddd6d93c02d1646a470a8e71ef)

22 years agoFix from TAKAHASHI Motonobu <monyo@samba.gr.jp> for multibyte conversion
Jeremy Allison [Tue, 12 Jun 2001 18:20:26 +0000 (18:20 +0000)]
Fix from TAKAHASHI Motonobu <monyo@samba.gr.jp> for multibyte conversion
problems.
Jeremy.
(This used to be commit 24eea8a309ff0151277b9537a5c00321041e70d3)

22 years agoFixed typo in debug message.
Tim Potter [Tue, 12 Jun 2001 10:13:24 +0000 (10:13 +0000)]
Fixed typo in debug message.
(This used to be commit 4d2f6605820f7b62ff1a748952fd6edad63c1213)

22 years agoRemoved commented out msdfs code that was being called anyway.
Tim Potter [Tue, 12 Jun 2001 09:51:03 +0000 (09:51 +0000)]
Removed commented out msdfs code that was being called anyway.
(This used to be commit a542f4513ab792363fd5772582c6d317aa913257)

22 years agolib/util_getent.c: removed debug code.
Jeremy Allison [Tue, 12 Jun 2001 01:49:30 +0000 (01:49 +0000)]
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)

22 years agoFound & fixed memory bug. num+1 * sizeof(x) != (num+1)*sizeof(x)........
Jeremy Allison [Mon, 11 Jun 2001 22:06:11 +0000 (22:06 +0000)]
Found & fixed memory bug. num+1 * sizeof(x) != (num+1)*sizeof(x)........
Jeremy.
(This used to be commit e0f88cabfc5ef480e7f8a7fecd2d12a1b4371a2a)

22 years agoFixed potential free of NULL found by SGI speedshop.
Jeremy Allison [Mon, 11 Jun 2001 20:56:18 +0000 (20:56 +0000)]
Fixed potential free of NULL found by SGI speedshop.
Jeremy.
(This used to be commit fc7830eec8f5478fc3d3296bb35cb11c94e7d9fa)

22 years agoFixed typo in Solaris and UnixWare ACLs.
Jeremy Allison [Sat, 9 Jun 2001 03:10:27 +0000 (03:10 +0000)]
Fixed typo in Solaris and UnixWare ACLs.
Jeremy.
(This used to be commit bd750def132d9a787728dc35c68df9166a15fbd7)

22 years ago*Wonderful* patch from Andrew Bartlett that will help ensure tdb's are
Jeremy Allison [Sat, 9 Jun 2001 01:38:54 +0000 (01:38 +0000)]
*Wonderful* patch from Andrew Bartlett that will help ensure tdb's are
cleaned on clients abending connections. Thanks Andrew !
Jeremy.
(This used to be commit 1b3977c5367a0b713b194f369abd9872ae01ac2a)

22 years agoHerb's IRIX fix for deleting default ACLs.
Jeremy Allison [Fri, 8 Jun 2001 21:27:46 +0000 (21:27 +0000)]
Herb's IRIX fix for deleting default ACLs.
Jeremy.
(This used to be commit 81b5a628d1471f71964b21817b9bec1ac80585c4)

22 years agoLog tdb failures.
Jeremy Allison [Fri, 8 Jun 2001 20:26:46 +0000 (20:26 +0000)]
Log tdb failures.
Jeremy.
(This used to be commit f004471aac3a1a0f2e40c05d1aadfe68456bc103)