amitay/samba.git
24 years agoThis commit was manufactured by cvs2svn to create tag release-alpha-1-4 samba-misc-tags/tng/release-alpha-1-4
cvs2svn Import User [Wed, 29 Mar 2000 07:46:58 +0000 (07:46 +0000)]
This commit was manufactured by cvs2svn to create tag
'release-alpha-1-4'.

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 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 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 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 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 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 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 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 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 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 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 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 agoFrom johanh@fusion.kth.se Mon Mar 20 21:18:43 2000
Luke Leighton [Mon, 20 Mar 2000 10:27:19 +0000 (10:27 +0000)]
From johanh@fusion.kth.se Mon Mar 20 21:18:43 2000
Date: Mon, 20 Mar 2000 11:01:44 +0100 (MET)
From: Johan Hedin <johanh@fusion.kth.se>
To: Luke Kenneth Casson Leighton <lkcl@samba.org>
Cc: samba-patches@samba.org
Subject: Re: patch

On Sat, 18 Mar 2000, Luke Kenneth Casson Leighton wrote:

> okie, thx.  can you please alter thee so that they start with either HAVE_
> or USE_
>

Done. I also found a fix for the setgroups. I have tested Samba TNG (CVS
update today) as PDC/fileserver towards NT4SP5 and smbclient. I did add

24 years agoshutdown -f option was setting the wrong flags.
Luke Leighton [Sun, 19 Mar 2000 19:33:30 +0000 (19:33 +0000)]
shutdown -f option was setting the wrong flags.

24 years agomichael glauche spotted two brackets mistake in Makefile.in
Luke Leighton [Sun, 19 Mar 2000 19:09:09 +0000 (19:09 +0000)]
michael glauche spotted two brackets mistake in Makefile.in

24 years agopreparing for release of alpha.1.1
Samba Release Account [Sun, 19 Mar 2000 08:08:17 +0000 (08:08 +0000)]
preparing for release of alpha.1.1

24 years agopatch from greg dickie for Makefile issues - ordering of libraries.
Luke Leighton [Sun, 19 Mar 2000 06:35:03 +0000 (06:35 +0000)]
patch from greg dickie for Makefile issues - ordering of libraries.

24 years agoexperimenting on getting GETDC responses right: there is a domain name
Luke Leighton [Sun, 19 Mar 2000 02:14:07 +0000 (02:14 +0000)]
experimenting on getting GETDC responses right: there is a domain name
length+name (sometimes length = 0) plus 16 bytes of padding and i'm
trying to work out the rules as to when this domain name is in there.

so far:

- if request is sent to DOMAIN<1b> or

- DGRAM type is a DGRAM_GROUP (msg_type of 17)

24 years agoFrom Elrond@Wunder-Nett.org Sun Mar 19 06:35:04 2000
Luke Leighton [Sat, 18 Mar 2000 19:48:50 +0000 (19:48 +0000)]
From Elrond@Wunder-Nett.org Sun Mar 19 06:35:04 2000
Date: Sat, 18 Mar 2000 19:15:56 +0100
From: Elrond <Elrond@Wunder-Nett.org>
To: Luke Kenneth Casson Leighton <lkcl@samba.org>
Subject: more merge

- re-indented some code by hand and later verified, that
  indent will not change it. (indent sometimes does crap:
if (! some_function
    (arg1, arg2, arg3))
  instead of:
   if (! some_function(arg1, arg2,
       arg3))
- merged a bit more of lib/time.c
- replaced Realloc(NULL, ... and malloc() all over the
  place with nicer g_new().

    Elrond

24 years agounicode string alignments in NET_USER_INFO_x structures.
Luke Leighton [Sat, 18 Mar 2000 19:46:06 +0000 (19:46 +0000)]
unicode string alignments in NET_USER_INFO_x structures.

24 years agoneed to return access denied on credential failure.
Luke Leighton [Sat, 18 Mar 2000 09:34:43 +0000 (09:34 +0000)]
need to return access denied on credential failure.

24 years agoreturning zero entries is _not_ an error, in get_sampwd_entries()
Luke Leighton [Sat, 18 Mar 2000 09:11:08 +0000 (09:11 +0000)]
returning zero entries is _not_ an error, in get_sampwd_entries()

24 years agoparameters were being passed across incorrectly in samr_chgpasswd_user
Luke Leighton [Sat, 18 Mar 2000 00:19:31 +0000 (00:19 +0000)]
parameters were being passed across incorrectly in samr_chgpasswd_user
in the server-side dce/rpc code.  password changes now work, again.

24 years agoAdded rpcclient/display_dfs.c module
Shirish Kalele [Fri, 17 Mar 2000 22:43:29 +0000 (22:43 +0000)]
Added rpcclient/display_dfs.c module

24 years agoAdded rpcclient/display_dfs.c module.
Shirish Kalele [Fri, 17 Mar 2000 22:42:25 +0000 (22:42 +0000)]
Added rpcclient/display_dfs.c module.

24 years agoadding net command (how did this get left out for so long)? which includes
Luke Leighton [Fri, 17 Mar 2000 20:39:16 +0000 (20:39 +0000)]
adding net command (how did this get left out for so long)?  which includes
shirish's new dfs commands.

attempting to fix ntpass command, it doesn't send the domain name and i
added code that _rejects_ non-domain-name encrypted dce/rpcs, and it
worked!  i got a bind nack from samrd!  wow!

24 years agoCleaned up compiler warnings.
Shirish Kalele [Fri, 17 Mar 2000 20:38:23 +0000 (20:38 +0000)]
Cleaned up compiler warnings.

24 years agojeremy spotted that some 2.5-year-old code, only now used in one place, a
Luke Leighton [Fri, 17 Mar 2000 20:18:00 +0000 (20:18 +0000)]
jeremy spotted that some 2.5-year-old code, only now used in one place, a
function align4, was incorrect.

fascinating :)

24 years agoAdded Dfs commands to rpcclient
Shirish Kalele [Fri, 17 Mar 2000 20:17:51 +0000 (20:17 +0000)]
Added Dfs commands to rpcclient

24 years agopreparing for release of alpha.1.0
Samba Release Account [Fri, 17 Mar 2000 19:32:13 +0000 (19:32 +0000)]
preparing for release of alpha.1.0

24 years agook, this one's weird. firstly, sam_set_userinfo doesn't align the
Luke Leighton [Fri, 17 Mar 2000 19:15:50 +0000 (19:15 +0000)]
ok, this one's weird.  firstly, sam_set_userinfo doesn't align the
2nd info level at the container, but sam_set_userinfo2 *does*.

secondly, it _looks_ like there are two revisions for SAM database
entries, where some unknown trash is _not_ placed in the structure
(at the end: unknown_6 and padding4) if the revision number (unknown_5)
is zero.

have to keep an eye on this one over the next year or so, to make sure
all cases are caught.

third, it _looks_ like if you do a password set that the account disabled
acb_info bit is automatically unset, but i cannot confirm that right
now, i'll just have to wing-it (in the next commit)

24 years agowhen a GETDC datagram is received, if the dgram type is UNIQUE instead of
Luke Leighton [Fri, 17 Mar 2000 18:30:10 +0000 (18:30 +0000)]
when a GETDC datagram is received, if the dgram type is UNIQUE instead of
GROUP, it is processed *differently*, there is a domain-name string in it,
so i skip 22 bytes and _then_ read the version number etc.

this must go in 2.0.x and cvs main (oh, and i'm not going to do it, i'm
not "trusted" enough to do the job "correctly").

this will be the only notification that this is needed in 2.0.x and cvs
main branches.

24 years agoFrom Elrond@Wunder-Nett.org Sat Mar 18 04:49:11 2000
Luke Leighton [Fri, 17 Mar 2000 18:03:47 +0000 (18:03 +0000)]
From Elrond@Wunder-Nett.org Sat Mar 18 04:49:11 2000
Date: Fri, 17 Mar 2000 16:02:28 +0100
From: Elrond <Elrond@Wunder-Nett.org>
To: Luke Kenneth Casson Leighton <lkcl@samba.org>
Subject: Re: SVC_UNKNOWN_3

On Fri, Mar 17, 2000 at 08:27:49AM +1100, Luke Kenneth Casson Leighton wrote:
> it's probably a delete service :-) :-)
>
> check your box!!!
[...]

Hi Luke,

You pass in a Service-Control-Manager-Handle, not a
service-handle, so it can't be service-delete. It could of
course be scman-del... which would be quite crazy.
(includind the fact, that this is done by srvmgr, which
hasn't any means to add/del a service...)

But it was all my fault. I copied cli_svc.c:svc_close()
over to svc_unknown_3... and guess what... I changed
everything except the Opcode...

After that I was more successful: You pass in a scman_hnd,
and get back some other handle...I don't know yet, what it
is good for... I added an appropiate server-side
implementation and srvmgr.exe got a bit further, but now it
calls opcode 11 on a service-handle. Maybe more soon.
(I'm pressing the "Startup"-button in Services in srvmgr)

The patch contains:
- complete server and client-side implementation of
  SVC_UNKNOWN_3 (yet no idea, what it is, but we have it)
- --with-privatedir=... from HEAD is now completely in TNG
- merged some things from HEAD into lib/time.c
  PLEASE DON'T run indent on lib/time.c !
[lkcl: okie]
- dito for param/loadparm.c
  PLEASE DON'T run indent on param/loadparm.c !
[lkcl: okie]

    Elrond

24 years agoindent rules suggested by elrond. comments added into nmbd packet tracing.
Luke Leighton [Fri, 17 Mar 2000 17:49:47 +0000 (17:49 +0000)]
indent rules suggested by elrond.  comments added into nmbd packet tracing.

24 years agomaking sure that req chal would not be affected by having prs_align()
Luke Leighton [Fri, 17 Mar 2000 17:48:19 +0000 (17:48 +0000)]
making sure that req chal would not be affected by having prs_align()
added to *inside* smb_io_unistr2().  this is the _only_ place where
alignment rules are broken.

24 years agoafsticket defines
Luke Leighton [Fri, 17 Mar 2000 17:36:40 +0000 (17:36 +0000)]
afsticket defines

24 years agoFrom Elrond@Wunder-Nett.org Fri Mar 17 08:34:21 2000
Luke Leighton [Thu, 16 Mar 2000 22:06:53 +0000 (22:06 +0000)]
From Elrond@Wunder-Nett.org Fri Mar 17 08:34:21 2000
Date: Thu, 16 Mar 2000 16:29:53 +0100
From: Elrond <Elrond@Wunder-Nett.org>
To: Luke Kenneth Casson Leighton <lkcl@samba.org>
Subject: SVC_UNKNOWN_3

Hi Luke,

I played a bit with srvmgr around and it did a opnum=3 on
svcctl, so I tried to decode the request. For me it looked
lit it only consists of a sc_man_hnd. So I added some
parsing code and an "svcunk3" to rpcclient, so I could ask
the NT-box for the answer. The answer were 20 NUL-bytes. I
guess, this is a closed handle and a status. Also the
following svc_close(sc_man_hnd) seemed to fail somehow (I
didn't realy see the fault-pdu or so... but I did not see
an svc_io_r_close_hnd either.)

[lkcl: i suspect that this is a "delete service" call,
       which is why the close fails because the handle
       is alread closed!]

All this looks to me like opnum=3 is something like
SVC_CLOSE2 or so.

Could you apply the patch and verify that?

I also did the following:
- modified configure.in, so it is more like HEAD (still lot
  to do)
- fixed some issues in groupdb/builtinunix.c:
  When I created aliases with domain alias map, all these
  aliases also existed in the Builtin domain, so usrmgr
  showed them all doubled. (might be interesting for
  HEAD...)
- made global_sid_S_1_1_0 static, one should use
  global_sid_everyone instead.
- continued my share_get_info-effort by writing *_free_*
  for all the fun. Yet have to use them.

    Elrond

24 years agoran indent on afsticket.c because its format was confusing make proto.
Luke Leighton [Thu, 16 Mar 2000 21:48:59 +0000 (21:48 +0000)]
ran indent on afsticket.c because its format was confusing make proto.

24 years agopatch from johan hedin <johanh@fusion.kth.se> for AFS ticket support.
Luke Leighton [Thu, 16 Mar 2000 21:38:20 +0000 (21:38 +0000)]
patch from johan hedin <johanh@fusion.kth.se> for AFS ticket support.

24 years agofixed word-order issue in password set and password change.
Luke Leighton [Wed, 15 Mar 2000 23:47:51 +0000 (23:47 +0000)]
fixed word-order issue in password set and password change.

24 years agopreparing for release of alpha.0.16
Samba Release Account [Wed, 15 Mar 2000 23:34:43 +0000 (23:34 +0000)]
preparing for release of alpha.0.16

24 years agogratuitous indent on files modified in the last two days.
Luke Leighton [Wed, 15 Mar 2000 23:28:14 +0000 (23:28 +0000)]
gratuitous indent on files modified in the last two days.

24 years ago1) SAM_USER_INFO_12 what i thought was acb_info isn't. this may be
Luke Leighton [Wed, 15 Mar 2000 02:08:59 +0000 (02:08 +0000)]
1) SAM_USER_INFO_12 what i thought was acb_info isn't.  this may be
responsible for some of the password set failure problems: treating
the wrong field as an acb_info would result in rejection of password
sets.

2) in attempting to track down server-password-set problems i noticed
that the "security = domain" mode sets the password incorrectly.

24 years agosneaking suspicion that the ProductOptions key is being reported the wrong
Luke Leighton [Tue, 14 Mar 2000 23:48:21 +0000 (23:48 +0000)]
sneaking suspicion that the ProductOptions key is being reported the wrong
way round (BDC instead of PDC, PDC instead of BDC).

24 years agopatch from michael breuer for irix.
Luke Leighton [Tue, 14 Mar 2000 21:19:44 +0000 (21:19 +0000)]
patch from michael breuer for irix.

24 years agofinally decided to increase debug log level for "socket connect failed"
Luke Leighton [Tue, 14 Mar 2000 21:11:06 +0000 (21:11 +0000)]
finally decided to increase debug log level for "socket connect failed"
message from level 0 to level 1.

24 years agoFrom Elrond@Wunder-Nett.org Wed Mar 15 06:14:36 2000
Luke Leighton [Tue, 14 Mar 2000 20:53:28 +0000 (20:53 +0000)]
From Elrond@Wunder-Nett.org Wed Mar 15 06:14:36 2000
Date: Tue, 14 Mar 2000 19:23:04 +0100
From: Elrond <Elrond@Wunder-Nett.org>
To: Luke Kenneth Casson Leighton <lkcl@samba.org>
Subject: Re: _lsa_lookup_names

On Tue, Mar 14, 2000 at 08:20:26AM +1100, Luke Kenneth Casson Leighton wrote:
> elrond, this function isn't used, yet.

I did the conversion this morning and the diff is
appended.

[lkcl: thanks elrond]

I also added some more handle-names. Hope someone else
likes them. ;)

[lkcl: me! me! :)]

    Elrond

24 years agoAnother #ifndef #define #endif bug.
Tim Potter [Tue, 14 Mar 2000 03:22:29 +0000 (03:22 +0000)]
Another #ifndef #define #endif bug.

24 years agoSpotted error in #ifndef _XXX #define _XXX #endif thing.
Tim Potter [Tue, 14 Mar 2000 03:18:33 +0000 (03:18 +0000)]
Spotted error in #ifndef _XXX #define _XXX #endif thing.

24 years agopreparing for release of alpha.0.15
Samba Release Account [Mon, 13 Mar 2000 20:51:34 +0000 (20:51 +0000)]
preparing for release of alpha.0.15

24 years agoFrom Elrond@Wunder-Nett.org Tue Mar 14 06:07:16 2000
Luke Leighton [Mon, 13 Mar 2000 20:21:58 +0000 (20:21 +0000)]
From Elrond@Wunder-Nett.org Tue Mar 14 06:07:16 2000
Date: Mon, 13 Mar 2000 18:26:00 +0100
From: Elrond <Elrond@Wunder-Nett.org>
To: Luke Kenneth Casson Leighton <lkcl@samba.org>
Subject: more cleanup

- removed most of the old --with-lib*-stuff, we're using
  libtool for this
- srv_samr_passdb.c: Added some handle-names for debugging
  (helped me somehow to track netlogond-probs)
- made a whole bunch of functions in display_srv.c and
  display_sam.c
- Added a bunch of error-checking in lsarpcd, it looks like
  it tries to check/change the trust-accoutn password as a
  normal user (or even guest)

[lkcl: checks can't hurt: _lsa_open_secret is called, direct, not
       client-side marshalling wrapper, lsa_open_secret, etc]

    Elrond

24 years agoFrom Elrond@Wunder-Nett.org Tue Mar 14 06:01:05 2000
Luke Leighton [Mon, 13 Mar 2000 19:09:13 +0000 (19:09 +0000)]
From Elrond@Wunder-Nett.org Tue Mar 14 06:01:05 2000
Date: Mon, 13 Mar 2000 18:16:51 +0100
From: Elrond <Elrond@Wunder-Nett.org>
To: Luke Kenneth Casson Leighton <lkcl@samba.org>
Subject: netlogond: crash and ggroup membership

Hi Luke,

netlogond crashes, when my workstation tries to change its
trust-account password. I tracked this to some point and
fixed those points. Since my workstation only tries to
change the pw every 15 minutes, testing is quite
timeconsuming and I didn't yet test my last fix, that I did
in this area.

After some funny errors (most notable: root is in Domain
Admins, but I couldn't change any thing in the
network-settings), I noticed, that netlogond didn't
transmit _any_ group memberships, when I logged into the
workstation, I found this and fixed it.

Could you please take a look at the following functions:
- direct_samr_userinfo
- _net_srv_pwset

I modified both, but I'm not too sure, I did it the right
way.

[lkcl: looks good, elrond.  explains why groups didn't get set up!]

24 years agoAdded standard shell command thing using '!' as first character.
Tim Potter [Mon, 13 Mar 2000 01:32:48 +0000 (01:32 +0000)]
Added standard shell command thing using '!' as first character.

24 years agoFrom Elrond@Wunder-Nett.org Mon Mar 13 10:35:03 2000
Luke Leighton [Mon, 13 Mar 2000 00:01:04 +0000 (00:01 +0000)]
From Elrond@Wunder-Nett.org Mon Mar 13 10:35:03 2000
Date: Sat, 11 Mar 2000 17:57:54 +0100
From: Elrond <Elrond@Wunder-Nett.org>
To: Luke Kenneth Casson Leighton <lkcl@samba.org>
Subject: more cleanup, global_sid_builtin

Hi Luke,

- more cleanup on parse_samr.c
- micro-merge from HEAD for Makefile
- use smb_io_rpc_uuid-return-value in smb_io_pol_hnd
- replaced nearly all &global_sid_S_1_5_20 by
  global_sid_builtin (inspired from a post by tim, he
  didn't apply this patch)
- closing an lsa-handle in rpcclient->createuser only, if
  also opened

24 years agopreparing for release of alpha.0.14
Samba Release Account [Sat, 11 Mar 2000 01:01:17 +0000 (01:01 +0000)]
preparing for release of alpha.0.14