1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

2440 Commits

Author SHA1 Message Date
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
Luke Leighton
bb5bea4e19 lookup_alias_name() %s not %d for sid_str
(This used to be commit 2a98135bbc)
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 06da8e49f1)
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 7da1b0bb51)
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 2f456ed92f)
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 0d21e1e609)
1998-11-17 16:19:04 +00:00
Jeremy Allison
b7c4cd9fc6 Fixed missing NULL check in tar op.
Jeremy.
(This used to be commit 6db04cd462)
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 c1a3346547)
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 6c25a33142)
1998-11-16 23:28:59 +00:00
Jeremy Allison
31739a0e1e O_EXCL fixes for printing files & oplocks.
Jeremy.
(This used to be commit 4ca71c9098)
1998-11-16 21:38:13 +00:00
Jeremy Allison
f4447df41b Added fixes for machine accounts.
Jeremy.
(This used to be commit 7aa644c2f9)
1998-11-16 20:19:57 +00:00
Herb Lewis
67d5258486 add some more comments and clean it up a little more.
(This used to be commit 73e4b91a9d)
1998-11-16 16:36:57 +00:00
Herb Lewis
0b2e84243c some fixes for IRIX 5.3 builds
(This used to be commit c2b63b9082)
1998-11-16 13:47:22 +00:00
John Terpstra
8a22f36abd Set sticky bit on /var/spool/samba.
Further security review.
(This used to be commit e31c61c29e)
1998-11-16 13:31:53 +00:00
John Terpstra
590432ac95 Reviewed file permissions and removed other execute on samba start/stop script.
(This used to be commit 2dde295da0)
1998-11-16 12:25:50 +00:00
John Terpstra
933b3ac684 Removed smbwrappers from build specs and from installation specs.
(This used to be commit c444cba3be)
1998-11-16 12:23:47 +00:00
John Terpstra
7491c291ff Added Example binary packaging instructions.
(This used to be commit 4c60314b05)
1998-11-16 12:21:02 +00:00
John Terpstra
7ce840a0ed Updated packaging files (new for Caldera).
(This used to be commit 721a257c94)
1998-11-16 12:03:16 +00:00
Andrew Tridgell
13d0b57baa fixed lmhosts parsing. We were using sizeof(name) where name was char*
(This used to be commit 67ba0b1ce3)
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 5f7d9d4656)
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 d9d44d98ec)
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 263b13222c)
1998-11-14 23:52:49 +00:00
John Terpstra
6b989ca4fd Added first cut of the new packaging scripts for Digital Unix.
Note: This will be extended for all other OS's so that it can be
maintained by the samba release scripts.
(This used to be commit 0f98a2fd58)
1998-11-14 13:01:34 +00:00
Andrew Tridgell
3a4cce6d16 support.txt is now maintained solely on the web pages
(This used to be commit 73b662069c)
1998-11-14 06:34:57 +00:00
Jeremy Allison
9315d3e391 Fixed swat packaging & man page packaging.
Jeremy.
(This used to be commit 178d1bd61b)
1998-11-14 04:22:31 +00:00
Andrew Tridgell
3ba68d045c automatically uppercase server and share names (win95 won't handle
lowercase share names!)
(This used to be commit dddf1d8522)
1998-11-14 04:16:07 +00:00
Andrew Tridgell
c57ab7807d fixed setmode in smbclient
(This used to be commit c58f496510)
1998-11-14 04:08:19 +00:00
Jeremy Allison
c800cda01d Fixes to get the manpages from the right place.
Jeremy.
(This used to be commit 0e3bfe5f28)
1998-11-14 04:03:58 +00:00
Andrew Tridgell
fedc62d17a - handle servers that don't support getattrE (ie. NT)
- use * in clitar instead of *.*
(This used to be commit 2d9335fe2a)
1998-11-14 03:53:24 +00:00
Jeremy Allison
328b91d2c9 (Hopefully) correct patch files for RedHat & TurboLinux.
In fixing this I have learned more about RPM than I *ever*
wanted to know....
Jeremy.
(This used to be commit 765989e415)
1998-11-14 03:48:26 +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 a0adae90ca)
1998-11-14 03:34:44 +00:00
Jeremy Allison
54a4ac4c62 Updated from smb.conf.5.html
Jeremy.
(This used to be commit 6f37d151d8)
1998-11-14 03:13:08 +00:00
Jeremy Allison
3bb3f2d0ce Update for 2.0beta1.
Jeremy.
(This used to be commit 598d0255d4)
1998-11-14 03:01:40 +00:00
Andrew Tridgell
2b67f7eba4 prompt for password on smbclient -L
(This used to be commit 1558f34a87)
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 8e8ab4df1f)
1998-11-14 02:29:38 +00:00
Andrew Tridgell
f616831953 allow all user to view the config
(This used to be commit ab35d99e52)
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 55377e3cdd)
1998-11-14 02:10:55 +00:00
Andrew Tridgell
74c66b148e removed information on installing via cgi
(This used to be commit 08fd703258)
1998-11-14 02:10:07 +00:00
Herb Lewis
87900ce7ab missed a .B
(This used to be commit f213352c3d)
1998-11-14 01:57:25 +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 9ee8f39aed)
1998-11-14 01:04:13 +00:00
Jeremy Allison
744c34be2a Fixed munging of sample file in man pages.
Jeremy.
(This used to be commit 9e1ff71faf)
1998-11-14 01:02:38 +00:00
Jeremy Allison
c2ea4dc9ef Fixed makefile problem due to change from SMB_PASSWD to PASSWD_PROGRAM.
Thanks to Michael H. Warfield <mhw@wittsend.com> for that.
Jeremy.
(This used to be commit 6c2a234ac9)
1998-11-14 00:50:41 +00:00
Jeremy Allison
c54656ee9e Added --with-smbwrapper to configure lines in spec files so JohnT's
scripts work ok.
Jeremy.
(This used to be commit 9dc2502382)
1998-11-14 00:29:38 +00:00
Herb Lewis
eaf9944b3e ran spell check and other minor tweaks
(This used to be commit 7d8ec97b45)
1998-11-14 00:14:47 +00:00
John Terpstra
ddc6296370 Added packing release script.
(This used to be commit a77d40ee71)
1998-11-13 23:10:32 +00:00
Jeremy Allison
4758c5f03c Updated for 2.0beta1.
(This used to be commit 566e92027f)
1998-11-13 22:43:28 +00:00
Jeremy Allison
98db88e00b Change to beta1.
(This used to be commit 26c3ff2bcb)
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 4c2b5a0098)
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 24b2bf1741)
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 d9b59580dc)
1998-11-13 20:39:25 +00:00