1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

101 Commits

Author SHA1 Message Date
Luke Leighton
5b863af4c0 cleaning up conflicts between group code not yet committed and
changes from yesterday by me, jeremy and andrew.

jeremy, your ACB_PWNOTREQ mod would have caused a crash if the user
didn't exist (first check should be for smb_pass != NULL)
(This used to be commit cbac0f165d351ba9497c222e55e453d781376e58)
1998-11-12 16:07:00 +00:00
Andrew Tridgell
29e36b7134 extracted the password change code from smbpasswd and used it in swat
instead of opening pipes and other horrible stuff.
(This used to be commit 49bf19710345a59a2d17cd449be1a132885ed821)
1998-11-12 07:06:48 +00:00
Herb Lewis
4dd4f1798e Added needed flag for swat password changing
I forgot to mention that the changes to swat were contributed by
John Sygulla
(This used to be commit aa0cec0470235d2508a179b3d631a9a37c9aebda)
1998-11-11 21:41:44 +00:00
Jeremy Allison
b94520e424 Makefile.in: Added target for makeyodldocs - not used by default.
rpc_client/cli_reg.c: The perils of cut-n-paste coding include using variables before
                      they are initialised :-).
script/makeyodldocs.sh: Remove the intermediate files.
Jeremy.
(This used to be commit 88031bca5c528157ef2fe1d976a245b186ff8959)
1998-11-11 01:33:57 +00:00
Luke Leighton
1e1c2ec93c rpcclient registry commands.
(This used to be commit 36fcb4a6e643a05d06a2a273d74318fee7f2c647)
1998-11-10 19:05:00 +00:00
Luke Leighton
313d8ef27d util functions split into relevant modules, first pass.
(This used to be commit d448906e68cec5019fa83f7d31b862efff41e2da)
1998-11-10 18:14:16 +00:00
Jeremy Allison
5c3295c16d Default for SMB_PASSWD program was set to smbpasswd ! This explained the problems
John & Andrew were having with smbpasswd. This would cause the smbpasswd
to be changed *twice* - this the second decrypt would fail.
Changed it to be "/bin/passwd" and changed the name of the macro
to PASSWORD_PROGRAM to make it clear this is not an smb password
changer.
Jeremy.
(This used to be commit 8c1625365479f12fa544d83e1a9f72a548398108)
1998-11-10 00:37:14 +00:00
Jeremy Allison
e4f974c611 Makefile.in: Removed rpc_server/srv_ldap_helpers.c per J.F.'s instructions.
client/client.c:
client/clitar.c:
include/client.h:
smbwrapper/smbw_dir.c:
smbwrapper/smbw_stat.c:
smbwrapper/smbw.c:
lib/util.c: Converted all use of 'mode' to uint16.
smbd/quotas.c: Fixed stupid comment bug I put in there :-(.
printing/printing.c: Fix from J.F. to new code.
Jeremy.
(This used to be commit bacd3e9d2036a804e73644a28fc498f229c8446c)
1998-11-09 20:33:37 +00:00
Andrew Tridgell
8c62b28e0e converted smbclient to use clientgen.c rather than clientutil.c
I did this when I saw yet another bug report complaining about
smbclient intermittently missing files. Rather than applying more
patches to smbclient it was better to move to the more robust
clientgen.c code.

The conversion wasn't perfect, I probably lost some features of
smbclient while doing it, but at least smbclient should be consistent
now. It if fails it should _always_ fail rather than giving people the
false impression of a reliable utility.

the tar stuff seems to work, but hasn't had much testing as I never
use it myself. I'm sure someone will find bugs in my conversion of
smbtar.c. It was quite tricky as it did a lot of its own SMB calls. It
now uses clientgen.c exclusively.

smbclient is still quite messy, but at least it doesn't build its own
SMB packets.

I haven't touched smbmount as I never use it. Mike, do you want to
convert smbmount to use clientgen.c?
(This used to be commit e14ca7765ace1b721dad8eca4a527a4e4a8f1ab8)
1998-11-09 03:45:49 +00:00
Jeremy Allison
68d3842dc7 Added scripts/convert_smbpasswd to SCRIPTS
Jeremy.
(This used to be commit 60553b3dc295d0df3ce42ad81a26edb45e234021)
1998-11-05 02:58:37 +00:00
Jeremy Allison
01e04614c7 Makefile.in configure configure.in include/proto.h smbd/noquotas.c smbd/quotas.c:
Added quotas patch for autoconf from Dejan Ilic <svedja@lysator.liu.se>.
printing/printing.c: Filenames with spaces patch from Allan Bjorklund <allan@umich.edu>
utils/nmblookup.c: Fix usage() function.
smbd/reply.c: Split out the security=server and security=domain checks into
              check_server_security() and check_domain_security() to aid the
              writing of the 'hack' appliance mode invented by John Schimmel.
Jeremy.
(This used to be commit f09ab9b52251087a58af92ec753537ca34a970fc)
1998-11-03 02:25:28 +00:00
Alexandre Oliva
e746555102 do not print garbage just because someone does not want dependencies :-)
(This used to be commit 7f3c96c5dae19b203bf79a88225768003d2f7516)
1998-10-30 16:37:39 +00:00
Alexandre Oliva
610251a631 modify dependency tracking code so that it:
1) inserts the pathname of the object file in the dependency file
   (currently, gcc will only generate the basename)
2) the directory tree within .deps mirrors the source tree, so that we use
   shorter filenames
problem 1 was reported to me by Tom Angert <angert@bellsouth.net>
(This used to be commit 274a2cff30f7325d1bc1647075a6c4f887e42e4f)
1998-10-29 17:55:58 +00:00
Christopher R. Hertel
377156cd75 This should have gone with the last batch.
Again, to compile debug2html, you need to do a 'make debug2html'.

Chris -)-----
(This used to be commit bd0c5ee8e796bc624bf51fbca1c894ca6190b4ea)
1998-10-28 20:35:27 +00:00
Christopher R. Hertel
e04759fbab Fixed a small bug in debug2html. It wasn't properly checking EOF. The
current status is "it works".  I need to add some syntax error recovery
and a usage message.  Basic stuff.

I've also modified Makefile.in.  If you want to compile it you'll have to
do a 'make debug2html', as I used smbtorture as a model.  We can decide
later if this tool is useful enough to be compiled always.

BTW, a 'make realclean' fails because the bin directory isn't empty.
That's because it doesn't delete optionally compiled files such as
smbtorture and debug2html (and because of the CVS subdirectory, but I
think that's only a problem for developers).

Chris -)-----
(This used to be commit e86fd87a3806f4c161a8f887bbdd4d400ae56ac2)
1998-10-27 23:28:29 +00:00
Andrew Tridgell
4586b8737a added a vsnprintf() implementation from cvslock. See the notes on the
license at the top of lib/snprintf.c

I've always been slightly uneasy about our half-baked vslprintf()
implementation and the risks on platforms that don't have vsnprintf()
so when I saw this code in another GPLd package I wanted it for Samba.
(This used to be commit e2cb50af45be6683d02ab48a6648816ee3d52ab1)
1998-10-26 23:40:33 +00:00
Tim Potter
f9881e8e74 Fix for -fpic rules (.c.po and .c.po32) when using --enable-maintainer-mode.
(This used to be commit 552175fdcb78c79833464648b5ccdc91b935e69c)
1998-10-24 06:23:02 +00:00
Andrew Tridgell
1e60cc49f5 don't enable smbsh/smbwrapper on systems where we can't work out how
to generate PIC code
(This used to be commit a66c56d70e7e663f3a19cbfcc2e704653d8fc9b2)
1998-10-23 01:51:31 +00:00
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