1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

1837 Commits

Author SHA1 Message Date
Luke Leighton
4b9e0941b9 rpcclient: got samr command "enumusers -g -u" working
(This used to be commit 3a00023efe)
1998-09-25 23:14:20 +00:00
Jeremy Allison
c1bbd1868f Moved the extra struct definitions Luke added to smb.h into rpcclient.h
and client.h. They are still included from smb.h so nothing should
change (or break) but this keeps the new definitions easier to
maintain. This is similar to what I did with ntdomain.h
Jeremy.
(This used to be commit 2831e5c9c4)
1998-09-25 22:34:40 +00:00
Luke Leighton
6fb5804b28 added in samr commands. assistance in returning the missing functions,
automatically removed because they were "unused", would be appreciated.
(This used to be commit d0f7b0d915)
1998-09-25 22:20:05 +00:00
Luke Leighton
ff07b2e4a3 added wksinfo command to rpcclient, which don't work too good.
(This used to be commit 8d23da91cb)
1998-09-25 21:20:37 +00:00
Luke Leighton
66d5d73a5d added rpcclient program
(This used to be commit aa38f39d67)
1998-09-25 21:01:52 +00:00
Luke Leighton
1631d3fba7 not needed.
(This used to be commit 78b5c15121)
1998-09-25 16:01:14 +00:00
Andrew Tridgell
95f99e80b4 I've disabled the conversion of null filenames to "." until we solve
the win95 printing problem. I suspect it is a smbgetatr() problem with
a null name (which requires special behaviour).

This is an interim solution.
(This used to be commit 0a69e091a2)
1998-09-25 03:52:29 +00:00
Jeremy Allison
9f2edc69af Updates to the scripts for the new 14-char space format of account
attributes.
Jeremy.
(This used to be commit 32b6f6640d)
1998-09-24 22:35:16 +00:00
Jeremy Allison
dc36d8768a Integration of Anders Blomdell <anders.blomdell@control.lth.se>'s
smbpasswd changes. Not exactly the same as his code - several
changes.
Jeremy.
(This used to be commit e96747a8e3)
1998-09-24 22:33:13 +00:00
Luke Leighton
d8f66be141 qualifier name in session_enum was being assumed to exist. if NULL, the
name should not be read.  file_enum and connection_enum didn't do this:
wonder why only session_enum had this bug?
(This used to be commit 203a97e39e)
1998-09-24 20:19:31 +00:00
Luke Leighton
0c5dcf52b0 took out #ifdef'd code in make_samr_r_query_usergroups that copied
DOM_GID static-size array, because it's malloc'd now.
(This used to be commit 7776002218)
1998-09-24 20:17:19 +00:00
Luke Leighton
f650b65800 this fixes the last of the issues where USRMGR.EXE and SRVMGR.EXE were
failing.  running these two programs on a samba pdc now work.


parse_samr.c:

- removed __LINE__ from debug macros.

- removed call to SMB_ASSERT_ARRAY() in samr_r_query_usergroups.  the
  DOM_GID array is a malloc'd array (by make_dom_gids) not a static
  array.


srv_samr.c:

- replaced all "struct smb_passwd"s with sam_passwds instead.  there
  were uid to rid confusion issues (assumptions that uids were equal
  to rids).

- #if 0'd the pdb_rid_is_user() call which, given the above corrections,
  would probably work now.


srv_util.c:

- replaced "struct smb_passwd" with sam_passwd in lookup_user_rid, as
  assumptions were being made that uids were equal to rids.
(This used to be commit 3f98697cd5)
1998-09-24 20:02:56 +00:00
Luke Leighton
50beafdf22 removed function names printed out in debug statements (duplicated in
DEBUG macro, automatically)
(This used to be commit 2e4d681d17)
1998-09-24 19:57:02 +00:00
Luke Leighton
9e17c7093d replaced one of the paragraphs describing nmbd problems. could someone
review this please?
(This used to be commit dd718c26f7)
1998-09-24 19:42:31 +00:00
Richard Sharpe
921b171acf Added a minor fix to clitar.c for a bug.
Could not check that it compiles clean with Jeremy's -Wflags because
someone loaded some changes to reply.c that break in the locking area

:-(
(This used to be commit b18cd03c0b)
1998-09-24 13:43:36 +00:00
Alexandre Oliva
6de1659640 check whether system type is the same as stored in the cache (full
stand-alone macro, candidate for inclusion in the next release of autoconf)

create configure flag --enable-maintainer-mode, that enables automatic
rebuilding of configure from configure.in and aclocal.m4, and of
config.h.in based on acconfig.h.  This assumes autoconf and autoheader
are available.  Maintainer mode also introduces automatic dependency
tracking of include files, but it depends on features provided by gcc
and GNU make, so you must not enable maintainer mode if you are not
using any of these
(This used to be commit 64cba1cc8e)
1998-09-24 08:34:21 +00:00
Andrew Tridgell
e5948ffd7f automatically detect changes in the system type and exit, telling
the user to remove config.cache
(This used to be commit f123172c42)
1998-09-24 04:52:40 +00:00
Andrew Tridgell
e59d7a7f80 some changes to the autoconf support
- added config.cache to "make clean". We get two many bug reports from
  people builing on multiple architectures who don't remove config.cache
  between compiles. Hopefully a future version of autoconf will do
  this automatically

- removed the targets that run autoconf and autoheader. There is far
  too great a risk of a enduser getting a error "autoheader not found"
  if the date on a file is changed. Samba developers will have to run
  autoconf and autoheader manually (as before)
(This used to be commit 811fe3b174)
1998-09-24 01:12:43 +00:00
Luke Leighton
500a474aae nttrans.c:
winreg was missing from the list of pipes.  advise using the array
already defined in... rpc_parse/parse_rpc.c's pipe_names[], but
writing code to strip "\PIPE\" from the front when making the
check.

one location to update when adding new pipes, not two.


srv_pipe_hnd.c:

moved the ZERO_STRUCT(p) macro to _before_ the DLIST_ADD(Pipes, p) macro.

dlinklist.h:

added { }s around the code inserted by DLIST_ADD and DLIST_REMOVE macros
(This used to be commit 29201d4b9b)
1998-09-23 21:49:09 +00:00
Jeremy Allison
0e091a5207 Hoist by my own petard with warnings (forgot to set strict warnings
in Makefile before compiling & checking in :-).
Jeremy.
(This used to be commit 05fb3c82a5)
1998-09-23 17:56:34 +00:00
Richard Sharpe
474110e3e0 Fixed data corruption bugs in clitar.c with restores.
Have tested against samba with clitar using a hard-coded
max_xmit of 2920, since max smit = 2920 does not seem to work in
the smb.conf file.

Will have to test correctly against Win95 and WinNT now.

Have also compiled with -WJeremy'sFlags and get no more warnings
after I removed an unused variable.
(This used to be commit f24bbaccda)
1998-09-23 14:37:01 +00:00
Jeremy Allison
e4962b80f8 smbd/oplock.c: Use O_CREAT and O_TRUNC and correct mode flags
when creating oplock test file.
smbd/server.c: Check for existance of kernel oplocks before
               becoming a daemon.
Jeremy.
(This used to be commit b42779e17e)
1998-09-23 01:58:27 +00:00
Jeremy Allison
aab2fe0216 First cut at kernel oplocks. This should have no effect unless runnin
on a machine that supports them in autoconf.

Move various functions out of lib/util.c into smbd/process.c
and smbd/oplock.c where they belong.

Jeremy.
(This used to be commit c3c5e13f85)
1998-09-23 01:48:45 +00:00
Andrew Tridgell
3b7cee95ac look at the CAP_NT_SMBS bit in the client capabilities to determine if
we should serve up volume labels as ascii or unicode.

NT wants ascii, W95 wants unicode. It's a crazy protocol!
(This used to be commit 24b8a757ae)
1998-09-23 01:25:33 +00:00
Jeremy Allison
242d068297 Fixed up warnings in new client code.
Note to coders. If using gcc please use the compiler flags :
-Wall -Werror -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual
*before* checking anything in to ensure a clean compile.
Jeremy.
(This used to be commit 1daf424da6)
1998-09-23 00:57:34 +00:00
Alexandre Oliva
ac39ce3eba replace getpass() with getsmbpass() if getsmbpass.c compiles
(This used to be commit 9a5bdf5c1b)
1998-09-21 11:34:44 +00:00
Alexandre Oliva
e649750cb4 major autoconf clean-up
fix problems in builds with srcdir!=builddir
(This used to be commit 1ffc3b807a)
1998-09-21 09:07:08 +00:00
Alexandre Oliva
81babe9b0d implemented du and tar -n
(This used to be commit 23484508a8)
1998-09-21 08:45:11 +00:00
Andrew Tridgell
f0dc663c63 lp_fstype() proto
(This used to be commit ac48db7f21)
1998-09-20 15:48:35 +00:00
Andrew Tridgell
5e634ef68c 3 changes:
1) use lp_fstype() instead of FSTYPE_STRING
2) added SMB_SEARCH_BITS to the TconX reply options (in vwv3). I noted
   that NT sets this (undocumented) bit and setting it helped get
   autorun from exported cdroms working.
3) fixed volume labels in QFSINFO level 258.

I made these changes while getting the Encyclopadia Brittanica CD to
run from a Samba drive. (I bought it for Sue yesterday). The first
and second changes allowed Samba to export CDs with autorun info and
the client will autorun it when mounted. There are all sorts of nasty
implications in that that perhaps we can go into on
samba-technical. Think about creating some autorun info in /tmp/ then
waiting for people to mount it as scratch space ...

The last change was because EB wanted the right volume label. The code
we had used a non unicode volume label but tests with W95->NT4 showed
that it has to be unicode. There was a note in the code from Jeremy
saying that he thought it should _not_ be unicode. Jeremy, can you
explain why? It certainly didn't work as non-unicode (the client
displays a garbage volume label) and when I fixed it to use unicode it
all worked from Win95.

and in case anyone is interested EB98 now works fine from a Samba
drive :)
(This used to be commit 66268ae588)
1998-09-20 15:48:10 +00:00
Andrew Tridgell
93dfc79888 added a per-share parameter "fstype" that allows you to select the
filesystem type that will be reported to the client. If unspecified
then it defaults to FSTYPE_STRING (currently "Samba").

This is useful for cdroms where you want to set the fs type to CDFS.
(This used to be commit 4332e2c93d)
1998-09-20 15:40:52 +00:00
Andrew Tridgell
bc97ab2b7c add a define for SMB_SEARCH_BITS and change comment on FSTYPE_STRING
(This used to be commit 9c275bcd98)
1998-09-20 15:39:12 +00:00
Richard Sharpe
b65bbdeefc Fixed changes in clitar.c that Jeremey noted. One change was
correct, the other needed slightly changing.

Now to test it is all OK :-)
(This used to be commit d54c91598c)
1998-09-19 04:25:10 +00:00
Jeremy Allison
fc82bd2914 Small bit of paranioa. Ensure that if the incoming name to
unix_convert() was a single '\' (the base directory of the service)
that it gets translated to a '.', not a '\0'.
Jeremy.
(This used to be commit f74f39f45f)
1998-09-19 03:34:12 +00:00
Jeremy Allison
ac87559729 Remove some byte-copying code in unix_format() that did nothing except
slow down my benchmark :-).

Jeremy.
(This used to be commit b55f93b213)
1998-09-19 02:35:43 +00:00
Jeremy Allison
11fe457e33 Now that Alexandre Oliva has explained the use of acconfig.h to
me, I'm adding the HAVE_LIBREADLINE and other stuff correctly.

Thanks Alexandre :-).

Jeremy.
(This used to be commit 89a4a73caf)
1998-09-18 21:57:12 +00:00
Jeremy Allison
0ebdf28c98 Fixed position of LARGE_SMB_OFF_T definition. The SOFF_T define was
being done *before* the LARGE_SMB_OFF_T was being defined, but SOFF_T
depended on it :-).

This broke 64 bit file reporting.

Jeremy.
(This used to be commit c6a353cfab)
1998-09-18 18:30:42 +00:00
Jeremy Allison
7be02a2037 Changed variable TAB to htab as TAB is defined in a header file on RedHat5.1
Jeremy.
(This used to be commit 43ac52ad7a)
1998-09-18 18:16:45 +00:00
Jeremy Allison
31ebc956e5 Fixed problems with premature kernel oplock checkin code.
The ./configure & build now seem to work ok.

Jeremy.
(This used to be commit 7c1a5ed1c2)
1998-09-18 18:09:17 +00:00
Jeremy Allison
184db9266e configure configure.in include/config.h.in include/includes.h
Fixed bugs in readline autoconf.

param/loadparm.c smbd/open.c smbd/oplock.c: Started on kernel oplock
        code - checking forced by above issue. Should not be used
        currently.

Jeremy.
(This used to be commit f939efac9e)
1998-09-18 17:50:18 +00:00
Jeremy Allison
717f538e2e Fixed compile errors in new code.
Jeremy.
(This used to be commit dbd8ce8a70)
1998-09-18 17:32:35 +00:00
Samba Release Account
6527cd8d0b preparing for release of 2.0.0 alpha 6
(This used to be commit 008697d151)
1998-09-18 14:05:05 +00:00
Andrew Tridgell
2e6f6bc7f8 oops ... I got the filenames wrong in my cleanup of the wins database
save, so it started saving weird filenames (from an unitialised
fstring).

chaos reigns!
(This used to be commit 20a550d61e)
1998-09-18 13:52:30 +00:00
Richard Sharpe
c198d4c8be Adding rewritten restore code ... Old code is still there
surrounded by a OLD_DOTARPUT.
(This used to be commit 00ba54d4ee)
1998-09-18 12:47:46 +00:00
Andrew Tridgell
d1a82e643b got rid of SMB_STRUCT_STATVFS. I don't think we should be defining
structures that only apply on some platforms.
(This used to be commit 926591067c)
1998-09-18 03:53:14 +00:00
Andrew Tridgell
c7da9992cb gto ri of a bunch more #ifdef LARGE_SMB_OFF_T checks by introducing a
SOFF_T() macro for setting an SMB_OFF_T variable

also limited mmap based reads to MAX_MMAP_SIZE. We really can't mmap
2^50 bytes due to virtual address space problems.
(This used to be commit 4e784b1889)
1998-09-18 03:00:20 +00:00
Andrew Tridgell
fdc07d1417 added a SMB_OFF_T_BITS define, allowing us to get rid of most of the
#ifdefs for LARGE_OFF_T.
(This used to be commit 724b9508c2)
1998-09-18 02:30:03 +00:00
Andrew Tridgell
bc3766c5bc fixed a typo (LLARGE_SMB_OFF_T instead of LARGE_SMB_OFF_T)
(This used to be commit 3e77d94cd2)
1998-09-18 02:28:21 +00:00
Andrew Tridgell
b3b44e02f3 removed another use of the LL suffix. Hopefully this is the last one
(a grep doesn't show any more)
(This used to be commit c1bd188744)
1998-09-18 02:27:24 +00:00
Andrew Tridgell
55c492fba1 fixed a usage of off_t that should have been SMB_OFF_T
(This used to be commit 24ae765701)
1998-09-18 02:26:36 +00:00