1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

27 Commits

Author SHA1 Message Date
Andrew Tridgell
452d050297 added support for browsing the list of workgroups at the top level in
smbw
(This used to be commit 8f97d59186ee3b52f623d30dfb7b195ec721ec0c)
2000-12-11 00:09:06 +00:00
Andrew Tridgell
3db52feb1f first pass at updating head branch to be to be the same as the SAMBA_2_0 branch
(This used to be commit 453a822a76780063dff23526c35408866d0c0154)
1999-12-13 13:27:58 +00:00
Luke Leighton
801d625898 issues spotted by herb.
(This used to be commit 57e025494692b1e54d4d83192e6c15d4d1454353)
1998-12-07 21:40:53 +00:00
Luke Leighton
30038de462 weekend work. user / group database API.
- split sam_passwd and smb_passwd into separate higher-order function tables

- renamed struct smb_passwd's "smb_user" to "unix_user".  added "nt_user"
plus user_rid, and added a "wrap" function in both sam_passwd and smb_passwd
password databases to fill in the blank entries that are not obtained
from whatever password database API instance is being used.

NOTE: whenever a struct smb_passwd or struct sam_passwd is used, it MUST
be initialised with pwdb_sam_init() or pwd_smb_init(), see chgpasswd.c
for the only example outside of the password database APIs i could find.

- added query_useraliases code to rpcclient.

- dealt with some nasty interdependencies involving non-smbd programs
and the password database API.  this is still not satisfactorily
resolved completelely, but it's the best i can do for now.

- #ifdef'd out some password database options so that people don't
mistakenly set them unless they recompile to _use_ those options.

lots of debugging done, it's still not finished.  the unix/NT uid/gid
and user-rid/group-rid issues are better, but not perfect.  the "BUILTIN"
domain is still missing: users cannot be added to "BUILTIN" groups yet,
as we only have an "alias" db API and a "group" db API but not "builtin-alias"
db API...
(This used to be commit 5d5d7e4de7d1514ab87b07ede629de8aa00519a1)
1998-11-29 20:03:33 +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
Andrew Tridgell
fb556e14f3 volker was concerned about unique inode numbers and smbsh. This set of
changes uses the unique index number from a SMB_QUERY_FILE_ALL_INFO to
try to provide inode numbers. If it is 0 then use the hash of the
filename as before.
(This used to be commit 2565ccf9de9d5e80fdb5bcadbc7130faba386d95)
1998-10-24 08:08:05 +00:00
Andrew Tridgell
8c87f61e99 don't use SMBW_PWD_ENV any more
(This used to be commit 252fe1e7014b2bf79a3abfa52fb77db9129074c7)
1998-10-23 01:29:38 +00:00
Andrew Tridgell
ad64fc6bc5 removed setenv(), replaced with smbw_setenv()
(This used to be commit 72bce217ef474f056d8f6675667ec78d1772ff37)
1998-10-20 06:45:18 +00:00
Andrew Tridgell
ef2e37cf94 fixed a problem with fchdir() that broke "cvs -d" in smbsh
(This used to be commit 6121f7c8c2d63fd12266327a6f2ac9a5e717dccc)
1998-10-08 01:23:33 +00:00
Andrew Tridgell
e7001e26cb fixed a warning on SunOS
(This used to be commit fda52c6fd1ff0c46948bff7156742dab1dd1eacd)
1998-10-07 10:49:27 +00:00
Andrew Tridgell
d836bedb40 more OSF1 changes as well as changes to allow us to use the standard
includes.h in wrapped.c, thus making porting much simpler
(This used to be commit 6f2239c935fdecfefa89227c113df01e3957691a)
1998-10-07 07:55:14 +00:00
Andrew Tridgell
404f14fb36 implemented unix semantics for rename in smbwrapper
(This used to be commit a5c18f9c82f5f76b00ff29c5668b4f0d3e8d6bd0)
1998-10-06 13:10:06 +00:00
Andrew Tridgell
fff618aeb4 added a wrapper for fork()
in a fork we have to close all server connections otherwise we can end
up with two processes writing to the same socket.
(This used to be commit b7ecbca3aff34ff06a445e5ee39efba48261b7e8)
1998-10-06 12:23:37 +00:00
Andrew Tridgell
4fe9c5b656 fixed a bug in time setting (utime() call)
(This used to be commit 2f4506a33c7015f2a176929d794c6c40f1433591)
1998-10-06 11:56:44 +00:00
Andrew Tridgell
ed75bab8e2 added SMBW_PREFIX environment variable (allowing you to specify root
of smb filesystem)

fixed "cd /smb" bug

updated README with full list of environment variables.
(This used to be commit 71acf338d721b106af8d80e7b3a6f318ab75da8b)
1998-10-06 10:24:22 +00:00
Andrew Tridgell
4473ce561b - keep IRIX cc -64 happy
- fixed a chdir bug
(This used to be commit 80d1c5118abaa99fe0f1c9d2089a81c9953cebad)
1998-10-05 12:43:05 +00:00
Andrew Tridgell
4e8b4a20ab got rid of all assembly code and gcc special features. I'm hoping to
get smbsh working with the normal sun compiler
(This used to be commit c6ee915336e1533e1f4f10f14b3d57de01f8fe96)
1998-10-05 04:58:33 +00:00
Andrew Tridgell
0531f4640a this gets smbwrapper working under Solaris 2.6. Not tested much yet.
(This used to be commit 6a1b346d98c10688f0995a6ab8fd155a77ead258)
1998-10-05 01:42:46 +00:00
Andrew Tridgell
770acd0a8f don't list the IPC$ share in directory listings (it causes infinite
recursion)
(This used to be commit 8d74f7bfdc217e95a7e300d06c3bf4e8d4877a6a)
1998-10-04 14:07:18 +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
1970c92c0a support NetServerEnum in smbwrapper. You can now do a ls in /smb/ and
it will list all servers in your workgroup. You can set your workgroup
with the SMBW_WORKGROUP environment variable.
(This used to be commit 64699810e2d94e8648a0a3341b1cc826d4e8bfd9)
1998-10-04 11:25:06 +00:00
Andrew Tridgell
6760e69a68 added support for printing via smbwrapper
You can print using "cp filename /smb/SERVER/PRINTER/jobname"

You can list the current printqueue using ls
(This used to be commit 080fb61b69620e26e8122705383dc2bd0468a519)
1998-10-04 09:42:51 +00:00
Andrew Tridgell
5ade894f32 modified cli_read() and cli_write() to issue multiple outstanding
read/write requests for large reads. up to max_mux requests may be
outstanding. This gives _much_ better throughput and should allow
smbsh to saturate just about any network.

this is an implementation of the "fast SMB" method I described on the
CIFS list a couple of months back.
(This used to be commit c728d1c5d6e4626d2f8e318eab4df32acc8cb505)
1998-10-04 06:22:08 +00:00
Andrew Tridgell
d71c04f927 use dummy file descriptors opened on /dev/null to ensure that the smbw
file descriptor allocation order is identical to the kernels.
(This used to be commit 60a683465647932f7241ba9f92443d5e5294e20b)
1998-10-04 04:48:17 +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
977d601556 - split smbw directory code into smbw_dir.c
- fixed a bug in the handling of multiple connections to different
  servers
(This used to be commit a9f9d8c3d8c18a5ab4c18c1348ee9c8d643880fa)
1998-10-04 03:28:43 +00:00