kai/samba.git
18 years agosync with HEAD; link to HOWTO index
Gerald Carter [Fri, 17 Jan 2003 14:33:31 +0000 (14:33 +0000)]
sync with HEAD; link to HOWTO index
(This used to be commit c31d5036afc6b717dbc6b63742f39c95c01094ae)

18 years agock at documenting Win9X/ME Profile Handling.
John Terpstra [Fri, 17 Jan 2003 06:59:38 +0000 (06:59 +0000)]
ck at documenting Win9X/ME Profile Handling.
(This used to be commit 7d8550b29a8730e323c410934b9aecd8abdbfbd3)

18 years agoJanitorial duty...
Jeremy Allison [Fri, 17 Jan 2003 06:40:12 +0000 (06:40 +0000)]
Janitorial duty...
fix some undefined behaviour with increments in C. In theory a
compiler could have produced complete crap for this code. (tridge).
Jeremy.
(This used to be commit 2b4335f06265940582f389f48dc4f87f452a2703)

18 years agoFix reference count bug where smbd's would not terminate with no
Jeremy Allison [Fri, 17 Jan 2003 06:34:22 +0000 (06:34 +0000)]
Fix reference count bug where smbd's would not terminate with no
open resources.
Jeremy.
(This used to be commit b7e5a2c5474e9edd8fa783462af8986b6bd426a5)

18 years agoupdate for 3.0
Herb Lewis [Thu, 16 Jan 2003 23:34:51 +0000 (23:34 +0000)]
update for 3.0
(This used to be commit 5b70b6cd7e0d8c9462820e27e9d2fe1fc82df215)

18 years agoMerge the fix from head about short variables.
Richard Sharpe [Thu, 16 Jan 2003 23:29:14 +0000 (23:29 +0000)]
Merge the fix from head about short variables.
(This used to be commit e408bf329163e45e60ebd1aef648f79aaeef1c13)

18 years agoFixed up mutex protection around winbindd logon code. Sync with APP-HEAD.
Jeremy Allison [Thu, 16 Jan 2003 20:08:26 +0000 (20:08 +0000)]
Fixed up mutex protection around winbindd logon code. Sync with APP-HEAD.
Jeremy.
(This used to be commit daf179bcd6297b525bfc644efb154734723f4d58)

18 years agoAdding genlogon obtained from a a mailing list posting in 2001.
John Terpstra [Thu, 16 Jan 2003 05:54:35 +0000 (05:54 +0000)]
Adding genlogon obtained from a a mailing list posting in 2001.
(This used to be commit f6121fb55b27178f1bcae00a7225e03028f9e7d4)

18 years agoMore Heimdal changes. Still not compiling with Heimdal yet...
Jeremy Allison [Thu, 16 Jan 2003 02:58:14 +0000 (02:58 +0000)]
More Heimdal changes. Still not compiling with Heimdal yet...
Jeremy.
(This used to be commit 4333be5732de07786254382a4aa41333783d81b5)

18 years agoFist part of fixes to make us compile with Heimdal. Don't explicitly
Jeremy Allison [Thu, 16 Jan 2003 02:39:49 +0000 (02:39 +0000)]
Fist part of fixes to make us compile with Heimdal. Don't explicitly
detect for now, I still have vague hopes of hiding the differences
between MIT and Heimdal with a compatibility layer....
Jeremy.
(This used to be commit 54d83de8a23937f1d8179a7e2596df3c50785618)

18 years agoregenerate docs
Gerald Carter [Thu, 16 Jan 2003 02:21:51 +0000 (02:21 +0000)]
regenerate docs
(This used to be commit 2215dc37e26bec17eb971e7b54818622a9bb5b97)

18 years agoMore notes added.
John Terpstra [Thu, 16 Jan 2003 00:33:17 +0000 (00:33 +0000)]
More notes added.
(This used to be commit 0406b786236017ca817f18c25ec9ad778a7c001d)

18 years agoAdd mutex protection around auth calls.
Jeremy Allison [Thu, 16 Jan 2003 00:27:27 +0000 (00:27 +0000)]
Add mutex protection around auth calls.
Jeremy.
(This used to be commit ea4fe9baadd70e6fc22c5e33de66165895d2e42c)

18 years agoMerge of holding pattern stuff from HEAD.
Tim Potter [Wed, 15 Jan 2003 23:32:47 +0000 (23:32 +0000)]
Merge of holding pattern stuff from HEAD.
(This used to be commit bf8bb62023bcd38e5bc53ef1ac2183360d6ff734)

18 years agos/WIFSIGNALLED/WIFSIGNALED/g
Gerald Carter [Wed, 15 Jan 2003 23:11:57 +0000 (23:11 +0000)]
s/WIFSIGNALLED/WIFSIGNALED/g
(This used to be commit dc6cda595179b8c53f15d4bc92faf782f3e2d482)

18 years agomissed a file
Gerald Carter [Wed, 15 Jan 2003 22:52:54 +0000 (22:52 +0000)]
missed a file
(This used to be commit 1df9f3e259b5ba190de7a123a79b3afcd2bfe489)

18 years agodo not use RCS variables in file
Gerald Carter [Wed, 15 Jan 2003 22:37:28 +0000 (22:37 +0000)]
do not use RCS variables in file
(This used to be commit 6d739272218276c89256224226d44fc05b80c6f6)

18 years agosyncing docs with HEAD
Gerald Carter [Wed, 15 Jan 2003 22:29:27 +0000 (22:29 +0000)]
syncing docs with HEAD
(This used to be commit d8fe70c3b4be548244e9d7b7ea533e64232df001)

18 years agoRemove debugging stmt.
Tim Potter [Wed, 15 Jan 2003 22:20:16 +0000 (22:20 +0000)]
Remove debugging stmt.
(This used to be commit d74382ccfe7e96e20816dd2d481b79fb66f2f243)

18 years agoSync up compiler warning fixes.
Tim Potter [Wed, 15 Jan 2003 22:18:33 +0000 (22:18 +0000)]
Sync up compiler warning fixes.
(This used to be commit 225182a3a36c72b10643c9568e5cc1f80c0173f1)

18 years agoand another comment.
John Terpstra [Wed, 15 Jan 2003 21:46:25 +0000 (21:46 +0000)]
and another comment.
(This used to be commit 60d1fe38bd0c779158426e776bfb64b0ba1c710f)

18 years agodded further comment.
John Terpstra [Wed, 15 Jan 2003 21:42:18 +0000 (21:42 +0000)]
dded further comment.
(This used to be commit 094726d84d08a83dcce8e1b96c3b3623ef9f7382)

18 years agoRemove a wayward file.
Richard Sharpe [Wed, 15 Jan 2003 21:35:36 +0000 (21:35 +0000)]
Remove a wayward file.
(This used to be commit ef597400602cdbd1601355f8ef54f12ea45dff78)

18 years agoAdding Win2K profile info.
John Terpstra [Wed, 15 Jan 2003 21:26:07 +0000 (21:26 +0000)]
Adding Win2K profile info.
(This used to be commit 7b9aa0008b914f8657b19d3c671774574767abbc)

18 years agoAdding more notes.
John Terpstra [Wed, 15 Jan 2003 20:46:13 +0000 (20:46 +0000)]
Adding more notes.
(This used to be commit 2649a21c93d0c93164d6a3cef4931d4e992fe972)

18 years agoAdded note about Win2Pro RK.
John Terpstra [Wed, 15 Jan 2003 20:08:25 +0000 (20:08 +0000)]
Added note about Win2Pro RK.
(This used to be commit 60b19241a5e3fa264154a35e6c446b2bbc6191d9)

18 years agoplaying janitor for tpot; remove holding pattern
Gerald Carter [Wed, 15 Jan 2003 19:08:23 +0000 (19:08 +0000)]
playing janitor for tpot; remove holding pattern
(This used to be commit c8e77809adfb2ace18c219d9291651a4959bbcb7)

18 years ago*lots of small merges form HEAD
Gerald Carter [Wed, 15 Jan 2003 18:57:41 +0000 (18:57 +0000)]
*lots of small merges form HEAD
*sync up configure.in
*don't build torture tools in make all
*make sure to remove torture tools as part of make clean
(This used to be commit 0fb724b3216eeeb97e61ff12755ca3a31bcad6ef)

18 years agosync up ignored files from HEAD
Gerald Carter [Wed, 15 Jan 2003 17:40:09 +0000 (17:40 +0000)]
sync up ignored files from HEAD
(This used to be commit 787830782c14d219bd15f28969ed3c9fd251dbed)

18 years agowinbindd merges from HEAD
Gerald Carter [Wed, 15 Jan 2003 17:39:47 +0000 (17:39 +0000)]
winbindd merges from HEAD
(This used to be commit 8bd91a50d4e743935196ca258d06a3e43392140d)

18 years agomerging some rpcclient and net functionality from HEAD
Gerald Carter [Wed, 15 Jan 2003 17:22:48 +0000 (17:22 +0000)]
merging some rpcclient and net functionality from HEAD
(This used to be commit 7a4c87484237308cb3ad0d671687da7e0f6e733b)

18 years agoinitialize acct_ctrl variable before it is used
Herb Lewis [Wed, 15 Jan 2003 16:41:29 +0000 (16:41 +0000)]
initialize acct_ctrl variable before it is used
remove ldap_msgfree(result); as result is unitialized at this point
(This used to be commit 1102a6f8cdf295d564df5447a223b354be72895d)

18 years agomore unused files
Gerald Carter [Wed, 15 Jan 2003 16:32:06 +0000 (16:32 +0000)]
more unused files
(This used to be commit d223ea87ae202574714da5c4eadbe281f8699a80)

18 years agoremving more unused files
Gerald Carter [Wed, 15 Jan 2003 16:29:38 +0000 (16:29 +0000)]
remving more unused files
(This used to be commit e3f9b68deecb61274ead2086a0ed977d5318b09c)

18 years ago[merge]
Gerald Carter [Wed, 15 Jan 2003 16:10:57 +0000 (16:10 +0000)]
[merge]
* removed unused variable from rpcclient code
* added container option to net command (patch from SuSE)
* Makefile patch for examples/VFS from SuSE
(This used to be commit 25a9681ddda47a41fac8fdc97ca50b7f4c579eaf)

18 years agoFirst set of Profile Manipulation Notes.
John Terpstra [Wed, 15 Jan 2003 16:07:24 +0000 (16:07 +0000)]
First set of Profile Manipulation Notes.
(This used to be commit 49685e0fe31f0c77f09217d424c6de91d4cd58ff)

18 years agoremoving unused files from release branch
Gerald Carter [Wed, 15 Jan 2003 14:52:23 +0000 (14:52 +0000)]
removing unused files from release branch
(This used to be commit 4ff6f99040c400d27fa470199474800b82531d64)

18 years agoThis commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
cvs2svn Import User [Wed, 15 Jan 2003 12:52:39 +0000 (12:52 +0000)]
This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 619877ce031f3193065b51b8684ffbbe893b132f)

18 years agoRefactor the NTLMSSP code again - this time we use function pointers to
Andrew Bartlett [Wed, 15 Jan 2003 12:52:38 +0000 (12:52 +0000)]
Refactor the NTLMSSP code again - this time we use function pointers to
eliminate the dependency on the auth subsystem.  The next step is to add
the required code to 'ntlm_auth', for export to Squid etc.

Andrew Bartlett
(This used to be commit 9e48ab86da40e4c1cafa70c04fb9ebdcce23dfab)

18 years agoDoing a malloc(strlen(s)) then a pstrpcp(y, s) is just silly, make it a strdup
Andrew Bartlett [Wed, 15 Jan 2003 12:48:06 +0000 (12:48 +0000)]
Doing a malloc(strlen(s)) then a pstrpcp(y, s) is just silly, make it a strdup
instead.

Andrew Bartlett
(This used to be commit c781e34d274f4185ec932cc59029d3f9a65e47c4)

18 years agoadded cli_lsa_enum_account_rights() call. Note that this is in
Andrew Tridgell [Wed, 15 Jan 2003 07:40:40 +0000 (07:40 +0000)]
added cli_lsa_enum_account_rights() call. Note that this is in
principal similar to the existing cli_lsa_enum_privsaccount() call,
except that cli_lsa_enum_account_rights() doesn't require a call to
open_account first. There is also the minor matter that
cli_lsa_enum_account_rights() works whereas
cli_lsa_enum_privsaccount() doesn't!

this call can be used to find what privileges an account or group
has. This is a first step towards proper privileges support in Samba.
(This used to be commit 65bac11d716f873dcdbda528313c33634c26a072)

18 years agoFix warnings by getting the function into a shape the autoprototyper will
Andrew Bartlett [Wed, 15 Jan 2003 05:56:12 +0000 (05:56 +0000)]
Fix warnings by getting the function into a shape the autoprototyper will
read, and add a static.

Andrew Bartlett
(This used to be commit 919889de78fc3c7bc5dfebcc180385f2f3d7a564)

18 years agoCrash fixes:
Andrew Bartlett [Wed, 15 Jan 2003 05:55:22 +0000 (05:55 +0000)]
Crash fixes:
 - fix a crash when a second NTLMSSP session tried to free the first
 - fix a crash due to some NULL pointers in the Add Printer Wizard (or read
   printer code too it appears).  As far as I can tell it's just that the
   GUID just might not exist.

Andrew Bartlett
(This used to be commit 51b1413056b0d001076ff47a755eb35baa2d9e6d)

18 years agoOne more from waitpid() audit: Correctly interpret waitstatus when a
Martin Pool [Wed, 15 Jan 2003 05:27:33 +0000 (05:27 +0000)]
One more from waitpid() audit: Correctly interpret waitstatus when a
child fails.  Possibly this was causing smbmount to exit(0) when it
really should have indicated a failure.
(This used to be commit 1e33083fe66dfc1e168ffeb2f9d87953534a2d5d)

18 years agoRun autoheader
Martin Pool [Wed, 15 Jan 2003 05:23:40 +0000 (05:23 +0000)]
Run autoheader
(This used to be commit 82e4bb598c9fc26eaa090687d0daa6505fa0d550)

18 years agoFix bug where the existence of config.cache would cause functions like
Martin Pool [Wed, 15 Jan 2003 05:00:04 +0000 (05:00 +0000)]
Fix bug where the existence of config.cache would cause functions like
yp_get_default_domain to be misdetected.

According to the autoconf manual we need to check for libraries before
looking for functions in them.
(This used to be commit 468c487df42c6fc25d1862f36995b3d9a78902ff)

18 years agoIRIX uses libns_winbind.so instead of libnss_winbind.so
Herb Lewis [Wed, 15 Jan 2003 01:07:09 +0000 (01:07 +0000)]
IRIX uses libns_winbind.so instead of libnss_winbind.so
(This used to be commit 04adfa001b616f0e4b765e29cb8be9e8531eeb7c)

18 years agoIRIX uses libns_winbind.so instead of libnss_winbind.so
Herb Lewis [Wed, 15 Jan 2003 01:05:35 +0000 (01:05 +0000)]
IRIX uses libns_winbind.so instead of libnss_winbind.so
(This used to be commit 50adb8cc1074e9bedac365a92db96c5f01f30223)

18 years ago[merge] removing unused variable and unused file
Gerald Carter [Tue, 14 Jan 2003 23:55:14 +0000 (23:55 +0000)]
[merge] removing unused variable and unused file
(This used to be commit 099e844571975eecde7aea342c64d3f768110e03)

18 years agoremoving unused variable and unused file
Gerald Carter [Tue, 14 Jan 2003 23:52:42 +0000 (23:52 +0000)]
removing unused variable and unused file
(This used to be commit c8266011b7afc2d6bcb8638c2a5ed3f9116cd88a)

18 years agoFix some debug lines, and add a bit more info to help track down ldap
Andrew Bartlett [Tue, 14 Jan 2003 23:45:14 +0000 (23:45 +0000)]
Fix some debug lines, and add a bit more info to help track down ldap
connectivity problems.

Andrew Bartlett
(This used to be commit 68de9a59203ed9778f11b78f233dc437b9dab55d)

18 years agomerge: disable [u|g]idPool objects
Gerald Carter [Tue, 14 Jan 2003 16:03:27 +0000 (16:03 +0000)]
merge: disable [u|g]idPool objects
(This used to be commit 4c98700e54f3cc617eb578758695fd4dbd690f82)

18 years agomake -i flag work lik eit did in 2.2
Gerald Carter [Tue, 14 Jan 2003 15:52:45 +0000 (15:52 +0000)]
make -i flag work lik eit did in 2.2
(This used to be commit 54b054c1edd44096c7158993a886f915d7a07493)

18 years agomake -i flag work lik eit did in 2.2
Gerald Carter [Tue, 14 Jan 2003 15:52:14 +0000 (15:52 +0000)]
make -i flag work lik eit did in 2.2
(This used to be commit 5d821c0e23f96f4da6a29a6bebf800532fcf1aa6)

18 years agoMerge from HEAD - patch by metze to fill in 'workgroup' etc in testparm output,
Andrew Bartlett [Tue, 14 Jan 2003 10:47:56 +0000 (10:47 +0000)]
Merge from HEAD - patch by metze to fill in 'workgroup' etc in testparm output,
and probably SWAT too..

Andrew Bartlett
(This used to be commit 1df808ac8931979000d681bd086399ef306873b6)

18 years agoMerge from HEAD:
Andrew Bartlett [Tue, 14 Jan 2003 10:39:32 +0000 (10:39 +0000)]
Merge from HEAD:

Keep all the const warnings in one place, by adding a utility function to
make the TDB_DATA.
(This used to be commit 7d52f011e7191f54004341a646b049d373504c02)

18 years agoMerge from HEAD:
Andrew Bartlett [Tue, 14 Jan 2003 08:53:59 +0000 (08:53 +0000)]
Merge from HEAD:
 - fstring/pstring mixups
 - the detection code that found them (disabled)
 - a bit of whitespace
 - a static

Andrew Bartlett
(This used to be commit 9b70fa868e7d9481f584c83fc4046174e1dedfd9)

18 years agoMerge from HEAD:
Andrew Bartlett [Tue, 14 Jan 2003 08:26:54 +0000 (08:26 +0000)]
Merge from HEAD:
 - remove useless #else
 - signed/unsigned fixes
 - use an fstring for LM hash buffer.

Andrew Bartlett
(This used to be commit c0fb53c31fd7341745d14640e761affc5dae5230)

18 years agoMerge from HEAD - eliminated unused arguments.
Andrew Bartlett [Tue, 14 Jan 2003 07:49:15 +0000 (07:49 +0000)]
Merge from HEAD - eliminated unused arguments.

Andrew Bartlett
(This used to be commit 6dd474d8451d39e580834089d7c3614059558354)

18 years agoMerge indirection, signed/unsigned and uninitialiased-value fixes from HEAD.
Andrew Bartlett [Tue, 14 Jan 2003 07:26:12 +0000 (07:26 +0000)]
Merge indirection, signed/unsigned and uninitialiased-value fixes from HEAD.

Andrew Bartlett
(This used to be commit 2a1adb8f81d8966e8919fffb9b4c69f3e6acd44f)

18 years agoCommit my (disabled) fstring/pstring mixup detection code.
Andrew Bartlett [Tue, 14 Jan 2003 06:53:35 +0000 (06:53 +0000)]
Commit my (disabled) fstring/pstring mixup detection code.

We need to fix some 'overmalloc' cases before it can be enabled by default.

Andrew Bartlett
(This used to be commit 2c2c52a18be1bd0a5ae1f4a48b1d9e18f4887dda)

18 years agoThe last of the fstring/pstring mixups, and an extra 'static'.
Andrew Bartlett [Tue, 14 Jan 2003 06:46:14 +0000 (06:46 +0000)]
The last of the fstring/pstring mixups, and an extra 'static'.
(This used to be commit b328b67fd8fd605636ed58ffd33cf5be3d480672)

18 years agoA couple more pstcpy/fstrcpy mixups - doing an fstrcpy into a pstring is
Andrew Bartlett [Tue, 14 Jan 2003 06:36:40 +0000 (06:36 +0000)]
A couple more pstcpy/fstrcpy mixups - doing an fstrcpy into a pstring is
harmless, but breaks my automated check.
(This used to be commit e5d2b1f6c3c0883054f4e0eab2cac958706a790d)

18 years agoAdded comment about a SMB_ASSERT()
Tim Potter [Tue, 14 Jan 2003 05:25:08 +0000 (05:25 +0000)]
Added comment about a SMB_ASSERT()
(This used to be commit 056bdfbce73bbd7ddaa198d18e596b94b2224d3d)

18 years agoRemove wrapper function _get_trust_account_password() as it doesn't
Tim Potter [Tue, 14 Jan 2003 05:08:42 +0000 (05:08 +0000)]
Remove wrapper function _get_trust_account_password() as it doesn't
seem to do anything useful anymore other than call
secrets_fetch_trust_account_password().
(This used to be commit 7b0c03cbf1376f82b0bb5f4cf86e2db3b0bc1dec)

18 years agoAdded a comment in case anyone is thinking of doing a SMB_ASSERT in winbindd.
Tim Potter [Tue, 14 Jan 2003 04:04:13 +0000 (04:04 +0000)]
Added a comment in case anyone is thinking of doing a SMB_ASSERT in winbindd.
(This used to be commit c64e2308bae31d48171685b3b67b8cace1b003b5)

18 years agomerge alt_name patch from head
Andrew Tridgell [Tue, 14 Jan 2003 03:02:18 +0000 (03:02 +0000)]
merge alt_name patch from head
(This used to be commit 20ebdee36d5351731698bdef6602fc73a45b1651)

18 years agoquery_alt_name takes a forced unicode string in win2000. It is not
Andrew Tridgell [Tue, 14 Jan 2003 02:51:37 +0000 (02:51 +0000)]
query_alt_name takes a forced unicode string in win2000. It is not
null terminated.

Thanks to Metze for finding this.
(This used to be commit e4ce26332b8f876e25ff9baf06d4767a473e2676)

18 years agoclearer debug message when the user is already in the ldap db
Andrew Tridgell [Tue, 14 Jan 2003 00:39:18 +0000 (00:39 +0000)]
clearer debug message when the user is already in the ldap db
(This used to be commit 31894ba0e5847eb934688598cd8d65bead23c58b)

18 years agoadd help text for 'net ads lookup'
Andrew Tridgell [Tue, 14 Jan 2003 00:35:38 +0000 (00:35 +0000)]
add help text for 'net ads lookup'
(This used to be commit 2a642a1169a3c09988daa9623dcb4f21b0a2ad1f)

18 years agoDon't touch data after a free.
Jeremy Allison [Mon, 13 Jan 2003 23:15:14 +0000 (23:15 +0000)]
Don't touch data after a free.
Jeremy.
(This used to be commit 3aea32c8e6d204e41776b4bce79234d2159867b3)

18 years agoMissing indirect in final free.
Jeremy Allison [Mon, 13 Jan 2003 23:07:28 +0000 (23:07 +0000)]
Missing indirect in final free.
Jeremy.
(This used to be commit faf443e5198e270f1a60d7a0939074efca750a94)

18 years agoMerge of indirection fixes from HEAD.
Jeremy Allison [Mon, 13 Jan 2003 23:07:26 +0000 (23:07 +0000)]
Merge of indirection fixes from HEAD.
Jeremy
(This used to be commit 67a0b30f50aa323185cbcf3a9d39804239222480)

18 years agoAlways initialise this variable - and don't set the 'must change now' if it was
Andrew Bartlett [Mon, 13 Jan 2003 21:49:49 +0000 (21:49 +0000)]
Always initialise this variable - and don't set the 'must change now' if it was
last changed at '0'.

We need to actually change this password sometime...

Andrew Bartlett
(This used to be commit 740bf439d2d1512127c873cf0e57697161d6566b)

18 years agoFix typo, and the build.
Andrew Bartlett [Mon, 13 Jan 2003 21:48:52 +0000 (21:48 +0000)]
Fix typo, and the build.
(This used to be commit d7452e73b511ceaebfaed66c18e7c61cbe0289d2)

18 years agoMore janitorial duties. Pulling these in from samba-head.
Richard Sharpe [Mon, 13 Jan 2003 20:37:46 +0000 (20:37 +0000)]
More janitorial duties. Pulling these in from samba-head.
(This used to be commit f2529a35a7b60c16e229cc3bf22afc726035f15d)

18 years agoMake sure that those cleanups actually went in.
Richard Sharpe [Mon, 13 Jan 2003 20:30:28 +0000 (20:30 +0000)]
Make sure that those cleanups actually went in.
(This used to be commit 9a38e378115a1c36d0cd7c41f4c5767c23b4eb3f)

18 years agoNow that I am running config.developer, I decided to get rif of some warnings:
Richard Sharpe [Mon, 13 Jan 2003 20:04:40 +0000 (20:04 +0000)]
Now that I am running config.developer, I decided to get rif of some warnings:

1. reboot in parse_reg and cli_reg was shadowing a definition on FreeBSD
   4.3 from system includes.

2. Added a bit of const to places.

3. Made sure internal functions were declared where needed.
(This used to be commit fd847aa93690eb72f0437a8d22c03b222eb2a016)

18 years agoPatch from metze to add what he feels is the correct semantics for a Domain
Andrew Bartlett [Mon, 13 Jan 2003 13:11:36 +0000 (13:11 +0000)]
Patch from metze to add what he feels is the correct semantics for a Domain
Controller.  As we have had a number of attempts at this over the last little
while, I need to get my test rig going, and give this whole area a poke...

Meanwhile, if you want to use this, just adjust your 'auth methods' line to use
samstrict_dc...

Andrew Bartlett
(This used to be commit 18e598ec24493026008fcfe486057555b8832108)

18 years agoPatch from metze to to make testparm show values for 'workgroup', 'netbios
Andrew Bartlett [Mon, 13 Jan 2003 13:03:25 +0000 (13:03 +0000)]
Patch from metze to to make testparm show values for 'workgroup', 'netbios
name' and 'netbios scope'.  Probably has a similar effect on SWAT.

Also adds '-V' to testparm.

Andrew Bartlett
(This used to be commit 71f4d8efd36351ddb2180103c160a6d737da62b1)

18 years agoPatch from ab, to make findsmb omit -r most of the time.
Andrew Bartlett [Mon, 13 Jan 2003 12:54:59 +0000 (12:54 +0000)]
Patch from ab, to make findsmb omit -r most of the time.

(original mail follows)
--
From: Alexander Bokovoy <a.bokovoy@sam-solutions.net>
Greetings!

I propose to make an optional argument '-r' for findsmb utility to pass
'-r' option to nmblookup optionally and default to omit it. The reason is
to have findsmb working more user-friendly in contemporary office
environments where Windows 95/98 boxes are rare and also to allow usage of
the utility under non-priviledged accounts when Windows95/98 boxes are in
minority or even absent in network neighbourhood.

An attached patch provides this change for HEAD together with
documentation changes.

--
/ Alexander Bokovoy
(This used to be commit d0bebea521e12fb9cef66feecd969216607ef63d)

18 years agoUpdates to our NTLMSSP code:
Andrew Bartlett [Mon, 13 Jan 2003 12:48:37 +0000 (12:48 +0000)]
Updates to our NTLMSSP code:

This tries to extract our server-side code out of sessetup.c, and into a more
general lib.  I hope this is only a temporay resting place - I indend to
refactor it again into an auth-subsystem independent lib, using callbacks.

Move some of our our NTLMSSP #defines into a new file, and add two that I found
in the COMsource docs - we seem to have a double-up, but I've verified from
traces that the NTLMSSP_TARGET_TYPE_{DOMAIN,SERVER} is real.

This code also copes with ASCII clients - not that we will ever see any here,
but I hope to use this for HTTP, were we can get them.  Win2k authenticates
fine under forced ASCII, btw.

Tested with Win2k, NTLMv2 and Samba's smbclient.

Andrew Bartlett
(This used to be commit b6641badcbb2fb3bfec9d00a6466318203ea33e1)

18 years agoAccessing data after it's been free()ed really is a no-no...
Andrew Bartlett [Mon, 13 Jan 2003 12:42:20 +0000 (12:42 +0000)]
Accessing data after it's been free()ed really is a no-no...

Andrew Bartlett
(This used to be commit 6e821285a4aacfc0031957b88ddbec73d7e1dc11)

18 years agoFix to debian bug #171071 - we had the wrong dereference on the pointer to be
Andrew Bartlett [Mon, 13 Jan 2003 12:21:07 +0000 (12:21 +0000)]
Fix to debian bug #171071 - we had the wrong dereference on the pointer to be
Realloc()ed, causing it to fail.

Big thanks to Sandor Sonfeld <sonf@linuxmail.org> for the debug, stack and
valgrind traces!

Andrew Bartlett
(This used to be commit 7abca6d281da6388899f78e3440d7ce37bf2094e)

18 years agoDon't force the DOS password into a 14 char space, as this would imply null
Andrew Bartlett [Mon, 13 Jan 2003 08:53:54 +0000 (08:53 +0000)]
Don't force the DOS password into a 14 char space, as this would imply null
termination - the password will not be null terminated before hashing if
len >= 14.

related to debian bug #157432

Andrew Bartlett
(This used to be commit c6535836f2e48903aa89a18c11cbb37576fb4a20)

18 years agoEnsure we do not pass uninitialised data to the kernel. (Picked up by
Andrew Bartlett [Mon, 13 Jan 2003 08:09:32 +0000 (08:09 +0000)]
Ensure we do not pass uninitialised data to the kernel.  (Picked up by
valgrind).

Andrew Bartlett
(This used to be commit f8d9880c5f5321f4dba6b42896419412284c3e7b)

18 years agoFix typo in comment.
Martin Pool [Mon, 13 Jan 2003 04:57:21 +0000 (04:57 +0000)]
Fix typo in comment.
(This used to be commit 26660f939f0e0650d54631bf8243b22f32b64132)

18 years agoMerge of remove "winbindd holding pattern" from appliance. It's a bit
Tim Potter [Mon, 13 Jan 2003 03:45:31 +0000 (03:45 +0000)]
Merge ... remove "winbindd holding pattern" from appliance.  It's a bit
simpler as the rescanning of trusted domains helps us out a bit.
(This used to be commit 089729c02cb2088e85f0e7f8ec79afb58fe98be7)

18 years agoKeep all the const warnings in one place, by adding a utility function to
Andrew Bartlett [Sun, 12 Jan 2003 12:23:37 +0000 (12:23 +0000)]
Keep all the const warnings in one place, by adding a utility function to
make the TDB_DATA.

Andrew Bartlett
(This used to be commit f087fe546fd0c943dec022c657f849803f4b807e)

18 years agoOops, this is the change to use an fstring for the incoming service buffer -
Andrew Bartlett [Sun, 12 Jan 2003 11:31:03 +0000 (11:31 +0000)]
Oops, this is the change to use an fstring for the incoming service buffer -
the commit to reply.c just matches a pstrcpy for the pstring.  (harmless, fixes
it for the automated test).

Andrew Bartlett
(This used to be commit ef9c7586ac152304cacaf2c16115adc2bccefc22)

18 years agoMake the 'service' in make_connection() use an fstrcpy(), and an fstring,
Andrew Bartlett [Sun, 12 Jan 2003 11:29:02 +0000 (11:29 +0000)]
Make the 'service' in make_connection() use an fstrcpy(), and an fstring,
becouse that is what it's input (reply_tcon_and_x) uses, and becouse we really
don't want supprises for service names.

Also remove a legacy #define, in favor of the lp_ equiv.

Andrew Bartlett
(This used to be commit 7854a439ac601d3c23703b115cd5a8d4257c7717)

18 years agoWhile the usage is most bisarre, this fixes up another fstring/pstring mixup.
Andrew Bartlett [Sat, 11 Jan 2003 12:33:00 +0000 (12:33 +0000)]
While the usage is most bisarre, this fixes up another fstring/pstring mixup.
(In this case, an fstrcpy() into a pstring, ie harmless).

Andrew Bartlett
(This used to be commit 7b92d26d479dbc0923484967936511cfc645c5f4)

18 years agoUse size_t for the counter vars, to match the type they are assigned from
Andrew Bartlett [Sat, 11 Jan 2003 12:24:19 +0000 (12:24 +0000)]
Use size_t for the counter vars, to match the type they are assigned from
(signed/unsigned mixup).

Andrew Bartlett
(This used to be commit f42cf0783fa3aeddc4992021df9ee6f3b1aa58f3)

18 years agoA couple more fstring/pstring issues - and move from sizeof(fstring) to
Andrew Bartlett [Sat, 11 Jan 2003 12:18:57 +0000 (12:18 +0000)]
A couple more fstring/pstring issues - and move from sizeof(fstring) to
sizeof(var) in slprintf statements, so as to ensure we don't get mixups there.

Also remove fstrcpy() into a variable that is about to be printed into anyway.

Andrew Bartlett
(This used to be commit 9b761237321d475c324a3995fe6f0922550ae995)

18 years agoRemove an unused paramter for our old LM-only password change code, and fix a
Andrew Bartlett [Sat, 11 Jan 2003 12:13:03 +0000 (12:13 +0000)]
Remove an unused paramter for our old LM-only password change code, and fix a
(harmless) fstring/pstring mixup.

Andrew Bartlett
(This used to be commit 5ff5f540ccc2ee2c9859213b84598baa400f57a5)

18 years agoFix a number of client-side fstring/pstring mixups.
Andrew Bartlett [Sat, 11 Jan 2003 12:04:14 +0000 (12:04 +0000)]
Fix a number of client-side fstring/pstring mixups.

Andrew Bartlett
(This used to be commit fe1cc779d5ea77e87dbc0e2edf7c34a354fee6e0)

18 years agoPatch from Nik Conwell <nik@bu.edu>. Don't reference free()ed data when trying
Andrew Bartlett [Sat, 11 Jan 2003 03:29:31 +0000 (03:29 +0000)]
Patch from Nik Conwell <nik@bu.edu>.  Don't reference free()ed data when trying
to figure out if we have got our ticket yet.

Andrew Bartlett
(This used to be commit a66ced2cf69145c0a5be5ed91ac306db50c313d1)

18 years agoReturn the 'freindly' NT error message if at all possible.
Andrew Bartlett [Sat, 11 Jan 2003 03:25:31 +0000 (03:25 +0000)]
Return the 'freindly' NT error message if at all possible.

Andrew Bartlett
(This used to be commit 90d05176534cfd97ed3827bddfeb3a0cb7f22683)

18 years agoNo point having this for both parts of the 'if' statement.
Andrew Bartlett [Sat, 11 Jan 2003 03:23:16 +0000 (03:23 +0000)]
No point having this for both parts of the 'if' statement.

Andrew Bartlett
(This used to be commit 3b2e5f68cd4e1ff07dbd0032f521b3ba6e53746a)

18 years ago[merge] make sure to update print queue cache during timeout_processing() to send...
Gerald Carter [Sat, 11 Jan 2003 02:38:36 +0000 (02:38 +0000)]
[merge] make sure to update print queue cache during timeout_processing() to send notify events; CR 1491
(This used to be commit f8a915b14d63e4fdb99235053eeb896ef9492068)