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

1304 Commits

Author SHA1 Message Date
Jeremy Allison
5983a77020 Moved check_plaintext_password() into smbd/chgpasswd.c from smbd/ipc.c.
configure configure.in include/config.h.in: Added <sys/un.h> autoconf
code for Luke's UNIX domain sockets code.
Jeremy.
(This used to be commit 210d61db08136122f51a93428607fccd582c9e7d)
2000-01-05 23:46:47 +00:00
Jeremy Allison
211697ee6c Converted most of the functions in lib/util_str.c to smb_ucs2_t equivalents.
Jeremy.
(This used to be commit 1ba42aca2163c534f6be4e4a733604e3dffe0ed8)
1999-12-29 02:00:38 +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
6281c5d7a9 moved sys/un.h to after sys/socket.h. done a gnu autoconf around sys/un.h
(This used to be commit b2ea37a8f1a28a825719b46354a1244b359aca2c)
1999-12-08 22:57:34 +00:00
Tim Potter
59bd1de1a5 Put back in GNU readline support for smbclient accidentally trashed by
tridge in the clientgen.c to clientutil.c conversion.
(This used to be commit 26d66071fbac2c46445153c214bb13d587a67b49)
1999-07-09 03:34:09 +00:00
Tim Potter
06ab791616 Fixed spelling typo in Kerberos configure option.
(This used to be commit e8fa4fbf8b5a0d5c76745f51751e85f2ec462b41)
1999-04-04 22:58:44 +00:00
Andrew Tridgell
d330c907bd Ken McDonell from SGI was interested in adding some profiling
capabilities to Samba so that Samba could talk to the SGI PCP
(Performance Co-Pilot) apps.

This change adds a profiling shared memory area and uses it to count
two fairly trivial things, the number of uid switches and the number
of SMB packets processes. To add more just edit include/profile.h and
then increment it at the right place.

I've also added a -P switch to smbstatus to dump the profile area.
(This used to be commit ef3d61a80ad0b87c196a63ef2bd4fe8fc3863bd0)
1999-04-01 05:22:58 +00:00
Luke Leighton
81f866db3a added <mysql.h> autoconf test.
(This used to be commit 511ef8a58ccfc04d0744f28753bb48d848851980)
1999-03-02 16:43:27 +00:00
Andrew Tridgell
d973a107a2 and in head branch:
make sure we include sys/mman.h if available
(This used to be commit ccf644388732287da01a943ea826187b5394ebc6)
1998-12-17 01:04:38 +00:00
Luke Leighton
699bae847f matthew chapman's ldap code, to date. plus docs!
(This used to be commit 2c438c86cbb38833b3abd4fbead6324687633b25)
1998-12-07 21:37:17 +00:00
Jeremy Allison
bfc38ff872 Makefile.in: Added maintainer mode fixes.
aclocal.m4: Added AC_LIBTESTFUNC.
configure.in: Fixed -lsecurity -lsec problems.
client.c: dos_ fixes.
groupdb/aliasunix.c: Dead code removal.
include/includes.h: Added default PRINTCAP_NAME.
lib/genrand.c: dos_ fixes.
lib/replace.c: Added strtoul.
lib/system.c: dos_ fixes.
lib/util.c: dos_ fixes.
lib/util_sid.c: Signed/unsigned fixes.
lib/util_str.c: removed bad const.
locking/locking_slow.c: dos_ fixes.
printing/printing.c: dos_ fixes.
rpc_server/srv_samr.c: Dead code removal.
rpc_server/srv_sid.c: global_myworkgroup defined with wrong size AGAIN !
smbd/dir.c: dos_ fixes.
smbd/open.c: dos_ fixes.
smbd/oplock.c: dos_ fixes.
smbd/reply.c smbd/server.c smbd/service.c smbd/uid.c: dos_ fixes.

Jeremy.
(This used to be commit 6acb4b68f68d516e2ac3c47e500f5600d653435e)
1998-11-25 21:17:20 +00:00
Luke Leighton
e5d6ffd85d yp_prot.h and ypclnt.h correct: ypprot.h and yp_clnt.h wrong...
(This used to be commit c89642ff3fa0c0bc2bca62304db0282676e0b649)
1998-11-23 23:29:07 +00:00
Luke Leighton
9829ee9726 re-added ypprot.h and yp_clnt.h
(This used to be commit d50238823411f07d5db112843d9a1e3a84c7dbd7)
1998-11-23 23:09:26 +00:00
Luke Leighton
4cee58780c unix instance of group database API
(This used to be commit e76f593b3572ac881f1aa1fb3326d8b7169b0078)
1998-11-23 21:51:05 +00:00
Jeremy Allison
f22b817d3f acconfig.h configure configure.in include/config.h.in: Added -lsec and -lsecurity checks
in a more sane way.
rpc_client/cli_netlogon.c: Removed correct bits check to see if this works with an NT3.51 PDC.
rpc_parse/parse_samr.c: Fixed compile warnings.
Jeremy.
(This used to be commit 34d8f4b1c4d59ab3c009360fc67eef9361dd859b)
1998-11-20 20:44:21 +00:00
Jeremy Allison
4af961f010 Fixed stupid blunder where I renamed getpwanam to getpwnam.
Jeremy.
(This used to be commit b02d21a73d7f098c5599c606abbb5c92ea4ba13e)
1998-11-20 01:06:09 +00:00
Jeremy Allison
d5015ef708 Makefile.in: Added passing of CPPFLAGS into Makefile.
configure
configure.in
include/config.h.in: Fixes for AIX4.x. AIX *will not*
                     enable large file support of *any* description unless
                     either -D_LARGE_FILES or -D_LARGE_FILES_API are defined.
                     I chose "-D_LARGE_FILES" as this leads to cleaner code...

Also fixed bug where getpwnam was listed as getpw(a)nam in configure.in.
Jeremy.
(This used to be commit 2d62dc26f4e3a171ecbe56f33d94db2fea0ef0ad)
1998-11-19 23:42:57 +00:00
Jeremy Allison
17590be23d Sync up with 2.0 code.
Added HPUX autoconf changes.
Added "gross hack" printer code.
Jeremy.
(This used to be commit 1ef6d3bd63722afe9c376793a6ea72046d1a0602)
1998-11-19 22:37:33 +00:00
Jeremy Allison
e204f1d8a3 Changes to make the default prefix /usr/local/samba - as it was in 1.9.18p10.
acconfig.h configure configure.in include/config.h.in: Fixes to DEC OSF1.
libsmb/nmblib.c: Fixes to nmbd jumps in scope names.
Jeremy.
(This used to be commit 5ad77769be85e6727319afb0f02e5d94c2f9f16f)
1998-11-19 04:15:23 +00:00
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
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
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
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
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
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
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
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
0cbb7560a3 fixed compile for FreeBSD
(This used to be commit 78e63e17c59de68200308641dce7c413520a2980)
1998-11-13 01:05:25 +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
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
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
Andrew Tridgell
c778331328 add -Bshareable for *bsd*
(This used to be commit c511a619750152db03897ea682713bbc98f71c6b)
1998-10-20 03:10:58 +00:00
Jeremy Allison
1cf3444105 Fixed crypt problems on IRIX with prototype.
Jeremy.
(This used to be commit bdba1bcf2094d2b33dd74d3cfde61723dd7fc46b)
1998-10-15 19:30:12 +00:00
Jeremy Allison
fc7d3e4caa config: Fix crypt prototype on RedHat Linux.
include/includes.h: Fix crypt prototype on RedHat Linux.
smbd/fileio.c: Fix mmap bug found by WinCE client.
smbd/ipc.c: Fix WinCE wierdness with pipes being opened as \server\pipe\lanman
smbd/password.c: Fix encrypted null passwords.
Jeremy.
(This used to be commit 475992730c0ecbf31c09b3518df2f0354cec61da)
1998-10-15 00:55:17 +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
7e5f267ee9 auto-detect the right flag for the compiler to produce PIC code
(This used to be commit 5d92e003978f02e53c0886508ccefc8c24ec1bbf)
1998-10-08 04:52:11 +00:00
Andrew Tridgell
08e890aee6 removed lukes acl check in configure (not needed)
(This used to be commit a3339c111de9f82b6badaac8e6ef430d277c3afa)
1998-10-08 00:02:43 +00:00
Luke Leighton
cf115a77d0 added aclent_t autoconf test (defines as an int if it doesn't exist).
this is to stop a compilation error caused by make proto putting
functions that are wrapped in #if HAVE_ACLxxx code.

maybe a better fix would be to have mkproto.awk exclude any functions
wrapped in #if HAVEs that don't exist.
(This used to be commit 361c1b7ea994cc25d460ebd25b2ad9025f90848c)
1998-10-07 16:49:32 +00:00
Andrew Tridgell
f4aff92e03 SunOS doesn't need any ld flags
(This used to be commit f92383689a6ee62c71553f12c633f1aadb32065e)
1998-10-07 10:57:51 +00:00
Andrew Tridgell
b73d2836a6 fix the SEEKDIR_RETURNS_VOID test
(This used to be commit ed0b43294a922dc24be87082fa22b45b0fa2af46)
1998-10-07 08:39:37 +00:00
Andrew Tridgell
853f923c31 detect __sys_llseek()
(This used to be commit 2a25034b033d207b5ce50946f3d9c9fad2c3a153)
1998-10-07 08:12:04 +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
d2856b2dab test whether seekdir() returns void or not
(This used to be commit 4dbfec81b2c67f2d36b26685a631001738d9569f)
1998-10-07 06:15:08 +00:00
Andrew Tridgell
002a9fe634 - no getdents on OSF1
- try a new method of handling prototype mismatches in wrapped.c. We
  now try to disable prototypes!
(This used to be commit 77aea37bb83f2b9ad541f851b003ca10b9811314)
1998-10-07 05:58:09 +00:00
Andrew Tridgell
689074409e fix typo
(This used to be commit c4da5741f33f9108e01309a6734f16b1b854ea30)
1998-10-07 04:54:42 +00:00
Andrew Tridgell
5e35eea939 some changes for OSF1 support in smbwrapper (just preliminary changes,
doesn't work yet)
(This used to be commit ffa7d0461fa6628302ddf5590a42cca60ec8b90b)
1998-10-07 04:44:31 +00:00
Andrew Tridgell
117cb0bc8b added some comments
(This used to be commit c81568a6934acab45702639c1c57aadb145f246b)
1998-10-07 04:24:04 +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
4af40453a8 set HOST_OS after canonical system test
(This used to be commit fc602e5e26a2de94be6b5a5509b77876dc0fd7ff)
1998-10-05 23:44:13 +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