amitay/samba.git
24 years agoThis commit was manufactured by cvs2svn to create tag release-alpha-1-5 samba-misc-tags/tng/release-alpha-1-5
cvs2svn Import User [Thu, 30 Mar 2000 05:22:24 +0000 (05:22 +0000)]
This commit was manufactured by cvs2svn to create tag
'release-alpha-1-5'.

24 years agopreparing for release of alpha.1.5
Samba Release Account [Thu, 30 Mar 2000 05:22:23 +0000 (05:22 +0000)]
preparing for release of alpha.1.5

24 years agofinally got it right. how easy can it be to transfer an array of uint32s
Luke Leighton [Thu, 30 Mar 2000 05:12:32 +0000 (05:12 +0000)]
finally got it right.  how easy can it be to transfer an array of uint32s
to/from gid_ts?

24 years agobug in uint32* convert to gid_t* issues
Luke Leighton [Thu, 30 Mar 2000 04:58:13 +0000 (04:58 +0000)]
bug in uint32* convert to gid_t* issues

24 years agoUse SMB_ASSERT when checking cli_auth_fns functions are non-NULL.
Tim Potter [Thu, 30 Mar 2000 04:45:53 +0000 (04:45 +0000)]
Use SMB_ASSERT when checking cli_auth_fns functions are non-NULL.

24 years agoCheck cli_auth_fns functions are non-NULL before calling them.
Tim Potter [Thu, 30 Mar 2000 02:03:39 +0000 (02:03 +0000)]
Check cli_auth_fns functions are non-NULL before calling them.

24 years agoRemoval of #ifdef SYSLOG cruft and whitespace cleanup.
Tim Potter [Thu, 30 Mar 2000 01:54:08 +0000 (01:54 +0000)]
Removal of #ifdef SYSLOG cruft and whitespace cleanup.

24 years agomake_nmb_name no longer takes scope
Luke Leighton [Thu, 30 Mar 2000 01:29:03 +0000 (01:29 +0000)]
make_nmb_name no longer takes scope

24 years agoHAVE_CRYPT_DECL causing grief.
Luke Leighton [Thu, 30 Mar 2000 01:27:57 +0000 (01:27 +0000)]
HAVE_CRYPT_DECL causing grief.

24 years agoAdding AIX fix into TNG. Check for compiler support for LL suffix on long long ints.
Jeremy Allison [Thu, 30 Mar 2000 01:27:29 +0000 (01:27 +0000)]
Adding AIX fix into TNG. Check for compiler support for LL suffix on long long ints.
Jeremy.

24 years agooops! getopt was causing grief for make proto.
Luke Leighton [Thu, 30 Mar 2000 01:21:18 +0000 (01:21 +0000)]
oops!  getopt was causing grief for make proto.

24 years agoFrom johanh@fusion.kth.se Thu Mar 30 09:42:56 2000
Luke Leighton [Thu, 30 Mar 2000 00:27:59 +0000 (00:27 +0000)]
From johanh@fusion.kth.se Thu Mar 30 09:42:56 2000
Date: Wed, 29 Mar 2000 17:20:28 +0200 (MET DST)
From: Johan Hedin <johanh@fusion.kth.se>
To: samba-patches@samba.org
Cc: lkcl@samba.org
Subject: Patch for broken AFS renewable ticket support in Samba TNG

Hi

In the latest CVS version of SAMBA_TNG, the AFS renewable ticket support
is broken due to that some parts of the configure.in regarding the
Kerberos inconsistenty between KTH-KRB and Solaris 2.6 disapeared. The
following patch will put it back in again.

Regards

Johan Hedin

24 years agolonnie noticed that HAVE_PAM needs to be WITH_PAM.
Luke Leighton [Thu, 30 Mar 2000 00:03:37 +0000 (00:03 +0000)]
lonnie noticed that HAVE_PAM needs to be WITH_PAM.

24 years agoThis commit was manufactured by cvs2svn to create branch 'SAMBA_TNG'.
cvs2svn Import User [Wed, 29 Mar 2000 23:03:49 +0000 (23:03 +0000)]
This commit was manufactured by cvs2svn to create branch 'SAMBA_TNG'.

24 years agoAdded check for LL suffix to long long ints needed by AIX 4.3.x compiler
Jeremy Allison [Wed, 29 Mar 2000 23:03:48 +0000 (23:03 +0000)]
Added check for LL suffix to long long ints needed by AIX 4.3.x compiler
to allow successful build.
Jeremy.

24 years agoFixed bug found by JF where if the amount of data to return in the prs_struct
Jeremy Allison [Wed, 29 Mar 2000 22:19:58 +0000 (22:19 +0000)]
Fixed bug found by JF where if the amount of data to return in the prs_struct
was small enough to pass the SMBtrans max data test we weren't setting the
"more data needed" error. I was fogetting the RPC_HEADER_LEN.... I now
check the correct length (current pdu staging area length). More printer
spool enum stuff works now. This bug does not affect TNG.
Jeremy.

24 years agoCause nmbd to ignore loopback interface when constructing its interface ...
Jeremy Allison [Wed, 29 Mar 2000 21:31:13 +0000 (21:31 +0000)]
Cause nmbd to ignore loopback interface when constructing its interface                                                         list. This is done by default when interfaces are probed, but if someone
explicitly adds 127.0.0.1 to the interfaces line for smbd, then nmbd would
start to try and register names on it. This was not good :-(.
Jeremy.

24 years agoCause nmbd to ignore loopback interface when constructing its interface ...
Jeremy Allison [Wed, 29 Mar 2000 21:30:52 +0000 (21:30 +0000)]
Cause nmbd to ignore loopback interface when constructing its interface                                                         list. This is done by default when interfaces are probed, but if someone
explicitly adds 127.0.0.1 to the interfaces line for smbd, then nmbd would
start to try and register names on it. This was not good :-(.
Jeremy.

24 years agodropped in HEAD/web/startstop.c
Elrond [Wed, 29 Mar 2000 18:38:49 +0000 (18:38 +0000)]
dropped in HEAD/web/startstop.c

    Elrond

24 years agoMy first cvs commit, so hope, I get it right.
Elrond [Wed, 29 Mar 2000 17:22:23 +0000 (17:22 +0000)]
My first cvs commit, so hope, I get it right.

I just dropped in lib/snprintf.c from HEAD, which adds some
fcvt-things

    Elrond

24 years agosplit addprinterex in preparation for level 1 support and to stop it
Jean-François Micouleau [Wed, 29 Mar 2000 14:49:05 +0000 (14:49 +0000)]
split addprinterex in preparation for level 1 support and to stop it
coredump.

J.F.

24 years agorewrote getprinterdriver level 3, now correctly handle the dependent
Jean-François Micouleau [Wed, 29 Mar 2000 12:36:44 +0000 (12:36 +0000)]
rewrote getprinterdriver level 3, now correctly handle the dependent
files.
A number of memleak fixed
some error return values fixed.

J.F.

24 years agopreparing for release of alpha.1.4
Samba Release Account [Wed, 29 Mar 2000 07:46:57 +0000 (07:46 +0000)]
preparing for release of alpha.1.4

24 years agoMore Japanese filename fixes wrt VFS code from
Tim Potter [Wed, 29 Mar 2000 07:44:23 +0000 (07:44 +0000)]
More Japanese filename fixes wrt VFS code from
Tomoki AONO <aono@cc.osaka-kyoiku.ac.jp>

24 years agoadding getopt.c to Makefile.in
Luke Leighton [Wed, 29 Mar 2000 06:54:16 +0000 (06:54 +0000)]
adding getopt.c to Makefile.in

24 years agoautoconf update
Luke Leighton [Wed, 29 Mar 2000 06:46:34 +0000 (06:46 +0000)]
autoconf update

24 years agoadding getopt_long function, 'cos we need it!
Luke Leighton [Wed, 29 Mar 2000 06:42:06 +0000 (06:42 +0000)]
adding getopt_long function, 'cos we need it!

24 years agousing getopt_long not getopt, turns out getopt don't work when used
Luke Leighton [Wed, 29 Mar 2000 06:24:41 +0000 (06:24 +0000)]
using getopt_long not getopt, turns out getopt don't work when used
several times, on solaris.  (optind=0 don't do the job...)

24 years agomore typecasts (uid_t) to int
Luke Leighton [Wed, 29 Mar 2000 04:00:29 +0000 (04:00 +0000)]
more typecasts (uid_t) to int

24 years agon_groups needs to be sent as uint32s and converted to gid_ts
Luke Leighton [Wed, 29 Mar 2000 03:37:55 +0000 (03:37 +0000)]
n_groups needs to be sent as uint32s and converted to gid_ts

24 years agouid_t cast to int.
Luke Leighton [Wed, 29 Mar 2000 02:14:02 +0000 (02:14 +0000)]
uid_t cast to int.

24 years agoman pages from Matthew Geddes. reviewed rpcclient.8.yo, made a couple of
Luke Leighton [Wed, 29 Mar 2000 00:47:30 +0000 (00:47 +0000)]
man pages from Matthew Geddes.  reviewed rpcclient.8.yo, made a couple of
minor mods (e.g samuser command -u, -g and -a descriptions).

24 years ago_net_sam_logon: more preparing to get rid of DOM_LOG_INFO etc.
Luke Leighton [Tue, 28 Mar 2000 11:19:45 +0000 (11:19 +0000)]
_net_sam_logon: more preparing to get rid of DOM_LOG_INFO etc.

24 years agooops!!!! @LOCKDIR@ needed to be @lockdir@
Luke Leighton [Tue, 28 Mar 2000 10:55:12 +0000 (10:55 +0000)]
oops!!!!  @LOCKDIR@ needed to be @lockdir@

24 years agocommitting [one] version of working GETDC / SAMLOGON request processing.
Luke Leighton [Tue, 28 Mar 2000 10:51:05 +0000 (10:51 +0000)]
committing [one] version of working GETDC / SAMLOGON request processing.

24 years agooops, sys_select() usage bug.
Luke Leighton [Tue, 28 Mar 2000 10:43:07 +0000 (10:43 +0000)]
oops, sys_select() usage bug.

24 years agoremoved tdb surs option by mistake. oops.
Luke Leighton [Tue, 28 Mar 2000 10:26:37 +0000 (10:26 +0000)]
removed tdb surs option by mistake.  oops.

24 years agoupdating configure.in etc from cvs main.
Luke Leighton [Tue, 28 Mar 2000 10:02:15 +0000 (10:02 +0000)]
updating configure.in etc from cvs main.

24 years agoChanged return value login in sam_query_aliasmem() so it returns false
Tim Potter [Tue, 28 Mar 2000 07:00:40 +0000 (07:00 +0000)]
Changed return value login in sam_query_aliasmem() so it returns false
when querying a non-existent alias name.

24 years ago_net_srv_pwset - working towards removal of DOM_LOG_INFO etc.
Luke Leighton [Tue, 28 Mar 2000 05:56:11 +0000 (05:56 +0000)]
_net_srv_pwset - working towards removal of DOM_LOG_INFO etc.

24 years agomore working towards removing DOM_LOG_INFO etc. also, pid is 32-bit not
Luke Leighton [Tue, 28 Mar 2000 05:38:33 +0000 (05:38 +0000)]
more working towards removing DOM_LOG_INFO etc.  also, pid is 32-bit not
16-bit.

24 years ago_net_auth2 - working towards removing some of the legacy structures
Luke Leighton [Tue, 28 Mar 2000 05:34:18 +0000 (05:34 +0000)]
_net_auth2 - working towards removing some of the legacy structures
(e.g DOM_LOG_INFO)

24 years agomoving some functions that were in parse_misc.c that i've been meaning
Luke Leighton [Tue, 28 Mar 2000 05:20:28 +0000 (05:20 +0000)]
moving some functions that were in parse_misc.c that i've been meaning
to put in the right modules for a long, long time.

24 years agonet sam sync back to style suggested by sander, originally, passing
Luke Leighton [Tue, 28 Mar 2000 04:52:57 +0000 (04:52 +0000)]
net sam sync back to style suggested by sander, originally, passing
the remote pid over.

i really want to get rid of that remote pid, it causes problems.

some stuff from process_logon_packet that doesn't matter about being
committed because it's due to be replaced in a bit.

24 years agodamn, the test was the wrong way around for short_resuest
Andrew Tridgell [Tue, 28 Mar 2000 03:03:34 +0000 (03:03 +0000)]
damn, the test was the wrong way around for short_resuest

24 years agoWin2k will only accept volume labels in UNICODE. Fixed.... :-(.
Jeremy Allison [Tue, 28 Mar 2000 02:38:59 +0000 (02:38 +0000)]
Win2k will only accept volume labels in UNICODE. Fixed.... :-(.
Jeremy.

24 years agoMoved common code to set parameter offset field correctly oout of 'if'
Jeremy Allison [Tue, 28 Mar 2000 02:20:57 +0000 (02:20 +0000)]
Moved common code to set parameter offset field correctly oout of 'if'
statement into main function code path.
Jeremy.

24 years agofinally got a compile/link. the nmbd_processlogon.c module doesn't use
Luke Leighton [Tue, 28 Mar 2000 01:21:02 +0000 (01:21 +0000)]
finally got a compile/link.  the nmbd_processlogon.c module doesn't use
length-limited functions.  i started adding the non-length-limited
versions, got fed up and instead started restoring the use of the length-
limited unicode string processing routines.

those length-limited string processing routines need to have dos-code-page
equivalents created, in TNG.

24 years agoFrom Elrond@Wunder-Nett.org Tue Mar 28 09:28:32 2000
Luke Leighton [Mon, 27 Mar 2000 23:48:52 +0000 (23:48 +0000)]
From Elrond@Wunder-Nett.org Tue Mar 28 09:28:32 2000
Date: Mon, 27 Mar 2000 20:37:20 +0200
From: Elrond <Elrond@Wunder-Nett.org>
To: Luke Kenneth Casson Leighton <lkcl@samba.org>
Subject: lsarpcd: more lookupsids

- lib/set_uid.c some reindenting.
- libsmb/clientgen.c:get_any_dc_name():
  "We" are also responsible for "Builtin", right?
- parse_lsa, cli_lsa.c: The dom_refs were marshalled
  incorrectly (the names and sids were put in the wrong
  slot.)
- minor cleanup
- lib/util_sid.c: minor try to merge from HEAD, please
  don't indent it!

    Elrond

24 years agomake proto for winbindd.
Tim Potter [Mon, 27 Mar 2000 22:36:45 +0000 (22:36 +0000)]
make proto for winbindd.

24 years agoFixed crash bug in new handle_netbios_name code.
Jeremy Allison [Mon, 27 Mar 2000 20:25:34 +0000 (20:25 +0000)]
Fixed crash bug in new handle_netbios_name code.
Jeremy.

24 years agonmbd merge, all the bits that were needed from andrew's merging
Luke Leighton [Mon, 27 Mar 2000 12:52:44 +0000 (12:52 +0000)]
nmbd merge, all the bits that were needed from andrew's merging
nmbd/*.c over.  a few issues left to deal with...

24 years agolast pieces of code from the head branch nmbd to go into TNG
Andrew Tridgell [Mon, 27 Mar 2000 12:41:22 +0000 (12:41 +0000)]
last pieces of code from the head branch nmbd to go into TNG

24 years agochanged the definition of dos_PutUniCode
Andrew Tridgell [Mon, 27 Mar 2000 12:38:45 +0000 (12:38 +0000)]
changed the definition of dos_PutUniCode

the previous definition could result is us overflowing a buffer. The
null termination was always added yet the size returned did not
include the null termination.

the new function takes a BOOL null_terminate, and always returns the
total number of bytes consumed by the string.

24 years agothe final part of the nmbd merge between head and tng - this gets the
Andrew Tridgell [Mon, 27 Mar 2000 12:19:58 +0000 (12:19 +0000)]
the final part of the nmbd merge between head and tng - this gets the
GETDC stuff sorted out

24 years agoremoved dgram_unique, it not needed in GETDC processing any more.
Luke Leighton [Mon, 27 Mar 2000 08:54:26 +0000 (08:54 +0000)]
removed dgram_unique, it not needed in GETDC processing any more.

24 years agofixed the hanlding of recursion desired when sending packets from
Andrew Tridgell [Mon, 27 Mar 2000 08:34:26 +0000 (08:34 +0000)]
fixed the hanlding of recursion desired when sending packets from
nmbd. It does NOT follow the rule that packets to the wins server have
rec_des set (I know that we have postulated this in the past). Please
don't screw with this unless you do careful testing from WinXX
clients.

Luke and I spent a couple of hours today getting this right (it was
wrong in both TNG and HEAD)

24 years agoCleaned up winbindd stuff.
Tim Potter [Mon, 27 Mar 2000 07:20:29 +0000 (07:20 +0000)]
Cleaned up winbindd stuff.

24 years agoChanged extern of global_sid_S_1_5_20 to global_sid_S_1_5_32.
Tim Potter [Mon, 27 Mar 2000 07:18:13 +0000 (07:18 +0000)]
Changed extern of global_sid_S_1_5_20 to global_sid_S_1_5_32.

24 years agomake proto
Luke Leighton [Mon, 27 Mar 2000 06:42:56 +0000 (06:42 +0000)]
make proto

24 years agoatomic_t type missing (needed by nmbd.c)
Luke Leighton [Mon, 27 Mar 2000 06:42:33 +0000 (06:42 +0000)]
atomic_t type missing (needed by nmbd.c)

24 years agoCheckin of remaining nss ntdom prototype code.
Tim Potter [Mon, 27 Mar 2000 06:35:34 +0000 (06:35 +0000)]
Checkin of remaining nss ntdom prototype code.

24 years agocompile error
Luke Leighton [Mon, 27 Mar 2000 06:30:02 +0000 (06:30 +0000)]
compile error

24 years agomore merging of head code into tng (under lukes supervision!)
Andrew Tridgell [Mon, 27 Mar 2000 06:24:35 +0000 (06:24 +0000)]
more merging of head code into tng (under lukes supervision!)

only 2 files left in source/nmbd/ ...

24 years agoremoved client's server name from cli_session_setup, it can be set to
Luke Leighton [Mon, 27 Mar 2000 05:17:48 +0000 (05:17 +0000)]
removed client's server name from cli_session_setup, it can be set to
global_myname

24 years agoadded talloc.h
Luke Leighton [Mon, 27 Mar 2000 04:45:49 +0000 (04:45 +0000)]
added talloc.h

24 years agoadded a few more well-known SIDs, NT Authority, System, Authenticated
Luke Leighton [Mon, 27 Mar 2000 04:16:12 +0000 (04:16 +0000)]
added a few more well-known SIDs, NT Authority, System, Authenticated
Users etc etc.

24 years agomoved nmblib-specific code from util.c to nmblib.c.
Luke Leighton [Mon, 27 Mar 2000 01:33:43 +0000 (01:33 +0000)]
moved nmblib-specific code from util.c to nmblib.c.

24 years agonmbd update. doesn't compile at the moment.
Luke Leighton [Mon, 27 Mar 2000 01:21:54 +0000 (01:21 +0000)]
nmbd update.  doesn't compile at the moment.

make proto to remove make_share_info_1

24 years agorename static reload_services function to reload_nmbd_services because
Luke Leighton [Mon, 27 Mar 2000 00:52:36 +0000 (00:52 +0000)]
rename static reload_services function to reload_nmbd_services because
it clashes with other reload_services definitions.

24 years agorename static reload_services function to reload_nmbd_services because
Luke Leighton [Mon, 27 Mar 2000 00:52:33 +0000 (00:52 +0000)]
rename static reload_services function to reload_nmbd_services because
it clashes with other reload_services definitions.

24 years agoelrond, there already exists a make_srv_share_info_1 function. made
Luke Leighton [Mon, 27 Mar 2000 00:49:37 +0000 (00:49 +0000)]
elrond, there already exists a make_srv_share_info_1 function.  made
it static temporarily.

24 years agouid and gid are not necessarily 32-bit (may be 16, let's hope they
Luke Leighton [Mon, 27 Mar 2000 00:43:40 +0000 (00:43 +0000)]
uid and gid are not necessarily 32-bit (may be 16, let's hope they
are never 64-bit because there _is_ no marshalling function for 64-bit
ints).

24 years agoremoved initial_uid/gid, not used.
Luke Leighton [Mon, 27 Mar 2000 00:39:28 +0000 (00:39 +0000)]
removed initial_uid/gid, not used.

24 years agoGETDC request - finally settled on a length-detecting algorithm to see if
Luke Leighton [Sun, 26 Mar 2000 23:42:43 +0000 (23:42 +0000)]
GETDC request - finally settled on a length-detecting algorithm to see if
there is a domain name in the GETDC request.  this, after hand-editing
the fields in netmon to see if there was any way to detect differences
in various fields (DGRAM_UNIQUE to DGRAM_GROUP; type of NetBIOS name tried
0x1c and 0x1b) and there wasn't.

24 years agowhen doing a "secure nbns" wack response and check with owner for a
Andrew Tridgell [Sun, 26 Mar 2000 23:16:07 +0000 (23:16 +0000)]
when doing a "secure nbns" wack response and check with owner for a
multihomed registration we were sending the packet to the wrong host!
We sent it to the person trying to register rather than to the person
who currently holds the name. That means we were not secure and we
could allow two people to register the same name.

Jeremy, you may wish to merge this change into 2.0.X

24 years agomerge from tng ...
Andrew Tridgell [Sun, 26 Mar 2000 23:13:12 +0000 (23:13 +0000)]
merge from tng ...

reload services can be static

24 years agoLuke has arrived in Canberra and we are doing the first stage of
Andrew Tridgell [Sun, 26 Mar 2000 23:11:04 +0000 (23:11 +0000)]
Luke has arrived in Canberra and we are doing the first stage of
merging code between tng and head. This is the easiest bit - some of
the nmbd changes.

There is still some more nmbd merging to do - watch this space.

24 years agoFrom Elrond@Wunder-Nett.org Sun Mar 26 19:22:00 2000
Luke Leighton [Sun, 26 Mar 2000 11:24:07 +0000 (11:24 +0000)]
From Elrond@Wunder-Nett.org Sun Mar 26 19:22:00 2000
Date: Sat, 25 Mar 2000 19:38:34 +0100
From: Elrond <Elrond@Wunder-Nett.org>
To: Luke Kenneth Casson Leighton <lkcl@samba.org>
Subject: lsa_lookup_sids

I got lsa_lookup_sids somehow better for well known SIDs.
Now even the icons in those "add user" dialogs next to
"SYSTEM" etc. are right.

The most important part in getting this was returning the
correct sid_name_use. BTW: 2.0.5 returns the wrong
sid_name_use for S-1-5-2 etc...

Minor thing:
made global_sid_S_1_5 static, it wasn't used anywhere
outside sids.c

    Elrond

24 years agoload smb.conf and interfaces in masktest (to allow for netbios name
Andrew Tridgell [Sun, 26 Mar 2000 09:20:47 +0000 (09:20 +0000)]
load smb.conf and interfaces in masktest (to allow for netbios name
resolution)

24 years agorpc_parse/parse_spoolss.c: Added checks on mallocs/overflow checks on all prs_xx
Jeremy Allison [Sat, 25 Mar 2000 01:37:08 +0000 (01:37 +0000)]
rpc_parse/parse_spoolss.c: Added checks on mallocs/overflow checks on all prs_xx
calls.
smbd/connection.c: Fix from David Lee <T.D.Lee@durham.ac.uk>.
Jeremy.

24 years agoFrom Elrond@Wunder-Nett.org Sat Mar 25 03:40:37 2000
Luke Leighton [Fri, 24 Mar 2000 16:46:03 +0000 (16:46 +0000)]
From Elrond@Wunder-Nett.org Sat Mar 25 03:40:37 2000
Date: Fri, 24 Mar 2000 17:04:50 +0100
From: Elrond <Elrond@Wunder-Nett.org>
To: Luke Kenneth Casson Leighton <lkcl@samba.org>
Subject: more srvsvc

- fixed some bug in our unistr2_to_ascii-return-value.

[lkcl: also fixed use of uint16 *origdest = (char*)dest;]

- added some safety-code in parse_sec.c:*free*().
- reindentd parse_samr.c
- wrote srv_io_share_info_1

Luke, can you take a look at the sacl part in
make_sec_desc() in parse_sec.c? That looks like a typo.

[lkcl: yep, fixed that]

24 years agopreparing for release of alpha.1.3
Samba Release Account [Thu, 23 Mar 2000 20:09:05 +0000 (20:09 +0000)]
preparing for release of alpha.1.3

24 years agodefault for createuser accountname$ is to set the password to accountname,
Luke Leighton [Thu, 23 Mar 2000 19:54:44 +0000 (19:54 +0000)]
default for createuser accountname$ is to set the password to accountname,
with a warning about this being insecure.

24 years agoFrom Elrond@Wunder-Nett.org Fri Mar 24 05:10:09 2000
Luke Leighton [Thu, 23 Mar 2000 18:18:57 +0000 (18:18 +0000)]
From Elrond@Wunder-Nett.org Fri Mar 24 05:10:09 2000
Date: Thu, 23 Mar 2000 19:02:43 +0100
From: Elrond <Elrond@Wunder-Nett.org>
To: Luke Kenneth Casson Leighton <lkcl@samba.org>
Subject: srvsvc share conversion

- Tried to make some of the share_info code nicer. Also my
  current discussions with Sander and reading of idl-docs
  suggest, that idl does not support, what I'm coding up...
- Started to look at share_set_info and share_del

24 years agoCorrectly convert from little-endian UNICODE to dos_codepage when doing
Jeremy Allison [Wed, 22 Mar 2000 20:39:31 +0000 (20:39 +0000)]
Correctly convert from little-endian UNICODE to dos_codepage when doing
secure file create.
Jeremy.

24 years agoacconfig.h configure configure.in: Added check for UT_SYSLEN for utmp code.
Jeremy Allison [Wed, 22 Mar 2000 19:03:12 +0000 (19:03 +0000)]
acconfig.h configure configure.in: Added check for UT_SYSLEN for utmp code.
include/byteorder.h: Added alignment macros.
include/nameserv.h: Added defines for msg_type field options - from rfc1002.
lib/time.c: Typo fix.
lib/util_unistr.c: Updates from UNICODE branch.
printing/nt_printing.c: bzero -> memset.
smbd/connection.c: Added check for UT_SYSLEN for utmp code.

Other fixes : Rollback of unapproved commit from Luke.
Please *ask* next time before doing large changes to HEAD.

Jeremy.

24 years agodisabled the getgrent() code recently added that returns all unix groups
Luke Leighton [Wed, 22 Mar 2000 11:03:32 +0000 (11:03 +0000)]
disabled the getgrent() code recently added that returns all unix groups
as NT aliases.  no allowance is made for possible clashes with some
unix groups that may be mapped to NT groups, not NT aliases.

it is not the place of this code to make decisions about which unix
groups should be mapped to NT aliases or NT groups, or in fact whether
unix groups exist at all (e.g "appliance" mode).

please could the person who wrote this code contact me and i will outline
the architecture and design issues that you need to be aware of when
working in this area: i need your skills and ability -- applied in the
right places.

thank you.

24 years agodisabled code from HP that replaced get_sampwd_entries() with
Luke Leighton [Wed, 22 Mar 2000 10:55:01 +0000 (10:55 +0000)]
disabled code from HP that replaced get_sampwd_entries() with
get_passwd_entries().  get_sampwd_entries() calls the generic
SAM pwdb API, whereas get_passwd_entries() calls the Unix database
explicitly.

this will result in LDAP, MYSQL, NISPLUS and any other future modules
(e.g "appliance" mode SAM database) failing to operate correctly.

i know what problem was attempted to be fixed, here, but this is
not the right place to attempt to fix it.

24 years agoadded the following message to all dce/rpc client/server code, except
Luke Leighton [Wed, 22 Mar 2000 10:26:09 +0000 (10:26 +0000)]
added the following message to all dce/rpc client/server code, except
the spoolss code (it's cut from TNG) and the smb-dce/rpc interface
code that jeremy has been working up to TNG-functionality.

i also want this message to go into SAMBA_2_0 and SAMBA_2_0_RELEASE,
because it is intolerable that potentially good modifications be made
to code that is going to be thrown away, and people waste their time
fixing bugs and adding enhancements that have already been carried
out already, up to two years ago in the TNG branch.

/*
 * THIS CODE IS OUT-OF-DATE BY TWO YEARS, IS LEGACY DESIGN AND VERY, VERY,
 * INCOMPLETE.  PLEASE DO NOT MAKE ANY FURTHER ENHANCEMENTS TO THIS CODE
 * UNLESS THEY ARE ALSO CARRIED OUT IN THE SAMBA_TNG BRANCH.
 *
 * PLEASE DO NOT TREAT THIS CODE AS AUTHORITATIVE IN *ANY* WAY.
 *
 * REPEAT, PLEASE DO NOT MAKE ANY MODIFICATIONS TO THIS CODE WITHOUT
 * FIRST CHECKING THE EQUIVALENT MODULE IN SAMBA_TNG, UPDATING THAT
 * FIRST, *THEN* CONSIDER MAKING THE SAME MODIFICATION IN THIS BRANCH
 *
 * YOU WILL, ALMOST GUARANTEED, FIND THAT THE BUG-FIX OR ENHANCEMENT THAT
 * YOU THINK IS NECESSARY, HAS ALREADY BEEN IMPLEMENTED IN SAMBA_TNG.
 * IF IT HAS NOT, YOUR BUG-FIX OR ENHANCEMENT *MUST* GO INTO SAMBA_TNG
 * AS THE SAMBA_TNG CODE WILL REPLACE THIS MODULE WITHOUT REFERENCE TO
 * ANYTHING IN IT, WITH THE POSSIBLE RISK THAT THE BUG-FIX OR ENHANCEMENT
 * MAY BE LOST.
 *
 * PLEASE OBSERVE AND RESPECT THIS SIMPLE REQUEST.
 *
 * THANK YOU.
 *
 * lkcl@samba.org
 */

24 years agoshare info issues. started to add parsing for srv_net_share_add
Luke Leighton [Wed, 22 Mar 2000 08:01:52 +0000 (08:01 +0000)]
share info issues.  started to add parsing for srv_net_share_add
and needed to reuse code in srv_net_share_get_info, particularly
the SHARE_INFO_CTR (added info level 2).

sander, we _really_ need sidlc, this stuff's a mess.

24 years agoRemoved newline from beginning of file. Actually, just checking whether
Tim Potter [Wed, 22 Mar 2000 02:09:18 +0000 (02:09 +0000)]
Removed newline from beginning of file.  Actually, just checking whether
the cvs mailing list is still working.  (-:

24 years ago- arranged setresuid/setresgid etc detection. this is horrible, because
Luke Leighton [Tue, 21 Mar 2000 21:21:07 +0000 (21:21 +0000)]
- arranged setresuid/setresgid etc detection.  this is horrible, because
  setresgid/setegid/setregid etc do not work without setresuid etc being
  called first.  therefore, i had to add a 16-way matrix to set USE_SETRESUID
  _and_ USE_SETRESGID etc etc in order to detect the correct USE_SET??GID
  etc.

  why?  because linux/alpha has setresuid but not setresgid!  how many other
  systems have this silly kind of mis-match?

- cut across andrew's setuid etc mods, removing direct calls to seteuid etc.

also:

From Elrond@Wunder-Nett.org Wed Mar 22 06:33:51 2000
Date: Tue, 21 Mar 2000 16:53:32 +0100
From: Elrond <Elrond@Wunder-Nett.org>
To: Luke Kenneth Casson Leighton <lkcl@samba.org>
Subject: more merge, sharegetinfo and things

- as Greg noticed, libubiqx isn't currently needed by
  rpcclient, so removed it from the linkline.
- merged some more fun from HEAD for configure.in /
  acconfig.h
- someone broke it and set the lockdir to $prefix/var
  instead of $prefix/var/locks in configure.in... And I was
  wondering, why my stop-start-script couldn't stop samba
  any more
- lib/debug.c-merge, this also should fix some prob on
  irix, I was having. (please don't indent this one)
- sids: Creator-Owner is S-1-3-0 not S-1-3, SYSTEM is
  S-1-5-18, not -17.
- lsarpcd: I changed the behaviour back a bit to return
  dom\dom for domains and well-known-sids. It's not the
  "correct" behaviour, but it makes "add user" in the
  "acl-editor" nicer.
- params/loadparm.c: Merged some things from HEAD and
  reordered a bit to reflect HEAD more. Of course the new
  parameters are completely unused.
- Got share_get_info at level 502 answer working, and one
  can now even see the "max connections" from nt.

    Elrond

24 years agoindent update to make t easier to see setuid mods in TNG. some
Luke Leighton [Tue, 21 Mar 2000 21:08:07 +0000 (21:08 +0000)]
indent update to make t easier to see setuid mods in TNG.  some
code from these modules i had to leave out (nothing to do withj setuid)

24 years agoAdded preliminary user list code from HP. Needs to be made dynamic
Jeremy Allison [Tue, 21 Mar 2000 18:33:08 +0000 (18:33 +0000)]
Added preliminary user list code from HP. Needs to be made dynamic
and backended with a tdb database so the list can be shared between
multiple smbds. ToDO.

Jermey.

24 years agopreparing for release of alpha.1.2
Samba Release Account [Tue, 21 Mar 2000 03:58:50 +0000 (03:58 +0000)]
preparing for release of alpha.1.2

24 years agore-enabled the map_nt_and_unix_username() nt->unix username mapping,
Luke Leighton [Tue, 21 Mar 2000 03:48:18 +0000 (03:48 +0000)]
re-enabled the map_nt_and_unix_username() nt->unix username mapping,
and shock-horror, it actually worked.

24 years agomissing )
Luke Leighton [Tue, 21 Mar 2000 03:30:03 +0000 (03:30 +0000)]
missing )

24 years agomore empirical rules to sort out UDP138 GETDC request.
Luke Leighton [Tue, 21 Mar 2000 03:04:16 +0000 (03:04 +0000)]
more empirical rules to sort out UDP138 GETDC request.

24 years agoFix from christoph.pfisterer@rwg.de for large directory listing to OS/2
Jeremy Allison [Mon, 20 Mar 2000 21:42:15 +0000 (21:42 +0000)]
Fix from christoph.pfisterer@rwg.de for large directory listing to OS/2
server.
Jeremy.