sfrench/samba-autobuild/.git
20 years agoThis commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
cvs2svn Import User [Sat, 17 Aug 2002 07:09:23 +0000 (07:09 +0000)]
This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 6938b5b98abd9ba055a46583a05c4fc07e32f529)

20 years agoMove tridge's getgrouplist() replacement function from replace.c to a new
Andrew Bartlett [Sat, 17 Aug 2002 07:09:22 +0000 (07:09 +0000)]
Move tridge's getgrouplist() replacement function from replace.c to a new
'system_smbd.c' file, where it can link with become_root() and unbecome_root(),
and therefore avoiding some nasty 'it workes on linux' bugs.

(The replacement function is implemented in terms of initgroups(), which is
naturally only avaliable to root).

Andrew Bartlett
(This used to be commit a91018dd026be3db473bb1cf1f4981295f9758e4)

20 years agoAdd const.
Andrew Bartlett [Sat, 17 Aug 2002 06:36:18 +0000 (06:36 +0000)]
Add const.
(This used to be commit fb28abd120310a591bdf5fa1afc5521443c3d34c)

20 years agoAdd 'const'.
Andrew Bartlett [Sat, 17 Aug 2002 06:34:41 +0000 (06:34 +0000)]
Add 'const'.
(This used to be commit 8955f3d63a9d9e5da76331996fba42dc105737da)

20 years agoBecouse of changes to the meaning of this feild over time, this doesn't
Andrew Bartlett [Sat, 17 Aug 2002 05:26:58 +0000 (05:26 +0000)]
Becouse of changes to the meaning of this feild over time, this doesn't
actually work.  Also, the idea of 'loopback winbind' isn't that bad an idea
anyway (potential PDC/BDC applications).

Given all that, remove it...

Andrew Bartlett
(This used to be commit fc0d6e53fce1d05b16ec58c0bdc38aa8da4422c0)

20 years agoThe idea of this function is not to touch the argument, so make it const too...
Andrew Bartlett [Sat, 17 Aug 2002 04:56:38 +0000 (04:56 +0000)]
The idea of this function is not to touch the argument, so make it const too...
(This used to be commit 8a63fe45058b15c15d79e15387e908564cfe5c2d)

20 years agoRework the 'guest account get's RID 501' code again...
Andrew Bartlett [Sat, 17 Aug 2002 04:51:27 +0000 (04:51 +0000)]
Rework the 'guest account get's RID 501' code again...

This moves it right into the passdb subsystem, where we can do this in
just one (or 2) places.  Due to the fact that this code can be in a tight loop,
I've had to make 'guest account' a 'const' paramater, where % macros cannot be
used.  In any case, if the 'guest account' varies, we are in for some nasty
cases in the other code, so it's useful anyway.

Andrew Bartlett
(This used to be commit 8718e5e7b2651edad15f52a4262dc745df7ad70f)

20 years agofix seg fault in _spoolss_enumprinterkey after changes...
Gerald Carter [Sat, 17 Aug 2002 00:38:20 +0000 (00:38 +0000)]
fix seg fault in _spoolss_enumprinterkey after changes...

add SPOOL_PNPDATA_KEY define
(This used to be commit cdaa3f55e1fcc38b1d7a63d502a9fea3b92bf193)

20 years agoReturn access granted in create_user2.
Tim Potter [Fri, 16 Aug 2002 17:35:38 +0000 (17:35 +0000)]
Return access granted in create_user2.
(This used to be commit 8ebc295f4a487993474390e0686d2aa9313be8d1)

20 years agofix small bug in enumprinterdataex due to my changes (still more lurking
Gerald Carter [Fri, 16 Aug 2002 16:46:50 +0000 (16:46 +0000)]
fix small bug in enumprinterdataex due to my changes (still more lurking
though).
(This used to be commit 2feb89601fc45dea13fe45a55a9c058726a5de84)

20 years agoFairly large change to printing code.
Gerald Carter [Fri, 16 Aug 2002 15:36:37 +0000 (15:36 +0000)]
Fairly large change to printing code.

* removed support for PHANTOM_DEVMODE printer data

* s/NT_PRINTER_PARAM/REGISTRY_VALUE/g - This was a good bit
  of work.  Everything seems stable, but is not complete.

* support for printer data keys other than PrinterDriverData
  in the store and fetch routines.  Still needs to be plugged
  into the XxxPrinterDataEx() calls.

Tested against NT4.0 & 2k.  Like I said, it's not done, but doesn't
crash so it shouldn't upset anyone (unless you're trying to build
a Samba printer server off of HEAD).  More work to come.  Should
settle by Monday.

jerry
(This used to be commit 7ba7c04c0e961618c82c2112b9627af114c6cc42)

20 years agoReturn the error if get_group_domain_entries() fails.
Andrew Bartlett [Fri, 16 Aug 2002 08:47:10 +0000 (08:47 +0000)]
Return the error if get_group_domain_entries() fails.
(This used to be commit bc9e9e3e2e0d861f34de26a9ef8b627a86c9954d)

20 years agoMake the 'guest account' always have a RID of DOMAIN_USER_RID_GUEST.
Andrew Bartlett [Fri, 16 Aug 2002 08:46:03 +0000 (08:46 +0000)]
Make the 'guest account' always have a RID of DOMAIN_USER_RID_GUEST.

Andrew Bartlett
(This used to be commit 4725d7d04936335cbd85bd6ac5096c50fed93671)

20 years agoRe-add the last empty item to the NTLMSSP info list, but this time do it
Jim McDonough [Fri, 16 Aug 2002 08:09:55 +0000 (08:09 +0000)]
Re-add the last empty item to the NTLMSSP info list, but this time do it
with an empty string, not a NULL pointer...

Also, check for security=ads before giving a kerberos spnego response.
(This used to be commit 6eca417d1c29c7c18455f8290cad86fb1444e615)

20 years agoAdd some const to the 'in' paramaters for these functions.
Andrew Bartlett [Fri, 16 Aug 2002 07:56:08 +0000 (07:56 +0000)]
Add some const to the 'in' paramaters for these functions.

Andrew Bartlett
(This used to be commit 23f332178526877e9670515eb7c614b81fca21a9)

20 years agoFix segfault in the new NTLMSSP code. jmcd: can you look at this - what
Andrew Bartlett [Fri, 16 Aug 2002 07:04:37 +0000 (07:04 +0000)]
Fix segfault in the new NTLMSSP code.  jmcd:  can you look at this - what
exactly were you trying to do here?

Andrew Bartlett
(This used to be commit 81b675b54d86d196fb2035dc5d22781160518beb)

20 years agoMerge of netbios namecache code from APPLIANCE_HEAD.
Tim Potter [Fri, 16 Aug 2002 00:25:48 +0000 (00:25 +0000)]
Merge ... netbios namecache code from APPLIANCE_HEAD.

Tridge suggested a generic caching mechanism for Samba to avoid the
proliferation of little cache files hanging around limpet like in the
locks directory.  Someone should probably implement this at some
stage.
(This used to be commit dad31483b3bd1790356ef1e40ac62624a403bce8)

20 years agoThe unused variable was actually needed. The correct fix is to move
Tim Potter [Thu, 15 Aug 2002 22:03:22 +0000 (22:03 +0000)]
The unused variable was actually needed.  The correct fix is to move
it inside an #ifdef HAVE_ADS to avoid the warning and breaking the
build.  (-:
(This used to be commit a8c4febdb760beb669048c2bf2bb0a0b1c5ed472)

20 years agoRename unknown_0 field in create_user2 reply in the actual struct.
Tim Potter [Thu, 15 Aug 2002 19:40:34 +0000 (19:40 +0000)]
Rename unknown_0 field in create_user2 reply in the actual struct.
(This used to be commit 482d873c26bf02e27ffcd92042b476eda765a5ff)

20 years agoRename unknown_0 field in create_user2 reply in the actual struct.
Tim Potter [Thu, 15 Aug 2002 19:37:34 +0000 (19:37 +0000)]
Rename unknown_0 field in create_user2 reply in the actual struct.

Remove 9th place leading zero from some constants.
(This used to be commit 876e7b2bf45aad40282fd0ccddadf01df23d8d41)

20 years agoRemoved unused variable.
Tim Potter [Thu, 15 Aug 2002 19:34:57 +0000 (19:34 +0000)]
Removed unused variable.
(This used to be commit 23f1b839e6287089511cd51ceed298d6a6d65a89)

20 years agolarge set of updates converting some of the textdocs to SGML/DocBook.
Gerald Carter [Thu, 15 Aug 2002 13:56:33 +0000 (13:56 +0000)]
large set of updates converting some of the textdocs to SGML/DocBook.
I think these were originally from Jelmer, but I've lost
the original message.

Also had some syntax errors in the manpages (does no one regenerate
after making changes to the SGML source?)

Still have some developer specific docs to add from Jelmer in the next
go around....
(This used to be commit 5f673b788314325699a64377d514dda435e6c478)

20 years ago*** empty log message ***
Simo Sorce [Thu, 15 Aug 2002 13:25:25 +0000 (13:25 +0000)]
*** empty log message ***
(This used to be commit cb72eead70509eddaa051571f3eed3c46304b5f8)

20 years agoFix NTLMSSP challenge command and auth response. We can now service joins
Jim McDonough [Thu, 15 Aug 2002 12:18:25 +0000 (12:18 +0000)]
Fix NTLMSSP challenge command and auth response.  We can now service joins
from win2k AND still use SPNEGO (provided you don't build with kerberos...I
still have to fix that, as we are not properly falling back).
(This used to be commit 1f9b3d46c7c99e84b2983220f79613b7420c5ced)

20 years agoThe unknown_0 field in a CREATE_USER2 reply is the access granted.
Tim Potter [Thu, 15 Aug 2002 02:26:37 +0000 (02:26 +0000)]
The unknown_0 field in a CREATE_USER2 reply is the access granted.
(This used to be commit 8bca3085836255536794444248e7ff3a2460c045)

20 years agoadded comment about a new specversion seen from client.
Gerald Carter [Wed, 14 Aug 2002 10:21:53 +0000 (10:21 +0000)]
added comment about a new specversion seen from client.
Device mode size is still the same though.

jerry
(This used to be commit fb822e97cb832361062fbb2aa239d949cc83efed)

20 years agounresolved symbols fix for pam_smbpass from Steve L.
Gerald Carter [Wed, 14 Aug 2002 10:20:51 +0000 (10:20 +0000)]
unresolved symbols fix for pam_smbpass from Steve L.
(This used to be commit 27618a5ca271aef4d5f2f9180729c7d09a46d587)

20 years agoUse byteorder.h macros
Jim McDonough [Mon, 12 Aug 2002 16:39:10 +0000 (16:39 +0000)]
Use byteorder.h macros
(This used to be commit eb9004efc3580799063009a8298c35cbc420626f)

20 years agoBugfix for problem pointed out by Sean Trace <Sean.Trace@aveva.com>. We can't
Jeremy Allison [Mon, 12 Aug 2002 16:20:54 +0000 (16:20 +0000)]
Bugfix for problem pointed out by Sean Trace <Sean.Trace@aveva.com>. We can't
check for POSIX errors in the blocking lock code as we may have never made
a POSIX call (could have denied lock before POSIX checked).
Jeremy.
(This used to be commit 8403253f277299f566f2931fdec53b6e4ece376e)

20 years agoUpdate secrets_fetch_domain_guid to generate and store it if it doesn't exist.
Jim McDonough [Mon, 12 Aug 2002 13:55:31 +0000 (13:55 +0000)]
Update secrets_fetch_domain_guid to generate and store it if it doesn't exist.
Only does it for PDCs.
(This used to be commit 3543f92c39a80c8b6eb7ca3188b87f0f15896f33)

20 years agoAllow ADS PDC to exist
Jim McDonough [Mon, 12 Aug 2002 13:54:42 +0000 (13:54 +0000)]
Allow ADS PDC to exist
(This used to be commit e6ceb3482340e06d8a0a0963c6df6cf54090e5c3)

20 years agoAdd lib/util_uuid.c to build.
Jim McDonough [Mon, 12 Aug 2002 13:54:18 +0000 (13:54 +0000)]
Add lib/util_uuid.c to build.
(This used to be commit ab0e863fcc4d8fc18291f04bedfd0dd52730d833)

20 years agoCode to generate uuids for ADS setups. Uses our random generator but
Jim McDonough [Mon, 12 Aug 2002 13:48:19 +0000 (13:48 +0000)]
Code to generate uuids for ADS setups.  Uses our random generator but
conforms to standard OSF/DCE uuid format.
(This used to be commit 3b50c3b8cd86ff9a12a6e22ca3b3e904671be547)

20 years agoAdd lsaqueryinfo2, but keep under "lsaquery" command. It will autoselect
Jim McDonough [Mon, 12 Aug 2002 13:41:52 +0000 (13:41 +0000)]
Add lsaqueryinfo2, but keep under "lsaquery" command.  It will autoselect
which lsaqueryinfo to do based in infoclass.  Currently 12 is the only one
that causes a queryinfo2.
(This used to be commit f4ec2d52a7b093da701d68906cce6de197f182be)

20 years agoAdd lsa 0x2e (queryinfo2) client side
Jim McDonough [Mon, 12 Aug 2002 13:40:59 +0000 (13:40 +0000)]
Add lsa 0x2e (queryinfo2) client side
(This used to be commit c3b05b21a0340d8ff02a79401399e3d43d9e759a)

20 years agoAdd RESOLVE_DFSPATH to mkdir operations in HEAD.
Shirish Kalele [Mon, 12 Aug 2002 13:35:17 +0000 (13:35 +0000)]
Add RESOLVE_DFSPATH to mkdir operations in HEAD.
(This used to be commit cbb6e2fbdb42964107cf033c787a32cedd46e5d8)

20 years agoUse samr connect4, then fall back to samr connect if it fails. This is
Jim McDonough [Mon, 12 Aug 2002 08:26:28 +0000 (08:26 +0000)]
Use samr connect4, then fall back to samr connect if it fails.  This is
what 2k does.
(This used to be commit 99437db17aa7c2e3448f28f627e993e8ab762d31)

20 years agoAdd client side support for samr connect4 (0x3e). Seems to have one
Jim McDonough [Mon, 12 Aug 2002 08:25:02 +0000 (08:25 +0000)]
Add client side support for samr connect4 (0x3e).  Seems to have one
additional parm compared to samr connect, but I've only seen 0x00000002
in that field...
(This used to be commit ed2370b91f7f6a36efdf6b65340a5b29a26e7e7a)

20 years agoUpdated smbcontrol manpage for new printnotify commands.
Tim Potter [Sun, 11 Aug 2002 19:52:47 +0000 (19:52 +0000)]
Updated smbcontrol manpage for new printnotify commands.

Jerry, what's the latest on rebuilding doco from source?  I've no idea
whether this actually compiles or not.
(This used to be commit 6a4202a105d36f7d368e6a1d524314ea348be2a9)

20 years agoMerge some usage info from APPLIANCE_HEAD.
Tim Potter [Sun, 11 Aug 2002 19:23:09 +0000 (19:23 +0000)]
Merge some usage info from APPLIANCE_HEAD.
(This used to be commit aa93db5abed75b5c9a032a080c07473fafa53a43)

20 years agoMerge of case fixes from APPLIANCE_HEAD.
Tim Potter [Sun, 11 Aug 2002 18:19:03 +0000 (18:19 +0000)]
Merge of case fixes from APPLIANCE_HEAD.
(This used to be commit f8072d964f527dcb9b520ec06c3522524d47644f)

20 years agoAdd indent argument to put function name and type on same line -
Jelmer Vernooij [Sun, 11 Aug 2002 08:15:49 +0000 (08:15 +0000)]
Add indent argument to put function name and type on same line -
for satisfying the autoprototyper and abartlet
(This used to be commit c03d8bc24dd45ac615481a82b7ad9ad7fb8b5ed1)

20 years agoUpdate CodingSuggestions to include 'indent' arguments for the samba coding
Jelmer Vernooij [Sun, 11 Aug 2002 08:06:14 +0000 (08:06 +0000)]
Update CodingSuggestions to include 'indent' arguments for the samba coding
style
(This used to be commit 5f2c2a114b9d3739381e4ad683413a7db0187999)

20 years agoMake 'remote_machine' private to lib/substitute.c, and fix all the user to use
Andrew Bartlett [Sun, 11 Aug 2002 02:30:35 +0000 (02:30 +0000)]
Make 'remote_machine' private to lib/substitute.c, and fix all the user to use
the new accessor functions.

Andrew Bartlett
(This used to be commit f393de2310e997d05674eb7f1268655373e03647)

20 years agoFix the %m security bug again - and try to make it harder to reintroduce in
Andrew Bartlett [Sat, 10 Aug 2002 23:20:04 +0000 (23:20 +0000)]
Fix the %m security bug again - and try to make it harder to reintroduce in
future.

This moves us from fstrcpy() and global variables to 'get' and 'set' functions.

In particular, the 'set' function sainity-checks the input, in the same way as
we always have.

Andrew Bartlett
(This used to be commit e57a896f06b16fe7e336e1ae63a0c9e4cc75fd36)

20 years agoAdding pdb_xml and pdb_mysql passdb modules.
Jelmer Vernooij [Sat, 10 Aug 2002 20:14:32 +0000 (20:14 +0000)]
Adding pdb_xml and pdb_mysql passdb modules.

Added some consts to pdb_test to follow pdb_methods struct more strictly
(This used to be commit bb1c4501992650a5e26b4bc743aeae551852becc)

20 years agoone line merge from APP_HEAD
Gerald Carter [Thu, 8 Aug 2002 22:17:42 +0000 (22:17 +0000)]
one line merge from APP_HEAD
(This used to be commit b6b64d06a630f741c7ffbec99b71d34496159fa7)

20 years agodelete printer driver fix from APP_HEAD
Gerald Carter [Thu, 8 Aug 2002 22:14:42 +0000 (22:14 +0000)]
delete printer driver fix from APP_HEAD
(This used to be commit 9c6b930068d1e762fad78c9e36792764c280b85c)

20 years agoprinting change notification merge from APPLIANCE_HEAD
Gerald Carter [Thu, 8 Aug 2002 20:54:37 +0000 (20:54 +0000)]
printing change notification merge from APPLIANCE_HEAD
(This used to be commit 11ddfd9cfa550dcd3186c8aaf0cc038ce7f1791f)

20 years agoSamba dependency hell claim's another victim...
Andrew Bartlett [Thu, 8 Aug 2002 06:44:03 +0000 (06:44 +0000)]
Samba dependency hell claim's another victim...

Back out last night's patch to to reduce -l dependencies until we can ensure
that *all* configurations/platforms work...

Andrew Bartlett
(This used to be commit 35eefe7a19b2b684d3ca05a665e9c13e9d17acc3)

20 years agoMerge of incomplete rffpcnex testing code from APPLIANCE_HEAD.
Tim Potter [Thu, 8 Aug 2002 04:58:19 +0000 (04:58 +0000)]
Merge ... incomplete rffpcnex testing code from APPLIANCE_HEAD.
(This used to be commit fe43c2ac2d2e1dd3b3a25c807d4dd379c5ac4960)

20 years agoHmm, had too many objects added last time in the nmbd changes. Don't
Jim McDonough [Wed, 7 Aug 2002 12:17:35 +0000 (12:17 +0000)]
Hmm, had too many objects added last time in the nmbd changes.  Don't
need all of them.  Hopefully this will fix a few builds.
(This used to be commit 521eed1277956b0ebc47c3312edf57d386e026e6)

20 years agoPatch from Steve Langasek <vorlon@netexpress.net> to split up our -l
Andrew Bartlett [Wed, 7 Aug 2002 09:51:59 +0000 (09:51 +0000)]
Patch from Steve Langasek <vorlon@netexpress.net> to split up our -l
dependencies.  This benifits packagers (like debian) becouse then our client
code won't have references to 'server only' libraries.

(In particular, it removes the client dependency on CUPS, which was raised in
a debian bug report).

Andrew Bartlett
(This used to be commit d5f2e33b34fe0e67153894b6bf582b7eaca40e7f)

20 years agoAdd 'const' to the function prototypes to match the recent commit.
Andrew Bartlett [Wed, 7 Aug 2002 07:46:01 +0000 (07:46 +0000)]
Add 'const' to the function prototypes to match the recent commit.
(This used to be commit 0118e459b603a991f23d48cfd7f5e68c4374f950)

20 years agoAdd some more const :-)
Andrew Bartlett [Wed, 7 Aug 2002 07:28:24 +0000 (07:28 +0000)]
Add some more const :-)

This also makes it a easier to see which paramaters are 'in', and which are
'out'.

Andrew Bartlett
(This used to be commit 122cf648d7f364c68ecb7a576a42e94a954e9e56)

20 years agoAdd const to a pile of const to *DOM_SID paramaters.
Andrew Bartlett [Wed, 7 Aug 2002 07:22:43 +0000 (07:22 +0000)]
Add const to a pile of const to *DOM_SID paramaters.

Andrew Bartlett
(This used to be commit fd0ebf976eb6e5fc25bc75ff471c69c3f3761e32)

20 years agoOoops...forgot to put this in with the new nmbd samlogon response code.
Jim McDonough [Tue, 6 Aug 2002 19:52:43 +0000 (19:52 +0000)]
Ooops...forgot to put this in with the new nmbd samlogon response code.
THis should fix the build.
(This used to be commit ef984b99614c07ef5934849a9ad85190b636d421)

20 years agoAdd AD version of samlogon replies for getdc. ATM it will only function
Jim McDonough [Tue, 6 Aug 2002 18:16:28 +0000 (18:16 +0000)]
Add AD version of samlogon replies for getdc.  ATM it will only function
if you have an ADS DC.
(This used to be commit 059a352ebb7c7286d205bc86a92f5fd26ab1ff8e)

20 years agoAdd SAMR 0x3e, which is samr_connect4. Seems to be the same as our
Jim McDonough [Tue, 6 Aug 2002 18:02:56 +0000 (18:02 +0000)]
Add SAMR 0x3e, which is samr_connect4.  Seems to be the same as our
existing connect (which I've been told is really connect2), with one
extra dword.  We've only seen 0x00000002 there...
(This used to be commit 266344634944dff30f56453f9d86c490e7ac7a55)

20 years agoTry to bind with LDAPv3 if possible.
Andrew Bartlett [Tue, 6 Aug 2002 11:48:17 +0000 (11:48 +0000)]
Try to bind with LDAPv3 if possible.

Andrew Bartlett
(This used to be commit 0e420878f26bdd19b5defb78a5fe4c31662ec941)

20 years agoBack out idra's change (at his request) - the values in the tdb *should* be
Andrew Bartlett [Tue, 6 Aug 2002 10:10:54 +0000 (10:10 +0000)]
Back out idra's change (at his request) - the values in the tdb *should* be
upper cased already.

However, if you created your registry tdb in the very early versions of jerry's
patch, you could find that usrmgr doesn't function.  Simply delete the
registry.tdb, it will be recreated on startup.

Andrew Bartlett
(This used to be commit 17136a88c326bf338f948a67c92bb048c5a148af)

20 years agofixed 'net ads chostpass' for new ads structures
Andrew Tridgell [Tue, 6 Aug 2002 10:01:38 +0000 (10:01 +0000)]
fixed 'net ads chostpass' for new ads structures
(This used to be commit 3b0e60e522b669bad77e70d9c6f484a08ff84612)

20 years agowhen using netbios lookup methods make sure we try any BDCs even if
Andrew Tridgell [Tue, 6 Aug 2002 05:11:57 +0000 (05:11 +0000)]
when using netbios lookup methods make sure we try any BDCs even if
we get a response from WINS for a PDC, if the PDC isn't responding.
(This used to be commit 57916316ffc70b0b6659f3ad9d14aad41fad4c71)

20 years agofixed a memory corruption bug in ads_try_dns()
Andrew Tridgell [Tue, 6 Aug 2002 03:26:58 +0000 (03:26 +0000)]
fixed a memory corruption bug in ads_try_dns()
(This used to be commit 2ee0abb50f25e5a4529d8c9409c979a7a00e5984)

20 years agoCompile fix for new cli_lsa_enum_trust_dom() argument list.
Tim Potter [Tue, 6 Aug 2002 01:07:07 +0000 (01:07 +0000)]
Compile fix for new cli_lsa_enum_trust_dom() argument list.
(This used to be commit 2f46bdeb4fa1d32fe948af5d7fa80480ff2d2c86)

20 years agofixed a memory corruption bug in the wins code
Andrew Tridgell [Tue, 6 Aug 2002 00:56:39 +0000 (00:56 +0000)]
fixed a memory corruption bug in the wins code
(This used to be commit 3f6ca04003172c22d02111f2170ad60f0d7936d9)

20 years agoadded 'net rpc testjoin' and 'net ads testjoin' commands
Andrew Tridgell [Mon, 5 Aug 2002 14:11:50 +0000 (14:11 +0000)]
added 'net rpc testjoin' and 'net ads testjoin' commands

unfortuately we don't seem to be able to auto-test the ADS join due to
a rather nasty property of the GSSAPI library.
(This used to be commit 87c34a974a91e940bd26078a68dd84f4341d6913)

20 years agoSpelling fix.
Tim Potter [Mon, 5 Aug 2002 06:28:58 +0000 (06:28 +0000)]
Spelling fix.
(This used to be commit 28ba237a9e02e284fb541562270db758612e425a)

20 years agofixed wbinfo -t for netbiosless domains
Andrew Tridgell [Mon, 5 Aug 2002 05:04:13 +0000 (05:04 +0000)]
fixed wbinfo -t for netbiosless domains
(This used to be commit 68e70b000b273ba72206c87ad1efd6efc2c7c487)

20 years agoI must have missed this when I was adding 'const' to these earlier...
Andrew Bartlett [Mon, 5 Aug 2002 03:43:26 +0000 (03:43 +0000)]
I must have missed this when I was adding 'const' to these earlier...

Andrew Bartlett
(This used to be commit ce6c8a647ca56dcbb60ff898d77c2df297c1fe79)

20 years agoTry to make this easier to debug - display the username that failed.
Andrew Bartlett [Mon, 5 Aug 2002 03:27:04 +0000 (03:27 +0000)]
Try to make this easier to debug - display the username that failed.

Andrew Bartlett
(This used to be commit 8405bccd4e7a5315e58890ffa5d481031636f88a)

20 years agoThis fixes a number of ADS problems, particularly with netbiosless
Andrew Tridgell [Mon, 5 Aug 2002 02:47:46 +0000 (02:47 +0000)]
This fixes a number of ADS problems, particularly with netbiosless
setups.

- split up the ads structure into logical pieces. This makes it much
  easier to keep things like the authentication realm and the server
  realm separate (they can be different).

- allow ads callers to specify that no sasl bind should be performed
(used by "net ads info" for example)

- fix an error with handing ADS_ERROR_SYSTEM() when errno is 0

- completely rewrote the code for finding the LDAP server. Now try DNS
  methods first, and try all DNS servers returned from the SRV DNS
  query, sorted by closeness to our interfaces (using the same sort code
  as we use in replies from WINS servers). This allows us to cope with
  ADS DCs that are down, and ensures we don't pick one that is on the
  other side of the country unless absolutely necessary.

- recognise dnsRecords as binary when displaying them

- cope with the realm not being configured in smb.conf (work it out
  from the LDAP server)

- look at the trustDirection when looking up trusted domains and don't
  include trusts that trust our domains but we don't trust
  theirs.

- use LDAP to query the alternate (netbios) name for a realm, and make
  sure that both and long and short forms of the name are accepted by
  winbindd. Use the short form by default for listing users/groups.

- rescan the list of trusted domains every 5 minutes in case new trust
  relationships are added while winbindd is running

- include transient trust relationships (ie. C trusts B, B trusts A,
  so C trusts A) in winbindd.

- don't do a gratuituous node status lookup when finding an ADS DC (we
  don't need it and it could fail)

- remove unused sid_to_distinguished_name function

- make sure we find the allternate name of our primary domain when
  operating with a netbiosless ADS DC (using LDAP to do the lookup)

- fixed the rpc trusted domain enumeration to support up to approx
  2000 trusted domains (the old limit was 3)

- use the IP for the remote_machine (%m) macro when the client doesn't
  supply us with a name via a netbios session request (eg. port 445)

- if the client uses SPNEGO then use the machine name from the SPNEGO
  auth packet for remote_machine (%m) macro

- add new 'net ads workgroup' command to find the netbios workgroup
  name for a realm
(This used to be commit e358d7b24c86a46d8c361b9e32a25d4f71a6dc00)

20 years agopasswords where not checked (you cannot check if the same buffer differs from itself).
Simo Sorce [Sun, 4 Aug 2002 15:40:39 +0000 (15:40 +0000)]
passwords where not checked (you cannot check if the same buffer differs from itself).
they where alo not clean after use!

Simo.
(This used to be commit 5a257096e9afdcd1dea863dff43952457a74a9f1)

20 years agocommented out strupper before key check against internal db, it's no good
Simo Sorce [Sun, 4 Aug 2002 14:25:32 +0000 (14:25 +0000)]
commented out strupper before key check against internal db, it's no good
to check for uppercased strings when we store them not uppercased.

jerry, this fix is needed to make usrmgr.exe work again.
meanwhile we found out that NT_STATUS code may not be appropriate there.
In particular it seem that an NT PDC will send back 02 as error
(ERRbadfile) not 0xc000000f (NT_STATUS_NO_SUCH_FILE NT)

I think further investigation is need to understand which are aprropriate
return codes here.
(This used to be commit 2ad0e81c8da62b7e15ab3e414b5e15a94fe5de87)

20 years agoNow that I got the function arguments sane, remove the silly (void **) casts
Andrew Bartlett [Sun, 4 Aug 2002 01:16:37 +0000 (01:16 +0000)]
Now that I got the function arguments sane, remove the silly (void **) casts
from some of the callers.

Andrew Bartlett
(This used to be commit eb3354aa6c7293df9a728565a6774049b2e6d57f)

20 years agofixed a bug where we were truncating the returned names in a netbios
Andrew Tridgell [Sat, 3 Aug 2002 01:55:44 +0000 (01:55 +0000)]
fixed a bug where we were truncating the returned names in a netbios
name status query to 14 bytes, so we could not join a DC who had a
netbios name of 15 bytes in length.
(This used to be commit a7588f21c24dac833f098c48e2337c100cf75ba4)

20 years agoupdates the log level parameter man section
Simo Sorce [Sat, 3 Aug 2002 01:20:42 +0000 (01:20 +0000)]
updates the log level parameter man section

can someone regenerate and commit the other formats?
thanks
(This used to be commit cfc03b9257feeec1ae4b4cbf19d5ddcdabade133)

20 years agofix log level, set a default, and also copy the value set in smb.conf into parm_struc...
Simo Sorce [Sat, 3 Aug 2002 01:11:16 +0000 (01:11 +0000)]
fix log level, set a default, and also copy the value set in smb.conf into parm_struct.ptr
this one also fixes log level not shown in swat
fix swat help system
(This used to be commit 7532e828966f3baaa418b528a5b7fe450c488401)

20 years agoFix length on mailslots. Looks like it should have been 0x17, not decimal 17.
Jim McDonough [Fri, 2 Aug 2002 17:44:02 +0000 (17:44 +0000)]
Fix length on mailslots.  Looks like it should have been 0x17, not decimal 17.
(This used to be commit 8e906a948196be7d630a9b20f3c3d2cbafd545f1)

20 years agoEscape ampersand(&) to better comply to SGML syntax
Jelmer Vernooij [Fri, 2 Aug 2002 10:53:40 +0000 (10:53 +0000)]
Escape ampersand(&) to better comply to SGML syntax
(This used to be commit d234f04a5f3ecd4debf66ce80e76f6b9aedaed6c)

20 years agoMoved rpc client routines from libsmb back to rpc_client where they belong.
Tim Potter [Fri, 2 Aug 2002 07:20:56 +0000 (07:20 +0000)]
Moved rpc client routines from libsmb back to rpc_client where they belong.
(This used to be commit cb946b5dadf3cfd21bf584437c6a8e9425f6d5a7)

20 years agoAdded connect, session_request, session_setup and tconx methods.
Tim Potter [Fri, 2 Aug 2002 05:35:09 +0000 (05:35 +0000)]
Added connect, session_request, session_setup and tconx methods.
(This used to be commit 76eacaa28546d65b9ddb7ff356f0bd2aaf2f86d8)

20 years agoBroke out unpacking of a username/password stored in a Python
Tim Potter [Fri, 2 Aug 2002 05:28:54 +0000 (05:28 +0000)]
Broke out unpacking of a username/password stored in a Python
dictionary into a separate function.
(This used to be commit 10889241d5f5813f499501a45edccc4acd3e9f74)

20 years agoMerge of print notify fixes from APPLIANCE_HEAD.
Tim Potter [Fri, 2 Aug 2002 03:57:40 +0000 (03:57 +0000)]
Merge of print notify fixes from APPLIANCE_HEAD.
(This used to be commit 7bf9ca6ca36fa319a57eab05567d49a003237bb5)

20 years agoFixed compiler warning.
Tim Potter [Thu, 1 Aug 2002 23:14:48 +0000 (23:14 +0000)]
Fixed compiler warning.
(This used to be commit 81322f4d63095d828be7983eb4b47775abe8d33f)

20 years agomake sure we null terminate plaintext passwords
Andrew Tridgell [Thu, 1 Aug 2002 03:38:21 +0000 (03:38 +0000)]
make sure we null terminate plaintext passwords
(This used to be commit cf2abf677ed9942d841ef61ffb2565244c8979ac)

20 years agomerge from SAMBA_2_2
Gerald Carter [Wed, 31 Jul 2002 14:56:40 +0000 (14:56 +0000)]
merge from SAMBA_2_2
(This used to be commit 72d36c9b2596cda6c3c25c18ddb4c58d55519ff8)

20 years agoforgot to change the makefile system, sorry
Simo Sorce [Wed, 31 Jul 2002 13:16:14 +0000 (13:16 +0000)]
forgot to change the makefile system, sorry
(This used to be commit 3e6a11f56a3878e75c4354db214971208d911be3)

20 years agoAdd the current working document on the interface to the tree that we have
Andrew Bartlett [Wed, 31 Jul 2002 12:53:56 +0000 (12:53 +0000)]
Add the current working document on the interface to the tree that we have
*somthing* in the directory.  (Stops cvs update -P eating it).

This is the combined effort of many from #samba-technical, kai, metze,
ctrlsoft, idra and abartlet in particular.  It will no doubt change :-)

Andrew Bartlett
(This used to be commit 40fc43296def1f5ac3c23aba8b283a91f1d10239)

20 years agoLet everybody enjoy my new toy - make it the default!
Andrew Bartlett [Wed, 31 Jul 2002 12:17:32 +0000 (12:17 +0000)]
Let everybody enjoy my new toy - make it the default!

Authenticaions will now attempt to use winbind, and only fall back to
'ntdomain' (the old security=domain) code if that fails (for any reason,
including wrong password).

I'll fix up the authenticaion code to better handle the different types of
failures in the near future.

Andrew Bartlett
(This used to be commit 78f0d4337bd263d26d7b349eaf8148e863c62f69)

20 years agoWinbind updates!
Andrew Bartlett [Wed, 31 Jul 2002 12:05:30 +0000 (12:05 +0000)]
Winbind updates!

This updates the 'winbind' authentication module and winbind's 'PAM' (actually
netlogon) code to allow smbd to cache connections to the DC.

This is particulary relevent when we need mutex locks already - there is no
parallelism to be gained anyway.

The winbind code authenticates the user, and if successful, passes back the
'info3' struct describing the user.  smbd then interprets that in exactly the
same way as an 'ntdomain' logon.

Also, add parinoia to winbind about null termination.

Andrew Bartlett
(This used to be commit 167f122b670d4ef67d78e6f79a2bae3f6e8d67df)

20 years agoRework parinioa to ensure we never get passwords longer than MAX_PASS_LEN, nor
Andrew Bartlett [Wed, 31 Jul 2002 11:57:56 +0000 (11:57 +0000)]
Rework parinioa to ensure we never get passwords longer than MAX_PASS_LEN, nor
longer than the buffer they claim to be in.

Many thanks to tridge for explaining the macros.

Andrew Bartlett
(This used to be commit 3efd462bf2f1ed50c108c2b8ddecc461d002745d)

20 years agofixed the length checking for plaintext passwords (thanks to andrewb
Andrew Tridgell [Wed, 31 Jul 2002 10:47:26 +0000 (10:47 +0000)]
fixed the length checking for plaintext passwords (thanks to andrewb
for spotting this)
(This used to be commit d4c905e5a0a67c8e01a4fcf78aa992a3b7beff02)

20 years agoDon't accidenity mess with the wrong domain's sids.
Andrew Bartlett [Wed, 31 Jul 2002 10:12:52 +0000 (10:12 +0000)]
Don't accidenity mess with the wrong domain's sids.
(This used to be commit 0e2207c9c1ce573098f764e85a65c17cc1f1d284)

20 years agofix debug, at idra's suggestion.
Andrew Bartlett [Wed, 31 Jul 2002 10:11:03 +0000 (10:11 +0000)]
fix debug, at idra's suggestion.

Andrew Bartlett
(This used to be commit bc17b91c2f1a1df58614b67bff94f228be6b9bb2)

20 years agoOnly allow 'security=ads' when we HAVE_ADS.
Andrew Bartlett [Wed, 31 Jul 2002 10:07:35 +0000 (10:07 +0000)]
Only allow 'security=ads' when we HAVE_ADS.

Andrew Bartlett
(This used to be commit f77335b6f86c736e72b66eab6a2aee046ddbee41)

20 years agosupport netbiosless search for the DC using ADS in the winbindd AUTH
Andrew Tridgell [Wed, 31 Jul 2002 09:36:05 +0000 (09:36 +0000)]
support netbiosless search for the DC using ADS in the winbindd AUTH
code.
(This used to be commit 3929532e3bfb98b925d73d331c8cbb319fdc8b9a)

20 years agofixed multi-line strings for portability
Andrew Tridgell [Wed, 31 Jul 2002 09:34:00 +0000 (09:34 +0000)]
fixed multi-line strings for portability
(This used to be commit 9f9e0cbd2c9920b730286f8bf560dc3415c29aa6)

20 years agomake sure we zero the unusued elements in a SID when parsing
Andrew Tridgell [Wed, 31 Jul 2002 09:32:45 +0000 (09:32 +0000)]
make sure we zero the unusued elements in a SID when parsing
(This used to be commit aa5beb63f1b1133c4ad28118ddd33e21198d79bb)

20 years agoadded 'disable netbios = yes/no' option, default is no
Andrew Tridgell [Wed, 31 Jul 2002 05:41:51 +0000 (05:41 +0000)]
added 'disable netbios = yes/no' option, default is no

When this option is disabled we should not do *any* netbios
operations. You should also not start nmbd at all. I have put initial
checks in at the major points we do netbios operations in smbd but
there are bound to be more needed. Right now I've disabled all netbios
name queries, all WINS lookups and node status queries in smbd and
winbindd.

I've been testing this option and the most noticable thing is how much
more responsive things are! wthout those damn netbios timeouts things
certainly are much slicker.
(This used to be commit 12e7953bf2497eeb7c0bc6585d9fe58b3aabc240)