1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

76 Commits

Author SHA1 Message Date
Andrew Tridgell
527e824293 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
(This used to be commit c41fc06376)
2001-07-04 07:36:09 +00:00
Andrew Tridgell
87fbb7092b The big character set handling changeover!
This commit gets rid of all our old codepage handling and replaces it with
iconv. All internal strings in Samba are now in "unix" charset, which may
be multi-byte. See internals.doc and my posting to samba-technical for
a more complete explanation.
(This used to be commit debb471267)
2001-07-04 07:15:53 +00:00
Andrew Tridgell
751ba9d051 setup workgroup when found
(This used to be commit 33aefc76e8)
2001-02-20 10:13:48 +00:00
Andrew Tridgell
abb9a2de72 implemented a much nicer name_status() interface. It now returns a
list of structures rather than the dodgy parsing code we had before

this also gets smbw working correctly with no initial workgroup (using
name_status_find on __MSBROWSE__ returns)
(This used to be commit f2be88a873)
2000-12-20 03:22:51 +00:00
Tim Potter
a56ca9e2a4 Added support for SERVICESF shared variable to change configuration file
used in lp_load().
(This used to be commit 4d80ee4f41)
2000-12-13 04:19:48 +00:00
Andrew Tridgell
452d050297 added support for browsing the list of workgroups at the top level in
smbw
(This used to be commit 8f97d59186)
2000-12-11 00:09:06 +00:00
Tim Potter
8f338ee3dd Fetch authentication info before actually using it.
(This used to be commit 600eb0eb00)
2000-11-11 01:21:31 +00:00
Tim Potter
ae7911e4d8 Added a authentication hook to smbwrapper which allows a (username,
workgroup, password) tuple to be provided by another function.
(This used to be commit 644c78d64a)
2000-11-01 04:31:19 +00:00
Andrew Tridgell
16e4503cca got smbw to compile again on Linux
(This used to be commit 614fd4119c)
2000-07-06 02:28:44 +00:00
Herb Lewis
a36d737c88 removed extra arguements from make_nmb_name calls
(This used to be commit d97f5d57d0)
2000-03-16 17:58:08 +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 453a822a76)
1999-12-13 13:27:58 +00:00
Luke Leighton
5a9859c7b0 removed encrypt-password code pre-cli_session_setup(), session setup
fn decides whether to encrypt password or not.
(This used to be commit 6d14db6a6c)
1999-01-29 19:31:52 +00:00
Luke Leighton
4af8d7aa29 - got client code cleartext passwords working again in cli_session_setup.
needed this for some tests.

- removed code that said "if lm password is not encrypted then encrypt both
  lm and nt passwords".  actually it said "if lm password length is not 24
  bytes and we're in security=user mode..."

  it didn't bother to check whether the nt password was NULL or not, and
  doing the encryption inside cli_session_setup is the wrong place.

- checked all instances where cli_session_setup is called with cleartext
  passwords that are expected to then be encrypted (see above) with the
  test "if pwlen != 24...".  there was only one: all the others either
  provide encrypted passwords, do null sessions or use
  cli_establish_connection.

* recommendation: use cli_establish_connection() in smbwrapper/smbw.c
(This used to be commit 2a509e9606)
1999-01-27 00:08:33 +00:00
Jeremy Allison
768761820e Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls.
Tidied up some of the mess (no other word for it). Still doesn't
compile cleanly. There are calls with incorrect parameters that
don't seem to be doing the right thing.

This code still needs surgery :-(.

Jeremy.
(This used to be commit 18ff93a9ab)
1998-11-17 20:50:07 +00:00
Andrew Tridgell
2db96e3047 fixes for OSF1 compilation
(This used to be commit 5be3c37f50)
1998-11-13 03:37:01 +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 bacd3e9d20)
1998-11-09 20:33:37 +00:00
Andrew Tridgell
c90d22c6c5 handle the case of an intermediate binary not loading smbwrapper.so
(for example /usr/bin/man because it is setgid).
(This used to be commit 85f639ab2b)
1998-10-24 08:14:17 +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 2565ccf9de)
1998-10-24 08:08:05 +00:00
Andrew Tridgell
4140f2bfc1 make sure that apps can't close one of the internal smbw file
descriptors by catching close attempts on those fds and returning
EBADF.
(This used to be commit 9d863fb168)
1998-10-24 06:36:22 +00:00
Andrew Tridgell
517806e676 fixed problems with PWD - we no longer use the PWD env variable
instead the shared variable area is used.

this fixes problems with /bin/sh under solaris
(This used to be commit 4eb7b5c6a8)
1998-10-23 01:27:23 +00:00
Andrew Tridgell
ad64fc6bc5 removed setenv(), replaced with smbw_setenv()
(This used to be commit 72bce217ef)
1998-10-20 06:45:18 +00:00
Jeremy Allison
60cf45b2bc smbd/nttrans.c smbd/trans2.c: First fixes for NT5.0beta2. That redirector
has some *horrible* bugs !
smbwrapper/shared.c smbwrapper/smbsh.c smbwrapper/smbw.c: Fixed gcc warnings.
Jeremy.
(This used to be commit 76448d1d82)
1998-10-20 03:17:43 +00:00
Andrew Tridgell
33790c4150 added command line options to smbsh
(This used to be commit 9b249c075e)
1998-10-19 02:49:48 +00:00
Andrew Tridgell
f08565a834 - don't use env variables for passwords and usernames (yeah!)
- added a shared variable area based on a unlinked open file, and
  implement a general get/set interface to it
- cache hostname lookups and master ip lookups in shared variable area
(This used to be commit 279cbe69ef)
1998-10-19 01:03:00 +00:00
Jeremy Allison
fc62d6bf36 Small tidyups for gcc in 'preen' mode....
Jeremy.
(This used to be commit 60dc1a4a00)
1998-10-17 17:41:13 +00:00
Andrew Tridgell
56c5dc7de1 changed some debug levels
(This used to be commit 121e321a12)
1998-10-16 23:05:19 +00:00
Jeremy Allison
f3793be165 Re-added code to tell the user how many open files they
have. Needed for server diagnosis purposes...
Jeremy.
(This used to be commit 04d79a9ae5)
1998-10-16 06:16:10 +00:00
Luke Leighton
5a9a3ab344 tridge, i had to put a #ifdef _STAT_VER_LINUX_OLD round a bit of code
that didn't have _STAT_VER_LINUX_OLD defined.  maybe you want to sort
this out properly...
(This used to be commit aa9dd697d4)
1998-10-14 07:16:00 +00:00
Luke Leighton
8158620124 dce/rpc.
(This used to be commit e0445419b2)
1998-10-09 20:17:11 +00:00
Luke Leighton
6909350ed9 dce/rpc
(This used to be commit 62fdeef1b7)
1998-10-08 23:57:46 +00:00
Andrew Tridgell
788263ba2f - fixed a bunch of warnings and minor errors
- got smbtorture to compile
- removed %D from some of lukes code - Luke, what is %D? it ain't
  portable anyway
(This used to be commit 91597c12fb)
1998-10-08 06:21:33 +00:00
Andrew Tridgell
0dc8033f7d don't prototype the acl() functions
(This used to be commit 9efbb21f35)
1998-10-07 23:57:02 +00:00
Andrew Tridgell
bdec84db60 restore errno after smbw initialisation
(This used to be commit f374706cbf)
1998-10-07 11:07:24 +00:00
Andrew Tridgell
6e77210d8a - updated docs to say OSF1 works
- more solaris acl fixes
(This used to be commit 8fc7bc0ee6)
1998-10-07 10:35:18 +00:00
Andrew Tridgell
829e72fe9c yet another attempt at making this stuff portable. This time I use
minimal includes in wrapped.c
(This used to be commit fd6a59d8ca)
1998-10-07 09:57:22 +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 6f2239c935)
1998-10-07 07:55:14 +00:00
Andrew Tridgell
029144cd8c do an anonymous login if the username/password is rejected.
(This used to be commit 0ee3e0c623)
1998-10-07 00:40:18 +00:00
Andrew Tridgell
404f14fb36 implemented unix semantics for rename in smbwrapper
(This used to be commit a5c18f9c82)
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 b7ecbca3af)
1998-10-06 12:23:37 +00:00
Andrew Tridgell
4fe9c5b656 fixed a bug in time setting (utime() call)
(This used to be commit 2f4506a33c)
1998-10-06 11:56:44 +00:00
Andrew Tridgell
58f6c75bab implemented attribute mapping and chmod. file attributes are mapped in
the same manner as smbd. See the README for a full explanation.
(This used to be commit 0a5dcddd3f)
1998-10-06 11:14:52 +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 71acf338d7)
1998-10-06 10:24:22 +00:00
Andrew Tridgell
0f87638b5f use smbw_errno() not smbw_error()
(This used to be commit be7ae2a4e7)
1998-10-06 03:12:40 +00:00
Andrew Tridgell
36ee52334b - fixed errno return in smbw_open()
- updated README a bit
- fixed Linux compilation of utime()
(This used to be commit 4bacf32755)
1998-10-05 13:51:19 +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 a5405f1ab0)
1998-10-05 12:17:01 +00:00
Andrew Tridgell
81905488ff ported smbwrapper to SunOS4. It seems to work. pity so many binaries on
my SunOS box are statically linked.
(This used to be commit 541f1c4211)
1998-10-05 08:44:46 +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 c6ee915336)
1998-10-05 04:58:33 +00:00
Andrew Tridgell
ca3d1b9bf0 removed requirement of having a smb.conf for smbwrapper to work.
(This used to be commit af58bf2ff8)
1998-10-05 02:55:53 +00:00
Andrew Tridgell
92b21b3e82 - added pread pread64 pwrite pwrite64 and open64
- fixed utime() for null tbuf
(This used to be commit 9047bf59b4)
1998-10-05 02:31:39 +00:00
Andrew Tridgell
93bbfce02b added a function set_maxfiles() to set our file rlimit to the max
possible and return the max.
(This used to be commit 7a7b5ee168)
1998-10-05 01:57:03 +00:00