1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

133 Commits

Author SHA1 Message Date
Luke Leighton
a0512ce5ff rpctorture command
(This used to be commit b4ae65e2d0582274d67d02ea190f6d3d83b48594)
1998-10-22 22:19:08 +00:00
Andrew Tridgell
b19db1e749 fixes for solaris
(This used to be commit 235a8463b56107d97ee5523eed41967e8ccf27b6)
1998-10-20 06:43:36 +00:00
Andrew Tridgell
bd52d5f513 removed my badly-done attempt at handling compilers that don't handle
-c and -o at the same time.

my shell script code wasn't portable
(This used to be commit 759c72822b9b1e8c50b378378f3a45f1e7604ade)
1998-10-20 03:10:29 +00:00
Andrew Tridgell
f52b898a63 - added smbrapper/shared.o
- added suport for C compilers that don't handle -c and -o at once
(This used to be commit f1672d055716f4b701e22801cbf5cf5573081685)
1998-10-19 01:00:33 +00:00
Luke Leighton
c404bb7754 rpcclient interactive login (with trust account changing if you are root)
cli_session_setup handles null sessions correctly
(This used to be commit 60c0f22a4e84703467006dfe1971384a6294a9aa)
1998-10-15 23:51:07 +00:00
Andrew Tridgell
21aed50c09 made smbsh a standard binary
(This used to be commit aea466aef7127607884f484c5987b9a5e2e362aa)
1998-10-13 08:26:48 +00:00
Andrew Tridgell
60877fdd8d add "smbtorture" alias for building smbtorture
(This used to be commit 230e4eb3dd9753899564fd6ec0e0291ee00be8c4)
1998-10-08 06:19:29 +00:00
Andrew Tridgell
3d601dafe9 compile to .po.o first then mv to .po in order to make the sun
compilers happy
(This used to be commit 6625b696469089138f0bd01ab966f30ba509dbda)
1998-10-07 13:27:54 +00:00
Luke Leighton
c07b2bdf90 dce/rpc
(This used to be commit eb279cabd059603b6c8d9b74e4fd31c4ffe87593)
1998-10-06 22:03:04 +00:00
Andrew Tridgell
01b838bfbb clean needs to delete po32 and .so files
(This used to be commit 969eb180646977a01e6d44bde1e13343fd0fa1f7)
1998-10-05 23:34:50 +00:00
Andrew Tridgell
c7d3ad04f1 tell the user we are producing -32 code for the .32.so library
(This used to be commit e9676812affbdaa0519415fff85d7e31383e7e2f)
1998-10-05 23:31:55 +00:00
Andrew Tridgell
c2bcd64269 the IRIX make is very fussy amount comment lines. If a comment line
has a trailing \ then it continues the comment and wipes out the next
non-blank line!

be careful when commenting out bits of the Makefile
(This used to be commit 450b1813bf965cc43b9551f265d824b13885bff4)
1998-10-05 23:30:27 +00:00
Luke Leighton
b4fb4caf90 rpcclient srvsvc commands.
(This used to be commit 1a9a22c657c46648adaa98ac1fe394ce4bce11f0)
1998-10-05 15:41:41 +00:00
Andrew Tridgell
bfaff8ed1a got smbwrapper working on IRIX 6.4. Things got a bit tricky,
especially as the headers get the syscall numbers wrong!
(This used to be commit a5405f1ab069a3123a819311a87ca84f2c5f0fea)
1998-10-05 12:17:01 +00:00
Andrew Tridgell
f151bf0694 fixed Makefile for IRIX make (it doesn't know %.o=%.po, leaving off
the % works)
(This used to be commit 7c4ad07b5989feee6ab84eb7ff2fe2e76e1475a6)
1998-10-05 10:53:07 +00:00
Andrew Tridgell
fab6d20f5d new file realcalls.c
(This used to be commit 23f71b979ad7dcfbf461fa4f261ab9dbd0b602fb)
1998-10-05 08:42:22 +00:00
Alexandre Oliva
8327eeabfb just try to rmdir bin after removing bin/.dummy, in realclean
(This used to be commit ef9eca92bbaf5e22765e562b3f4b0e2407a57206)
1998-10-05 03:44:12 +00:00
Andrew Tridgell
d6da5e4e9d it's a bit dangerous to use rm -rf
(This used to be commit 102e8c85ff1839103be947c20a4df93ab88bded1)
1998-10-05 03:24:08 +00:00
Alexandre Oliva
601e5b30b5 rm object files created by mkdir probes
make sure it works even if clobbering is not allowed
(This used to be commit eff11b81fd4ac807cf89a56a04c5b26ee9cd8660)
1998-10-05 02:56:31 +00:00
Alexandre Oliva
02b6c4eff2 Speed up directory creation for the common case (i.e., it exists already)
Link $(LIBS) in when creating smbwrapper.so

rm -rf bin in distclean

rm smbwrapper files in realclean

remove .h from .SUFFIXES
(This used to be commit a38e7ea04ad74996c91cb1a4f9ed07ba98752a9b)
1998-10-05 00:43:48 +00:00
Alexandre Oliva
06eaf71e43 bin/cvsignore: deleted, so that bin can be removed from the repository
.cvsignore: added bin; it is no longer part of the source tree

smbwrapper/smbsh: now auto-generated from smbsh.in
smbwrapper/.cvsignore: added smbsh

configure.in: generate @builddir@
configure, include/stamp-h.in: regen

Makefile.in: new target `smbwrapper'; sped up directory creation
(This used to be commit 8f95ee8fc32d74f20cca489ecd3f7e34e773db2f)
1998-10-04 22:42:05 +00:00
Alexandre Oliva
11c5c17668 Avoid the message `make: [.deps/.P] Error 1 (ignored)'
(This used to be commit 9ba19d19ad348bc3be2fc9a2b7ac35b895c0d143)
1998-10-04 20:54:05 +00:00
Andrew Tridgell
4f31812714 fixed some stuff for Linux that porting to Solaris broke
(This used to be commit ee349bb329498e6f5852c1bf21c48563d076dc88)
1998-10-04 14:56:19 +00:00
Andrew Tridgell
3a8232644e started basic support for solaris 2.5 in smbwrapper.
(This used to be commit e5c7cabae4826bde819b94a48bc4674dcd69da21)
1998-10-04 14:02:50 +00:00
Andrew Tridgell
57a58f592b more smbw cleanups.
- cleaned up prototyping. Unfortunately we can't auto-prototype
  wrapped.c because it replaces system functions.
- split stat functions into smbw_stat.c
(This used to be commit 04e92e692e49234df6fbbfd07a33b315ed62f0de)
1998-10-04 04:33:56 +00:00
Andrew Tridgell
819a6785b3 simplied the layout of the smbwrapper code. All those 3 line files
were getting unwieldy
(This used to be commit a59d4e93da2cb2bb61a632ce85af0888a87a03e2)
1998-10-04 01:36:40 +00:00
Andrew Tridgell
1fa3478aaf drat.
on Linux 2.0 libc detects the lack of getdents in the kernel and used
opendir() etc. so we need to implement those ...

it would be needed for a port to others OSes anyway I suppose.
(This used to be commit e3fd861590dd27cc643c2d8d0cb5a5651c84d9ac)
1998-10-03 16:34:57 +00:00
Andrew Tridgell
86701c6a3c added fchdir() support
(This used to be commit a42729dbf5414f54e5d623514533958c62ada5f6)
1998-10-03 15:28:47 +00:00
Andrew Tridgell
4d9ab2add2 support getcwd() in smbwrapper
(This used to be commit d516ee383c287550a5953cf5ea1cd69cc957e1aa)
1998-10-03 13:58:07 +00:00
Andrew Tridgell
aa7aacacab added mkdir() and rmdir() support
(This used to be commit ce748e5ea94380147a01de8235b343c7e2852bee)
1998-10-03 13:27:56 +00:00
Andrew Tridgell
c0dd3c5c5c added lseek
(This used to be commit 2fbb544d38f7824dc6272517bded4be952b073b1)
1998-10-03 11:51:01 +00:00
Andrew Tridgell
909ca3a887 added basic chmod(), chown() and utime() support (not fully
implemented).

this is enough to be able to edit files using emacs on the smbwrapper
filesystem
(This used to be commit e5c3f36ef2e8fc0195d70b2f5db7d88d9ae4507a)
1998-10-03 10:24:49 +00:00
Andrew Tridgell
cce5f09a90 added unlink() and rename() support to smbwrapper
(This used to be commit b85d96144728e8a29c7c1114462e28bf3b144b80)
1998-10-03 09:39:11 +00:00
Andrew Tridgell
2abaffe61a - remove .p files in make clean
- added readlink support to smbwrapper
(This used to be commit 4b5217f996fbc1bb679992068c6c4fa28677c37e)
1998-10-03 08:27:39 +00:00
Luke Leighton
732d4ff7da Makefile.in :
- added srvsvc client files

clientgen.c :

	- replaced cli_error(cli, int *cls, int *err) with
	  cli_error(cli, uint8 cls, uint32 *err).  this version detects
	  32 bit status messages.  the DOS error "MORE_DATA", the
	  equivalent of the 32 bit *warning* 0x8000 0005
	  (STATUS_BUFFER_OVERFLOW), was being processed as an error,
	  terminating the cli_receive_trans() call.

cli_pipe.c :

	- replaced calls that had been incorrectly modified from
	  32 bit warnings (0x8000 0005 - STATUS_BUFFER_OVERFLOW)
	  to 8 bit DOS errors (0x01 0xEA - MORE_DATA).
	  the use of the old version of cli_error (DOS only)
	  instead of the new one (DOS and 32 bit) caused the
	  dce/rpc client code to fail.

	- replaced 2 space indentation with tab indentation in all functions.

cli_srvsvc.c :
cmd_srvsvc.c :

	- added these files back in, fixing them up to use jeremy's
	  modified versions of the dce/rpc client functions.

parse_srv.c :

	- added back in some "unused" functions required by dce/rpc
	  client-side code.  it would be helpful if all such "unused"
	  functions could be added back in.

rpcclient.c :

	- added "session", "file", "share", "connection" enumeration
	  functions back in.  these are equivalent to nt's "NetXXXXXEnum"
	  Win32 (MSDN) functions.

	- added "srvinfo" function back in.  this is equivalent to
	  nt's NetServerGetInfo Win32 (MSDN) function.
(This used to be commit bcf39ffdcc64e049bca2d70a394a99976291e81d)
1998-10-02 21:09:23 +00:00
Andrew Tridgell
643e95f8e9 makefile support for smbwrapper
dosn't compile by default. You need to do "make smbwrapper/smbwrapper.so"
(This used to be commit 686182eb7140ade590c962bc8e09e895a22b3119)
1998-10-02 12:33:44 +00:00
Alexandre Oliva
c393bb69de fix directory creation mechanism; the optimized version would not work :-(
(This used to be commit 796475ad5ac2da409d1676d3ae6530654697028c)
1998-09-29 05:16:20 +00:00
Alexandre Oliva
6ec9f5d171 optimize creation of directories in build tree
ensure that bin exists when needed
(This used to be commit 87b3e4347a5a394471f0d4f34f093ec2195dfd4d)
1998-09-29 05:05:46 +00:00
Alexandre Oliva
a2d7f765e8 get away with dummy and .dummy files
(This used to be commit 90a8a02484a0897b053fd6531b7fec5d23098b6f)
1998-09-29 04:52:17 +00:00
Michael Warfield
cdaa53e3ef Two changes in this ball...
1) Changes to smbmnt.c, smbmount.c, and smbumount.c allow them to compile on
both RedHat 4.x (libc 4.x) systems and RedHat 5.x (glibc 2) systems.

2) Changes to Makefile.in and configure.in (and subsequently configure) are to
configure for smbmount, smbumount, and smbmnt to compile.

This adds a "--with(out)-smbmount" option to configure.  Sanity checking is
not present yet.  You can specify this if you are not on linux, it just
won't compile.
(This used to be commit 8a4730f61923577b0bd9e09ef1a00538f7dfb0de)
1998-09-28 19:18:21 +00:00
Alexandre Oliva
cf971f88ac automated generation of .dummy files for each subdirectory;
dummy.in files are no longer needed, and new directories will be taken
care of automatically, at configure (or config.status --recheck) time
(This used to be commit 237a8e5fe62d757c04b8207cbbee4df1470cfe4e)
1998-09-28 00:14:36 +00:00
Jeremy Allison
b053652d49 Added Kerberos4 support patches from Johan Hedin <johanh@fusion.kth.se>
Jeremy.
(This used to be commit 548634915f21f774b7efb06f138c8fb7bc089daa)
1998-09-26 03:30:15 +00:00
Jeremy Allison
5f7ee36056 Makefile.in: Fixed bug with continuation line causing proto to fail.
Added $(PROGS) $(SPROGS) as targets for make clean.
acconfig.h: Added HAVE_IRIX_SPECIFIC_CAPABILITIES.
configure.in: Added sys/capability.h header check.
              Added function checks for srandom random srand rand.
              Added HAVE_IRIX_SPECIFIC_CAPABILITIES test.
includes.h: Added #include <sys/capability.h>.
ntdomain.h: Moved struct acct_info into here from smb.h
smb.h: Added KERNEL_OPLOCK_CAPABILITY define.
       Moved enum action_type into rpcclient.h
       Moved struct cli_state into client.h
       Moved struct nt_client_info, struct tar_client_info, struct client_info
             into rpcclient.h
lib/genrand.c: Changed to use sys_random() & friends.
lib/smbrun.c: Lose capabilities after fork.
lib/system.c: Added set_process_capability(), set_inherited_process_capability()
              sys_random(), sys_srandom().
lib/util.c: Added Ander's EFBIG lock check to fcntl_lock for 64 bit access to an
            32 bit mounted NFS filesystem.
nmbd/nmbd.c: Changed to use sys_random() & friends.
nmbd/nmbd_browsesync.c: Changed to use sys_random() & friends.
passdb/ldap.c: Missed one pdb_encode_acct_ctrl call.
passdb/passdb.c: Changed to Ander's code for ' ' characters.
passdb/smbpass.c: Added Ander's code to reset ACB_PWNOTREQ.
script/mkproto.awk: Added 'long' to prototypes.
smbd/chgpasswd.c: Lose capabilities after fork.
smbd/open.c: Do the mmap *after* the kernel oplock.
smbd/oplock.c: Removed stub code from kernel oplock path.
               Added set_process_capability(), set_inherited_process_capability() calls.
smbd/reply.c: Initialize count = 0, offset = 0.
smbd/server.c: Added set_process_capability(), set_inherited_process_capability() calls.
tests/summary.c: Ensure we have RANDOM or RAND.
utils/smbpasswd.c: Added Ander's code to reset ACB_PWNOTREQ.
utils/torture.c: Changed to use sys_random() & friends.

Jeremy.
(This used to be commit e8be306f23963ac00b1a383ebe0cc1421529fb02)
1998-09-25 23:40:49 +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 d0f7b0d915973ccb85409af3d6d951a716cd66d2)
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 8d23da91cbd74a45a5b030688fd89d88a25738dc)
1998-09-25 21:20:37 +00:00
Luke Leighton
66d5d73a5d added rpcclient program
(This used to be commit aa38f39d67fade4dfd7badb7a9b39c833a1dd1ca)
1998-09-25 21:01:52 +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 64cba1cc8e689bcde2dc124c511da086c33fa4a8)
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 f123172c42b1f9ac73e57856e4ee8715fdfb76cd)
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 811fe3b174b9d7c57966491ab867637b82fff607)
1998-09-24 01:12:43 +00:00
Alexandre Oliva
ac39ce3eba replace getpass() with getsmbpass() if getsmbpass.c compiles
(This used to be commit 9a5bdf5c1bef689fe0d6879949df869efbc34783)
1998-09-21 11:34:44 +00:00