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

2027 Commits

Author SHA1 Message Date
Jeremy Allison
9579b98237 Added OSF1 changes to HEAD (-lsecurity etc.)
groupdb/groupdb.c: Fixed compile error caught by IRIX compiler.
utils/smbpasswd.c: Fixed SunOS optind, optarg problem.
Jeremy.
(This used to be commit 30af39ae1edf51d5d06a1764982e5df431c142ac)
1998-11-18 22:04:24 +00:00
Jeremy Allison
bb9622bfa6 Fixed crash bug which was assuming that fd_ptr was always non-null
(which is not the case with open directories).
Jeremy.
(This used to be commit c154b1601f5891d664fc538ec8874fa8ef2061e6)
1998-11-18 19:06:51 +00:00
Jeremy Allison
a491ec96fc Fixed problem with HAVE_NETGROUP being used on platforms
that cannot support it.
Jeremy.
(This used to be commit 7a6f25ac4ab0f0bef7a66f26004c15120248ff66)
1998-11-18 01:19:32 +00:00
Jeremy Allison
490439d77a Fixed NT modify timestamp issue.
If a client does a modify timestamp on an open file (which will
do no good at all on UNIX :-) then keep the modify request pending
in the files_struct and apply it at close instead.
Jeremy.
(This used to be commit 92a7a86f0e0255e3812dd35bebfcd653091514ae)
1998-11-17 23:44:52 +00:00
Jeremy Allison
157fe90d2e Changed Makefile.in to use autoconf prefixes.
NOTE: The packaging scripts will have to be changed !!!!

Jeremy.
(This used to be commit 79c259f05cf7cd4f2d3d1bb92fff3bde7acd8a50)
1998-11-17 22:06:59 +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 18ff93a9abbf68ee8c59c0af3e57c63e4a015dac)
1998-11-17 20:50:07 +00:00
Luke Leighton
bb5bea4e19 lookup_alias_name() %s not %d for sid_str
(This used to be commit 2a98135bbc759ab334d76cce98ea673871445db1)
1998-11-17 19:32:06 +00:00
Luke Leighton
4e8eaa6baf somehow this file got missed in the groupdb commit.
(This used to be commit 06da8e49f1cf5d6b954f586f6720ade1c5b8de74)
1998-11-17 18:50:14 +00:00
Luke Leighton
5ae9b41235 make_uni_hdr() reverted accidentally with a -1 on username length
(This used to be commit 7da1b0bb511e6c5e44ab83759914134cf91f6f78)
1998-11-17 18:01:43 +00:00
Luke Leighton
0c7aa2e61a swapped username:uid:[groupridlist]:[aliasridlist] to
u:u:a:g
(This used to be commit 2f456ed92ffbf596945a9ec800c373495fc4e38a)
1998-11-17 17:38:13 +00:00
Luke Leighton
74d539f557 - group database API. oops and oh dear, the threat has been carried out:
the pre-alpha "domain group" etc parameters have disappeared.

- interactive debug detection

- re-added mem_man (andrew's memory management, detects memory corruption)

- american spellings of "initialise" replaced with english spelling of
  "initialise".

- started on "lookup_name()" and "lookup_sid()" functions.  proper ones.

- moved lots of functions around.  created some modules of commonly used
  code.  e.g the password file locking code, which is used in groupfile.c
  and aliasfile.c and smbpass.c

- moved RID_TYPE_MASK up another bit.  this is really unfortunate, but
  there is no other "fast" way to identify users from groups from aliases.
  i do not believe that this code saves us anything (the multipliers)
  and puts us at a disadvantage (reduces the useable rid space).
  the designers of NT aren't silly: if they can get away with a user-
  interface-speed LsaLookupNames / LsaLookupSids, then so can we.  i
  spoke with isaac at the cifs conference, the only time for example that
  they do a security context check is on file create.  certainly not on
  individual file reads / writes, which would drastically hit their
  performance and ours, too.

- renamed myworkgroup to global_sam_name, amongst other things, when used
  in the rpc code.  there is also a global_member_name, as we are always
  responsible for a SAM database, the scope of which is limited by the role
  of the machine (e.g if a member of a workgroup, your SAM is for _local_
  logins only, and its name is the name of your server.  you even still
  have a SID.  see LsaQueryInfoPolicy, levels 3 and 5).

- updated functionality of groupname.c to be able to cope with names
  like DOMAIN\group and SERVER\alias.  used this code to be able to
  do aliases as well as groups.  this code may actually be better
  off being used in username mapping, too.

- created a connect to serverlist function in clientgen.c and used it
  in password.c

- initialisation in server.c depends on the role of the server.  well,
  it does now.

- rpctorture.  smbtorture.  EXERCISE EXTREME CAUTION.
(This used to be commit 0d21e1e6090b933f396c764af535ca3388a562db)
1998-11-17 16:19:04 +00:00
Jeremy Allison
b7c4cd9fc6 Fixed missing NULL check in tar op.
Jeremy.
(This used to be commit 6db04cd4622289dbdbd0c6d4d084baa8f84c40c2)
1998-11-17 01:44:25 +00:00
Jeremy Allison
c1af0b4027 Moved PRINTCAP_NAME from smb.h to includes to allow it to
be tuned per system type.
Jeremy.
(This used to be commit c1a3346547d887bfd2402a6b0bcc185680eb4470)
1998-11-17 00:31:39 +00:00
Jeremy Allison
3b4a9ff380 Makefile.in: Re-added quotes round ROFF call for DGUX.
script/installman.sh: Make installman ignore ROFF argument if it is "".
smbd/oplock.c: Move location of oplock test file to lockdir.
Jeremy.
(This used to be commit 6c25a3314243997508b0b2da4bfa10bb979e9c10)
1998-11-16 23:28:59 +00:00
Jeremy Allison
31739a0e1e O_EXCL fixes for printing files & oplocks.
Jeremy.
(This used to be commit 4ca71c90985b1c88d92bdd0f9079a4afc263dc46)
1998-11-16 21:38:13 +00:00
Jeremy Allison
f4447df41b Added fixes for machine accounts.
Jeremy.
(This used to be commit 7aa644c2f996433f8ec125bfd4221aec49bece2b)
1998-11-16 20:19:57 +00:00
Andrew Tridgell
13d0b57baa fixed lmhosts parsing. We were using sizeof(name) where name was char*
(This used to be commit 67ba0b1ce335bc80e1c33fa28458ec9ebe5f446a)
1998-11-16 01:27:51 +00:00
John Terpstra
29cc8b8cd7 Updates to handle glob.h - was causing problems on SCO 5.0.4
(This used to be commit 5f7d9d4656eb501e14b98f4ae1990a791c7901e3)
1998-11-16 01:12:36 +00:00
Andrew Tridgell
00ae36ffd8 change ROUNDUP to SMB_ROUNDUP to prevent conflicts with system macros
(This used to be commit d9d44d98ec719b7fc6d5b0fc35bf8727f4cd0372)
1998-11-15 23:07:54 +00:00
Andrew Tridgell
62725d1c5c compile with optimisation by default on all compilers
this has 2 effects:

1) non gcc platforms get some optimisation
2) it disables -g by default which means the samba binaries won't be
   so huge (they were over 60MB on some systems)
(This used to be commit 263b13222c14db7ddec1430132c6362be4442147)
1998-11-14 23:52:49 +00:00
Andrew Tridgell
3ba68d045c automatically uppercase server and share names (win95 won't handle
lowercase share names!)
(This used to be commit dddf1d8522707b828cac466c4a9ab2807d098573)
1998-11-14 04:16:07 +00:00
Andrew Tridgell
c57ab7807d fixed setmode in smbclient
(This used to be commit c58f4965100692d8edcd613a341df9e2ad88cfa0)
1998-11-14 04:08:19 +00:00
Andrew Tridgell
fedc62d17a - handle servers that don't support getattrE (ie. NT)
- use * in clitar instead of *.*
(This used to be commit 2d9335fe2a6fc3bb6687360c99d8fc69cb2d555a)
1998-11-14 03:53:24 +00:00
Jeremy Allison
2a28d20f20 Fixed problem with smbclient issuing '*.*' to NT server when an
NT server needs '*'. Win95/98 doesn't care either way :-).
Jeremy.
(This used to be commit a0adae90cadd7702f8263c97d4495fa093e713e6)
1998-11-14 03:34:44 +00:00
Andrew Tridgell
2b67f7eba4 prompt for password on smbclient -L
(This used to be commit 1558f34a878d6fea0cc745a7fcec04f79f7e50ff)
1998-11-14 02:34:19 +00:00
Andrew Tridgell
57d4977f24 - new prototypes
- much as I hate doing it I've removed the "commit changes" button for
  users that don't have write access to smb.conf (Jeremy insisted)
(This used to be commit 8e8ab4df1fe77dfcae73a34f4de174afe09cd695)
1998-11-14 02:29:38 +00:00
Andrew Tridgell
f616831953 allow all user to view the config
(This used to be commit ab35d99e52225b0e9f519903ae99e575075187e7)
1998-11-14 02:14:30 +00:00
Andrew Tridgell
5be7ae453d remove code that allows installation via cgi
swat will now give an error message if run via cgi
(This used to be commit 55377e3cdd5d8428e89b40946f0535b8cf5247ae)
1998-11-14 02:10:55 +00:00
Jeremy Allison
24ca89bfb0 Removed acconfig.h configure configure.in include/config.h.in: Made smbwrapper not made
by default.
nmbd*: Changed all calls to namestr() to nmbd_namestr() to fix broken FreeBSD include
	   file problem...sigh.
Jeremy.
(This used to be commit 9ee8f39aed8772a05c203161b4ae6b7d90d67481)
1998-11-14 01:04:13 +00:00
Jeremy Allison
98db88e00b Change to beta1.
(This used to be commit 26c3ff2bcb225f65002620fec07aa6423477e6d9)
1998-11-13 21:49:19 +00:00
Jeremy Allison
8fc1504ff8 Makefile.in configure configure.in include/config.h.in: Changes for DGUX and UNIXWARE.
groupdb/aliasdb.c groupdb/aliasfile.c groupdb/groupfile.c: Don't use snprinf, use slprintf.
include/includes.h: Fix YP problem.
include/smb.h: Fix ZERO_STRUCTP.
lib/util_sock.c: Added strerror() in debugs.
passdb/ldap.c: Don't use snprinf, use slprintf.
rpc_client/cli_lsarpc.c rpc_client/cli_pipe.c rpc_parse/parse_sec.c rpc_server/srv_pipe.c: Don't use snprinf, use slprintf.
script/installman.sh: DGUX changes.
smbd/open.c smbd/oplock.c: Fixed gcc warnings.
web/swat.c: Changes USER to SWAT_USER.
(This used to be commit 4c2b5a00983501e5d4aad1456ba8b5ab0dfd9b4c)
1998-11-13 21:41:01 +00:00
Andrew Tridgell
e623b71750 reverted includes change for FreeBSD as it breaks IRIX
(This used to be commit 24b2bf1741366045eca02cbd09e3283531d28422)
1998-11-13 21:26:58 +00:00
Luke Leighton
8336dbd901 need 32 bit status codes to be negotiated because of STUPID dos "error more
data needed" message gets treated as a serious error code (which it isn't)
so the client code terminates.
(This used to be commit d9b59580dcd5076d3027e364964dcd624300fe45)
1998-11-13 20:39:25 +00:00
Michael Warfield
9c3cbb8012 Fixed timing window created by daemonize function. Smbmount was going daemon
before the mount was actually completed.  This caused weird problems when
used with autofs such as empty directories on first listing or files which
would appear in "ls" but would return "no such file or directory" under
"ls -l".  Note to Volker:  Initial attempt from CIFS conference didn't work.
Had to move daemonize function inside of loop after ioctl.
(This used to be commit 2f456be660b4bbf22c618b506062f812f35e368a)
1998-11-13 20:32:22 +00:00
Luke Leighton
3a31d509a8 LOCAL_GRP and DOMAIN_GRP are return types
(This used to be commit 887063e421d476fe2c2f6809750af3bfb020a85c)
1998-11-13 20:19:06 +00:00
Luke Leighton
d3e6aa666d ZERO_STRUCTP not PN
(This used to be commit ff8667c8801a59c80c33b43f033d23f3a0fd8313)
1998-11-13 19:07:28 +00:00
Luke Leighton
43a3692e83 oops - ZERO_STRUCTP() issues again...
(This used to be commit 2908ccd14d1aa4ffb7d09714bae78cebb7eee755)
1998-11-13 19:03:07 +00:00
Luke Leighton
d90063493c use ZERO_STRUCTPN (checks for NULL) not ZERO_STRUCTP (doesn't check for NULL)
(This used to be commit 70ac9dbcecdf4be92638a24f096e4a8807997498)
1998-11-13 17:36:42 +00:00
Luke Leighton
5e4d4deeca ZERO_STRUCTP does not check argument for NULL.
ZERO_STRUCTPN _does_ check argument for NULL.
(This used to be commit 0be34ca1402f95506680caa3461e94d4ae54bb7d)
1998-11-13 17:26:44 +00:00
Andrew Tridgell
2db96e3047 fixes for OSF1 compilation
(This used to be commit 5be3c37f50eac35cad3eadf0d24e7a4ee04c075e)
1998-11-13 03:37:01 +00:00
Jeremy Allison
2164685b9f include/smb.h: Re-added zero pointer protection to ZERO_STRUCTP.
lib/util_sock.c: Added strerror() calls to getpeername failures (which seem to be giving IRIX trouble at the moment).
rpc_parse/parse_sec.c: Changed use of ZERO_STRUCTPN to ZERO_STRUCTP which again does zero pointer protection.
smbd/quotas.c: Fixed typo.
Jeremy.
(This used to be commit b62f008974c96e0302d6c146cf49bc2045bef005)
1998-11-13 02:07:07 +00:00
Luke Leighton
cb265dbb8b security descriptors
(This used to be commit 9412edfd4c11a26e4ef290839375e3959cf70a7e)
1998-11-13 01:38:41 +00:00
Luke Leighton
31c4953088 sids in rpctorture changed from fstrings to DOM_SID
(This used to be commit bd09e00112fd371aa070b5b47f1d4e27137a7f2e)
1998-11-13 01:08:28 +00:00
Andrew Tridgell
0cbb7560a3 fixed compile for FreeBSD
(This used to be commit 78e63e17c59de68200308641dce7c413520a2980)
1998-11-13 01:05:25 +00:00
Andrew Tridgell
e5d9a4f4e3 %\ is an interesting printf argument, but I prefer %s
(This used to be commit b93f686655e871d7bfec9c7601cf3c175008041a)
1998-11-12 23:59:59 +00:00
Andrew Tridgell
dfac41840a we don't have any jpeg images any more
(This used to be commit ae5f174ef163734c61c0d30b32f5564cfba02666)
1998-11-12 23:57:18 +00:00
Herb Lewis
ea2fa33f65 Removed code that used printf/fprintf in password changin libraries.
Now passes strings instead.
(This used to be commit 48af29bcc9e8094de6ba057a52dbae3c80ea7a05)
1998-11-12 23:49:32 +00:00
Luke Leighton
2c7f6da1fa security descriptors.
kanji const char* warnings.
(This used to be commit 06abdfd68e1d7fa8741afc3f56ec7a13b5fa4ccc)
1998-11-12 23:35:05 +00:00
Andrew Tridgell
c1bf51bd2c please remember to check that code compiles before checkin!
(This used to be commit 88c90ec65c1a764dd7b13d9fb5ce700027f40cfd)
1998-11-12 23:10:48 +00:00
Herb Lewis
d30b6ab548 .cvsignore: Removed old entries.
client/client.c:
include/client.h: Added some debug messages that the old client used to
		  generate. These are needed to make scripts such as
		  'findsmb' work - there may be other changes to keep
		  backwards output compatibility. Do we need a -old-client-compat
		  argument ?
libsmb/clientgen.c: Fixed crash bug where malloc'ed data wasn't being
		    cleared - corrupted malloc chains.
web/swat.c: John's changes to get rid of "ghost" table entries.
(This used to be commit 3c45a3503ea57d17e98eb3e57514161a5c82e45e)
1998-11-12 22:17:51 +00:00