kai/samba.git
17 years agoAdd a wrapper for dup2() to our system.c
Andrew Bartlett [Sat, 20 Jul 2002 06:50:47 +0000 (06:50 +0000)]
Add a wrapper for dup2() to our system.c

Andrew Bartlett
(This used to be commit b24b6307f6b40e559aec441e0ebab8f666b87d9f)

17 years agoNT_STATUS_UNSUCCESSFUL just gets clients confused - move to NO_LOGON_SERVERS
Andrew Bartlett [Sat, 20 Jul 2002 04:55:42 +0000 (04:55 +0000)]
NT_STATUS_UNSUCCESSFUL just gets clients confused - move to NO_LOGON_SERVERS
becouse thats what Win2k gives when the PDC is down.

Some of these might better go to other errors, but the Win2k text message for
'unsuccessful' is not particularly useful.  (A device attached to the system is
not functioning...)

Andrew Bartlett
(This used to be commit 656f1d68e8579f1bd0a7118caf9e0373d5980a69)

17 years agoenumeration of printers keys ( no data yet ) via the registry
Gerald Carter [Sat, 20 Jul 2002 04:27:30 +0000 (04:27 +0000)]
enumeration of printers keys ( no data yet ) via the registry
functions now works :-)
(This used to be commit c5768538f6cf6ee824bc6e105a3391bbc2ea8e46)

17 years agofixed a logic error in the sorted_tree_find_child() routine
Gerald Carter [Sat, 20 Jul 2002 02:42:04 +0000 (02:42 +0000)]
fixed a logic error in the sorted_tree_find_child() routine
that caused a valid search to fail.  The printing registry
view now works again.
(This used to be commit 2050859f03493d5135984ce1e42baf8f1f2566b9)

17 years agofixed seg fault in registry frontend caused by trying to
Gerald Carter [Fri, 19 Jul 2002 22:16:03 +0000 (22:16 +0000)]
fixed seg fault in registry frontend caused by trying to
use a destroyed TALLOC_CTX*
(This used to be commit 432b9f8d7c20fbf3b2a0906c8a93272abbe43fb6)

17 years agoFixed a compiler warning.
Tim Potter [Fri, 19 Jul 2002 22:01:23 +0000 (22:01 +0000)]
Fixed a compiler warning.
(This used to be commit bc0f1c1ec21e69014426e41fb0a5264da63b857a)

17 years agoNever ignore valgrind messages :-). Don't reference before the start
Jeremy Allison [Fri, 19 Jul 2002 19:56:27 +0000 (19:56 +0000)]
Never ignore valgrind messages :-). Don't reference before the start
of a string....
Jeremy.
(This used to be commit 35f0fbd254c222d015bdc582277b90efbaade81e)

17 years ago* refactored registry operations some. subkey lists and
Gerald Carter [Fri, 19 Jul 2002 18:49:44 +0000 (18:49 +0000)]
* refactored registry operations some.  subkey lists and
  registry values are now passed around in containers
  (REGSUBKEY_CTR & REGVAL_CTR) which each possess a TALLOC_CTX.

* removed subkey_specific_fn() from REGISTRY_OPS.  Is implemented
  in the form of a wrapper

* temporarily broke the printing registry ops.

* implemented inheritence for the data_p of nodes in a SORTED_TREE

* All REGISTRY_KEY instances now store a valid REGISTRY_HOOK since
  the default REGOSTRY_OPS structure is stored in the root of the
  cache_tree.

* Probably some other change I forgot....  T
(This used to be commit e7b55e8f017e638342d9c8c1a9259000745a0298)

17 years agoAllow trans2 and nttrans messages to be processed in oplock break state.
Jeremy Allison [Fri, 19 Jul 2002 17:14:19 +0000 (17:14 +0000)]
Allow trans2 and nttrans messages to be processed in oplock break state.
As noticed by Lev Iserovich <lev@ciprico.com> this seems to fix a problem
with oplock breaks and Win2k, and we are protected from problems by existing
code in trans2.c and nttrans.c
Jeremy.
(This used to be commit e3f7d6c03f100962395763a5066313d60b4761d0)

17 years agoFormatting fixup. Fix shadow warning.
Jeremy Allison [Fri, 19 Jul 2002 16:45:37 +0000 (16:45 +0000)]
Formatting fixup. Fix shadow warning.
Jeremy.
(This used to be commit beb298898d5700dcd775ee3b1f1965e67214e9e5)

17 years agomerge from SAMBA_2_2 spotted by Simo
Gerald Carter [Fri, 19 Jul 2002 16:03:52 +0000 (16:03 +0000)]
merge from SAMBA_2_2 spotted by Simo
(This used to be commit 590c4ee076dcc14cb516c9ea04b47b1665c48ece)

17 years agofixed line buffer mode in XFILE
Andrew Tridgell [Fri, 19 Jul 2002 04:00:21 +0000 (04:00 +0000)]
fixed line buffer mode in XFILE
thanks to tim for finding this bug
(This used to be commit 91bff7545405ba88bc721f358ccdbf0aac0e3ba6)

17 years agoPrevious fix was incorrect. len in string_sub and all_string_sub is
Jeremy Allison [Thu, 18 Jul 2002 23:43:33 +0000 (23:43 +0000)]
Previous fix was incorrect. len in string_sub and all_string_sub is
number of *bytes*. >= check was correct, the len=0 case needed changing
to len = ls + 1.
Jeremy.
(This used to be commit 06a4a6d30ade5ea4d123ae640393677c9a510763)

17 years agoAdd useful VALGRIND #ifdef.
Jeremy Allison [Thu, 18 Jul 2002 23:28:47 +0000 (23:28 +0000)]
Add useful VALGRIND #ifdef.
Jeremy.
(This used to be commit 07716f3a2316fedfe9a3210fd1dad8f7d1e4d9c8)

17 years agoPrevent gcc warning about shadowed global "index".
Jeremy Allison [Thu, 18 Jul 2002 23:26:34 +0000 (23:26 +0000)]
Prevent gcc warning about shadowed global "index".
Jeremy
(This used to be commit ae924493754220b8ad9e9767eb25f0f53a23327d)

17 years agoDon't crash on setfileinfo on printer fsp.
Jeremy Allison [Thu, 18 Jul 2002 23:25:19 +0000 (23:25 +0000)]
Don't crash on setfileinfo on printer fsp.
Jeremy.
(This used to be commit 3a9ceb6b3b915d3153d9cb107f447b13002c0f57)

17 years agoFixed off-by-one in all_string_sub also.
Jeremy Allison [Thu, 18 Jul 2002 23:22:11 +0000 (23:22 +0000)]
Fixed off-by-one in all_string_sub also.
Jeremy.
(This used to be commit 8b0e47fc1f00c76dfccb6c2b58188d9a5ae67c65)

17 years agoFormatting fixups.
Jeremy Allison [Thu, 18 Jul 2002 23:21:45 +0000 (23:21 +0000)]
Formatting fixups.
Jeremy.
(This used to be commit 4aa922a1afdd538f51d5eff4cb7af2694a88c591)

17 years agoAnother bug found by valgrind. Don't AND a src length of -1.
Jeremy Allison [Thu, 18 Jul 2002 23:01:44 +0000 (23:01 +0000)]
Another bug found by valgrind. Don't AND a src length of -1.
Jeremy.
(This used to be commit a67079882dd1b924d2e007e39b06da438533ef96)

17 years agovirtual registry framework with initial printing hooks.
Gerald Carter [Thu, 18 Jul 2002 23:00:24 +0000 (23:00 +0000)]
virtual registry framework with initial printing hooks.
(This used to be commit a43d9788fa8823d678ee72470421b980165ec2b0)

17 years agoThe previous code would not allow things like string_sub(str, "\\", "/", 0).
Gerald Carter [Thu, 18 Jul 2002 22:55:48 +0000 (22:55 +0000)]
The previous code would not allow things like string_sub(str, "\\", "/", 0).
It complained about an overflow of 0 bytes.

Jeremy please check since you modified this last.
(This used to be commit a5aad760061e21635319a9b5628990cf59b827ed)

17 years agoUnneded extra check on len
Simo Sorce [Thu, 18 Jul 2002 22:22:30 +0000 (22:22 +0000)]
Unneded extra check on len
(This used to be commit e3b3c148208792ac2ccbfd468ad580b1264f9876)

17 years agoWe have to look at the length before checking for "~" as the string
Jeremy Allison [Thu, 18 Jul 2002 19:15:49 +0000 (19:15 +0000)]
We have to look at the length before checking for "~" as the string
may be shorter than 6 chars. Caught by valgrind.
Jeremy.
(This used to be commit b846bbfa831922b0be52e54804a46d7870895bfc)

17 years agoUse of uninitialized variable caught by valgrind.
Jeremy Allison [Thu, 18 Jul 2002 01:50:58 +0000 (01:50 +0000)]
Use of uninitialized variable caught by valgrind.
Jeremy.
(This used to be commit 44410af397c386f58067679012856150b07b47e8)

17 years agoGone back to explicit queue number passing as snum - removed encoding of
Jeremy Allison [Wed, 17 Jul 2002 19:12:17 +0000 (19:12 +0000)]
Gone back to explicit queue number passing as snum - removed encoding of
queueid in job number. This means we must have an internal tdb to store
mapping from 16 bit RAP jobid's to 32 bit RPC jobids.
Jeremy.
(This used to be commit 4ff64f69706cc94d5dba7762754d00790c476963)

17 years agoLanman print jobs are *16* bits, not 32. arggggh. Map them....
Jeremy Allison [Wed, 17 Jul 2002 00:38:37 +0000 (00:38 +0000)]
Lanman print jobs are *16* bits, not 32. arggggh. Map them....
Jeremy.
(This used to be commit 2b06fd305be10fa8a8629adb4a99ccd3960786da)

17 years agoprint_jobid in the fsp struct should be uint32.
Jeremy Allison [Tue, 16 Jul 2002 21:51:56 +0000 (21:51 +0000)]
print_jobid in the fsp struct should be uint32.
Jeremy.
(This used to be commit 51c8338c7ac8665fcaaac6de5f2d81b460e803f5)

17 years agoUse codepage 850 as a default for the dos character set.
Tim Potter [Tue, 16 Jul 2002 18:45:59 +0000 (18:45 +0000)]
Use codepage 850 as a default for the dos character set.

Tridge, is this OK?
(This used to be commit db5d91fedfe9355f4a79aee9dc60d77dd068b334)

17 years agoPut printing tdbs in a subdirectory to prevent name collisions.
Jeremy Allison [Tue, 16 Jul 2002 00:07:02 +0000 (00:07 +0000)]
Put printing tdbs in a subdirectory to prevent name collisions.
Jeremy.
(This used to be commit b013b9437557f2d427e4b646b49ad7d99e94c164)

17 years agosplitting off storage/retrieval routines for abstracting the
Gerald Carter [Mon, 15 Jul 2002 22:27:07 +0000 (22:27 +0000)]
splitting off storage/retrieval routines for abstracting the
registry view front end.  Now to plug in the various hooks.
(This used to be commit 9772acd9ad44af2800dfb9d8610c2d5c23eaceb4)

17 years agopreparing for release of 3.0-alpha18
Samba Release Account [Mon, 15 Jul 2002 15:14:01 +0000 (15:14 +0000)]
preparing for release of 3.0-alpha18
(This used to be commit 9556d3316cf262d14da4f3481d3e733b23d0862b)

17 years agofixed a number of real bugs found by warnings on the 64 bit irix compiler
Andrew Tridgell [Mon, 15 Jul 2002 10:54:35 +0000 (10:54 +0000)]
fixed a number of real bugs found by warnings on the 64 bit irix compiler
(This used to be commit 04de6bbc8055e5547af41b10e284b722f40e726d)

17 years agoenum_group_mapping takes an enum not an int
Andrew Tridgell [Mon, 15 Jul 2002 10:38:34 +0000 (10:38 +0000)]
enum_group_mapping takes an enum not an int
(This used to be commit 67a3ca2f235e011472dbe505ce7c34b26f92c44c)

17 years agochecking for NULL really is counter-productive, and this one was also
Andrew Tridgell [Mon, 15 Jul 2002 10:37:42 +0000 (10:37 +0000)]
checking for NULL really is counter-productive, and this one was also
generating a warning
(This used to be commit cd82ba41b8df024f034fcfa24e967ed8c3c8d035)

17 years agofixed a call to get_current_groups()
Andrew Tridgell [Mon, 15 Jul 2002 09:46:54 +0000 (09:46 +0000)]
fixed a call to get_current_groups()
(This used to be commit 61c524e8102d4f5cdcf7c949b55b5dc67a320c74)

17 years agodon't use C++ comments in C - it doesn't work on many compilers
Andrew Tridgell [Mon, 15 Jul 2002 09:43:34 +0000 (09:43 +0000)]
don't use C++ comments in C - it doesn't work on many compilers
(This used to be commit cf853314f9eda479c6f18bfc725fa0b5d88d0a38)

17 years agofixed a problem with getgroups() where it could include our current
Andrew Tridgell [Mon, 15 Jul 2002 03:59:14 +0000 (03:59 +0000)]
fixed a problem with getgroups() where it could include our current
effective gid which could mean that the user gets group 0 in their
group list for acl interpretation

this is a replacement fix for the one richard did in 2.2 (which didn't
cope wiith variable behaviour depending on which nss module was in
use)
(This used to be commit cfc5ca3416cea5ea5d2ac34f5521cb6367e42cd2)

17 years agodon't report the faiilure of non-blocking locks. They are supposed to
Andrew Tridgell [Mon, 15 Jul 2002 03:51:53 +0000 (03:51 +0000)]
don't report the faiilure of non-blocking locks. They are supposed to
fail sometimes, thats why they are non-blocking :)
(This used to be commit 775b918b8c63b1fcd9a8db1743505ab718978c19)

17 years agoafter thinking about the env variable hack for avoiding group membership
Andrew Tridgell [Sun, 14 Jul 2002 23:45:55 +0000 (23:45 +0000)]
after thinking about the env variable hack for avoiding group membership
enumeration I realised it could be a security hole for setuid progs.

This adds a proper nss function instead.
(This used to be commit c7c49d87af5e9a0bef058e6d79188d8b11fefc02)

17 years agoaddedd new (t)alloc_sub_* functions
Simo Sorce [Sun, 14 Jul 2002 22:21:40 +0000 (22:21 +0000)]
addedd new (t)alloc_sub_* functions
they will get a const string and return a (t)alloced epanded one.
also modified passdb/* stuff to use this one.
(This used to be commit d378ac1e2efb0efc9a0f983d69cf678ca6255fd5)

17 years agothis is a trick to work around the fact that posix does not supply
Andrew Tridgell [Sun, 14 Jul 2002 22:15:20 +0000 (22:15 +0000)]
this is a trick to work around the fact that posix does not supply
a getgr*() function that lists groups without numerating all the
group members. Instead of definiing a new nss method (which might
cause problems) I added an environment variable WINBIND_GETGRLST
that tells winbind not to fill in the group members in a gergrent()
request. This can speed up group listing by a factor of 20 or more
(on my test system with 50000 groups it reduces the time from an hour
to 2 minutes)
(This used to be commit e3f73256d31ab9914daae49f41e984a534996870)

17 years agoShow the account flags in the 'verbose' listing of pdbedit.
Andrew Bartlett [Sun, 14 Jul 2002 08:38:09 +0000 (08:38 +0000)]
Show the account flags in the 'verbose' listing of pdbedit.

Andrew Bartlett
(This used to be commit b5ec92d7a2e5ba33b641267d2319d101d70a0d9a)

17 years agoApply patch from "Kai Krueger" <kai@kruegernetz.de> to make it easier to
Andrew Bartlett [Sun, 14 Jul 2002 08:37:31 +0000 (08:37 +0000)]
Apply patch from "Kai Krueger" <kai@kruegernetz.de> to make it easier to
determine what access masks should be applied to various SAMR calls.

Andrew Bartlett
(This used to be commit dbf28f992bcd4859a9b7d78ac1d33e4063617f94)

17 years agoFix up a botched prevoius commit.
Andrew Bartlett [Sun, 14 Jul 2002 04:51:57 +0000 (04:51 +0000)]
Fix up a botched prevoius commit.

The idea here is to allow invalid LM passwords in otherwise valid accounts.

This happens when we create an account without a password, for example.
Previously we would stop at the LM password, and not read things like the
account flags correctly.  Now we process the record, and just set the password
to NULL.

(Note, 'no password for access' is decided only on the basis of the Account
Control bits, not on the 'NULL' value of the password feild.).

Andrew Bartlett
(This used to be commit c590e0c970b5babf370924cef51530e5e215eaf2)

17 years agoremoved some meaningless const casts that were causing thousands of
Andrew Tridgell [Sun, 14 Jul 2002 04:11:21 +0000 (04:11 +0000)]
removed some meaningless const casts that were causing thousands of
warnings (literally!) for the irix compiler
(This used to be commit 35b6b46bc67104671298641e2993225bad2c9a39)

17 years agomove opt_machine_pass to keep some compilers happy
Andrew Tridgell [Sun, 14 Jul 2002 03:49:15 +0000 (03:49 +0000)]
move opt_machine_pass to keep some compilers happy
(This used to be commit 39e11ef5b1090e51c6c447c8037a43b52e04b881)

17 years agoMove nttrans.c into the NTSTATUS age.
Andrew Bartlett [Sun, 14 Jul 2002 01:23:46 +0000 (01:23 +0000)]
Move nttrans.c into the NTSTATUS age.

This could do with another eye looking over it, but it seems to work.

Andrew Bartlett
(This used to be commit e6746db60daa4a61a3ed4302e4105345984af6ac)

17 years agoadded useful 'net rpc info' command
Andrew Tridgell [Sat, 13 Jul 2002 15:14:39 +0000 (15:14 +0000)]
added useful 'net rpc info' command

this also gives a way to distinguish a 'native mode' server from a
non-native server. This call will fail for a native mode server.
(This used to be commit a7663428e05bdd41a1975d0db9be6537b7238b95)

17 years agoadded --machine-pass option to net. This allows you to authenticate as
Andrew Tridgell [Sat, 13 Jul 2002 11:42:53 +0000 (11:42 +0000)]
added --machine-pass option to net. This allows you to authenticate as
the current machine account and password. This is useful both for
diagnostics and domain leave.
(This used to be commit 73b246981fd5b27cc1d835946b89e82f5b78f332)

17 years agomake this a ZERO_STRUCTP for consitancy with the rest of Samba.
Andrew Bartlett [Sat, 13 Jul 2002 09:18:55 +0000 (09:18 +0000)]
make this a ZERO_STRUCTP for consitancy with the rest of Samba.
(This used to be commit 587a3d91b7226f4e96c4320322f62c6490a3c6ac)

17 years agoMake smbmnt a standalone program from a linker point of view. Hopefully this
Andrew Bartlett [Sat, 13 Jul 2002 09:14:40 +0000 (09:14 +0000)]
Make smbmnt a standalone program from a linker point of view.  Hopefully this
will make it easier to prove this package correct from an audit point of view.

smbumount to follow, but it uses pstrcpy() so I'll need to decide what to do
with that.

Andrew Bartlett
(This used to be commit 62c56f97248109ca80cc155974584bea9704cd50)

17 years agoI just noticed that I never added my copyright when I messed with this
Andrew Bartlett [Sat, 13 Jul 2002 09:11:20 +0000 (09:11 +0000)]
I just noticed that I never added my copyright when I messed with this
previously.  Fix that.

Andrew Bartlett
(This used to be commit c552910477f0baca4d2173c2bdf4748de3c3b8ad)

17 years agoMake smbpasswd behave like all the other backends, where a NULL or invalid
Andrew Bartlett [Sat, 13 Jul 2002 09:10:16 +0000 (09:10 +0000)]
Make smbpasswd behave like all the other backends, where a NULL or invalid
LM password isn't anything special.  All the users check the ACB nowadays,
and this allows us to correctly return flags set via usermgr.

Andrew Bartlett
(This used to be commit 89eb765d398de7654ba6bac7c51df727830c2591)

17 years agoThis makes smbcacls a bit easier to use and debug.
Andrew Bartlett [Sat, 13 Jul 2002 09:03:41 +0000 (09:03 +0000)]
This makes smbcacls a bit easier to use and debug.

Allow connection in the form of //server/share instead of just \\server\share
and show the reason for failure from cli_full_connection().

Andrew Bartlett
(This used to be commit 4687fac69d995e49a0f3701fb170d64af1ba4a47)

17 years agofix directory listing on win9x.
Andrew Tridgell [Sat, 13 Jul 2002 08:37:06 +0000 (08:37 +0000)]
fix directory listing on win9x.

it turns out this is tricky to get right for both win9x and w2k with
and without unicode. This patch seems to do the trick.
(This used to be commit 01ebe5fff2b3cb29f083afb224b1257364ac5d80)

17 years agoSome fix ups but committing so Andrew can look at the problem I have.
Richard Sharpe [Sat, 13 Jul 2002 07:18:43 +0000 (07:18 +0000)]
Some fix ups but committing so Andrew can look at the problem I have.
(This used to be commit 146ba3eb49bade732d57691d8ce181ef6608e0cb)

17 years agoFix up the include file that had problems as well.
Richard Sharpe [Sat, 13 Jul 2002 05:43:34 +0000 (05:43 +0000)]
Fix up the include file that had problems as well.
(This used to be commit 753df0b89767261420f242da21d5dfb5403c966b)

17 years agoAdd these two files I forgot.
Richard Sharpe [Sat, 13 Jul 2002 05:13:02 +0000 (05:13 +0000)]
Add these two files I forgot.
(This used to be commit 5706e6af168b14a40cb1e306c2911182260ff0d3)

17 years agoFix some multibyte problems that I forgot about.
Richard Sharpe [Sat, 13 Jul 2002 05:11:58 +0000 (05:11 +0000)]
Fix some multibyte problems that I forgot about.
(This used to be commit 481a70f4f005a778a24e2193f8e760217ee3c946)

17 years agofixed a stdin bug in XFILE that prevented 'print -' from working
Andrew Tridgell [Sat, 13 Jul 2002 04:28:01 +0000 (04:28 +0000)]
fixed a stdin bug in XFILE that prevented 'print -' from working
(This used to be commit e66e354421b8be64a1b6774bde4d187532ee7690)

17 years ago- fixed a crash bug for 'print -'
Andrew Tridgell [Sat, 13 Jul 2002 03:51:28 +0000 (03:51 +0000)]
- fixed a crash bug for 'print -'
- removed an unused variable
(This used to be commit 66af95716de470600b0db58bdf8a1f0c15dba036)

17 years agoThe changes in make_sec_desc to make us match W2K broke the marshalling/unmarshalling of
Jeremy Allison [Fri, 12 Jul 2002 21:09:24 +0000 (21:09 +0000)]
The changes in make_sec_desc to make us match W2K broke the marshalling/unmarshalling of
security descriptors. We need to calculate the maximum offset and set the offset
back after reading/writing every field in the SEC_DESC.
This was *nasty* to find....
Jeremy.
(This used to be commit 175d43980e57c25582d8ab859f5730283e82f3b2)

17 years agoWe must ZERO_STRUCT before using the buffer in copy_unistr2.
Jeremy Allison [Fri, 12 Jul 2002 18:10:24 +0000 (18:10 +0000)]
We must ZERO_STRUCT before using the buffer in copy_unistr2.
Fixes addprinterdriverex.
Jeremy.
(This used to be commit d3c73e59708eeb1ee4642fb31fcfc0ec2fd28070)

17 years agofix setting machine passwords in the case where a user account of the
Andrew Tridgell [Fri, 12 Jul 2002 02:28:27 +0000 (02:28 +0000)]
fix setting machine passwords in the case where a user account of the
same name as the machine name exists. (we ended up setting the users
password, not the machines password!)
(This used to be commit fe1e6233c6f0a5654bcc3ab34f65bb570efc69b1)

17 years agoCommit Tom Jansen's changes to head.
Richard Sharpe [Thu, 11 Jul 2002 23:33:00 +0000 (23:33 +0000)]
Commit Tom Jansen's changes to head.
(This used to be commit d3fdce07ab5955abd1f923127ae9eb5006aea505)

17 years agoRegenerated.
Tim Potter [Thu, 11 Jul 2002 23:18:41 +0000 (23:18 +0000)]
Regenerated.
(This used to be commit 7ead9602ce8c30a57cb83d56fb76228945a7599f)

17 years agoUsage fixes from APPLIANCE_HEAD.
Tim Potter [Thu, 11 Jul 2002 23:11:42 +0000 (23:11 +0000)]
Usage fixes from APPLIANCE_HEAD.
(This used to be commit 952d722a3bba15b7a10b4cbabb5548f4dde682d7)

17 years agoAnother compile fix.
Tim Potter [Thu, 11 Jul 2002 23:08:51 +0000 (23:08 +0000)]
Another compile fix.
(This used to be commit ef5c9698b06c5df99ec07ee781cc54d2e348ba8a)

17 years agoCompile fix for flags field to cli_full_connection()
Tim Potter [Thu, 11 Jul 2002 22:19:31 +0000 (22:19 +0000)]
Compile fix for flags field to cli_full_connection()
(This used to be commit 802f30a1b34888823c1fc80121b3917cb6825119)

17 years agoMerge of init_domain_list() fix from APPLIANCE_HEAD.
Tim Potter [Thu, 11 Jul 2002 17:31:49 +0000 (17:31 +0000)]
Merge ... init_domain_list() fix from APPLIANCE_HEAD.
(This used to be commit 66c9cab369e38284c71572bfb3643538e253a451)

17 years agoadded copyright
Gerald Carter [Thu, 11 Jul 2002 13:27:32 +0000 (13:27 +0000)]
added copyright
(This used to be commit 0bb3d0f1ca9504d2430471558e1a0125d72ee82f)

17 years agoadded copyright
Gerald Carter [Thu, 11 Jul 2002 13:17:57 +0000 (13:17 +0000)]
added copyright
(This used to be commit dcb6d70706a0e86881588c3828ff5bd4d63d415f)

17 years agothis implements a completely new strategy for fetching group
Andrew Tridgell [Thu, 11 Jul 2002 05:28:08 +0000 (05:28 +0000)]
this implements a completely new strategy for fetching group
membership from an ADS server. We now use a 'member' query on the
group and do a separate call to convert the resulting distinguished
name to a name, rid etc. This is *much* faster for very large numbers
of groups (on a quantum test system with 10000 groups it drops the
time from an hour to about 35 seconds).

strangely enough, this actually *increases* the amount of ldap
traffic, its just that the MS LDAP server answers these queries much
faster.
(This used to be commit 5538048e4f6dd224b2990f3c6a3e99fd07065f77)

17 years agolast check in for tonight.
Gerald Carter [Thu, 11 Jul 2002 04:53:39 +0000 (04:53 +0000)]
last check in for tonight.

  * DeletePrinterDriverEx() now has the ability to delete
    driver files.  I need to do some more testing
    tro veriofy that we are in fact not deleting a file out from
    under another driver, but it looks ok so far.

  * DeletePrinterDriver() noiw deletes all versions of the
    specified driver (cversion == 0, 1, 2, 3)
(This used to be commit 17bb780e1327663fa2fcd6a3cb25dd461a29c537)

17 years agothis fixes the ads dump code
Andrew Tridgell [Thu, 11 Jul 2002 03:41:09 +0000 (03:41 +0000)]
this fixes the ads dump code

a char** isn't quite the same thing as a struct berval**  :)
(This used to be commit a92834ea9460bc49be99d6d5b0d41a817e6f0824)

17 years agoall that is left to do is to actually perform the
Gerald Carter [Thu, 11 Jul 2002 03:27:12 +0000 (03:27 +0000)]
all that is left to do is to actually perform the
file deletion now.  I have the file list.
One more commit should do it.
(This used to be commit 7207662504f585352b0ceeb99f8998ef58db7f15)

17 years agointermediate work on DeletePrinterDriverEx(). This call
Gerald Carter [Thu, 11 Jul 2002 01:54:26 +0000 (01:54 +0000)]
intermediate work on DeletePrinterDriverEx().  This call
will actually delete driver files ( not yet though I don't think).
Just wanted to get it in since Jeremy and I are both
working on nt_printing.c
(This used to be commit 3fa6c3132950c9ff1c6a532d8264ee34a6b2b0ff)

17 years agoUp the printing tdb version number to 5 as I've changed it.
Jeremy Allison [Thu, 11 Jul 2002 01:00:45 +0000 (01:00 +0000)]
Up the printing tdb version number to 5 as I've changed it.
Jeremy.
(This used to be commit f4eff4a99edd49ab11d0fc061fdb4efe96e713f5)

17 years ago*Experimental* new large-scaling printer code. Splits printing.tdb into
Jeremy Allison [Thu, 11 Jul 2002 00:06:29 +0000 (00:06 +0000)]
*Experimental* new large-scaling printer code. Splits printing.tdb into
a separate tdb per printer, but only keeps (currently one) tdb open at
a time (although this is easily changed by changing a #define). Needs
scalability testing with large numbers of printers now....
Jeremy.
(This used to be commit b0909cfa14fc7ef29d2b98b56d52723570da782a)

17 years agoIf we get a SID from group mapping, no need to check it's prefix.
Andrew Bartlett [Wed, 10 Jul 2002 07:26:35 +0000 (07:26 +0000)]
If we get a SID from group mapping, no need to check it's prefix.

Just set it directly.

Andrew Bartlett
(This used to be commit 202202bc475f3b8500423b1a9ccf0adc80a4dc49)

17 years agosome support functions to ease the next commit.
Simo Sorce [Tue, 9 Jul 2002 23:59:46 +0000 (23:59 +0000)]
some support functions to ease the next commit.
(This used to be commit 4be1c882be56ae0fe18bb134a1513e0e6f6965b0)

17 years ago8-byte alignment needed for beginning driver_info_level_6.
Gerald Carter [Tue, 9 Jul 2002 23:23:19 +0000 (23:23 +0000)]
8-byte alignment needed for beginning driver_info_level_6.
Verified by looking at NT4 and 2k servers.  First time
for everything I guess.
(This used to be commit f57640720e4758176116bc2e1b578cf0e867f95f)

17 years agoDocumented -I option to rpcclient.
Tim Potter [Tue, 9 Jul 2002 19:13:11 +0000 (19:13 +0000)]
Documented -I option to rpcclient.
(This used to be commit 9e64d6973b4a4015a1f0282b11654ed9716786bd)

17 years agoAdded -I option to rpcclient.
Tim Potter [Tue, 9 Jul 2002 19:11:26 +0000 (19:11 +0000)]
Added -I option to rpcclient.
(This used to be commit 2674adf1b5c54da03e8a445ec1e12d382294d1c1)

17 years agomake sure we disable referrals in all ldap searches - they are badly
Andrew Tridgell [Tue, 9 Jul 2002 15:06:51 +0000 (15:06 +0000)]
make sure we disable referrals in all ldap searches - they are badly
broken
(This used to be commit 022073d140bae960613127a6d9422e443a8098c6)

17 years agofix declaration of global_in_nmbd
Andrew Tridgell [Tue, 9 Jul 2002 14:47:03 +0000 (14:47 +0000)]
fix declaration of global_in_nmbd
(This used to be commit 07de8418369dad1f015369e70e9303fea4130295)

17 years agothe last WINS update broke self registration when we are a WINS
Andrew Tridgell [Tue, 9 Jul 2002 14:17:26 +0000 (14:17 +0000)]
the last WINS update broke self registration when we are a WINS
server. The real problem is all the special cases we had for when we
are a wins server as opposed to when we are using a 'real' wins
server.

This patch removes the special cases. We now accept non-broadcast
packets from ourselves and we use ourselves as a wins server when we
are one. This gets rid of the special cases and simplifies things
quite a bit.

It all seems to work, but there are bound to be problems found later.
(This used to be commit 3e843d30158d05cdfba716bac7e5c0a75ae7a79c)

17 years agoMake it clear that the debug comment is the same as the command being tested
Andrew Bartlett [Tue, 9 Jul 2002 13:12:27 +0000 (13:12 +0000)]
Make it clear that the debug comment is the same as the command being tested
for failure.

Andrew Bartlett
(This used to be commit 6e22f39df8c386781a4f51207a3ccd9c94d151f1)

17 years agofixup ADDPRINTERDRIVEREX some more. unknown uint32 for now.
Gerald Carter [Mon, 8 Jul 2002 22:01:51 +0000 (22:01 +0000)]
fixup ADDPRINTERDRIVEREX some more.  unknown uint32 for now.
(This used to be commit b0f178f452a816c6a77b0f5a77fdd8930da98cac)

17 years agoFix length in snprintf invocation to account for "dn:" in sasl gssapi bind.
Jim McDonough [Mon, 8 Jul 2002 20:46:54 +0000 (20:46 +0000)]
Fix length in snprintf invocation to account for "dn:" in sasl gssapi bind.
Also remove unused line which incremented pointer by the wrong length anyway.

Provided by Anthony Liguori (aliguori@us.ibm.com).
(This used to be commit 47b7a3e0f3d101a3bcffd33db6ef4c0672b57ae0)

17 years agofix typo
Gerald Carter [Mon, 8 Jul 2002 20:30:54 +0000 (20:30 +0000)]
fix typo
(This used to be commit be926c3a1a7fc79af62dd1830c56e9503f89f9dd)

17 years agoadded parsing routines for SPOOLSS_ADDPRINTERDRIVEREX and
Gerald Carter [Mon, 8 Jul 2002 20:15:47 +0000 (20:15 +0000)]
added parsing routines for SPOOLSS_ADDPRINTERDRIVEREX and
SPOOLSS_DELETEPRINTERDRIVEREX.  Ran them through some testing.
I know I'm off by 2 x uint32's in the former RPC.
(This used to be commit 55fbfd02ba917b74fd4df7a1aa8cc8c5a91e3e07)

17 years ago* basic implementation of SPOOLSS_DELETEPRINTERDATAEX and
Gerald Carter [Mon, 8 Jul 2002 18:34:55 +0000 (18:34 +0000)]
* basic implementation of SPOOLSS_DELETEPRINTERDATAEX and
  SPOOLSS_DELETEPRINTERKEY
* stub funnctions for SPOOLSS_ADDPRINTERDRIVEREX and
  SPOOLSS_DELETEPRINTERDRIVEREX
(This used to be commit d675974d0c04a68d48d90492005056d96697c96c)

17 years agoFix for LPRng from James Henstridge james@daa.com.au.
Jeremy Allison [Mon, 8 Jul 2002 18:24:59 +0000 (18:24 +0000)]
Fix for LPRng from James Henstridge james@daa.com.au.
Jeremy.
(This used to be commit 9c93f8908919a02099884d393312ef27d4a2d24e)

17 years agoKill off const warnings - add a pile of const to various places.
Andrew Bartlett [Mon, 8 Jul 2002 02:14:57 +0000 (02:14 +0000)]
Kill off const warnings - add a pile of const to various places.
(This used to be commit 1de04ec4735c19ec21cdef6e679cea17c734c5f6)

17 years agoFix const warning
Andrew Bartlett [Mon, 8 Jul 2002 01:40:35 +0000 (01:40 +0000)]
Fix const warning
(This used to be commit 3d2f0635ed060fca0fa97c97ef850e57641aef19)

17 years agoJerry: Sorry if I am stepping on toes here, but this should fix the compile on
Andrew Bartlett [Mon, 8 Jul 2002 01:06:38 +0000 (01:06 +0000)]
Jerry:  Sorry if I am stepping on toes here, but this should fix the compile on
solaris CC (void* arithmatic) and fixes the other warnings (global variable
shadows) that gcc has with this file.

Andrew Bartlett
(This used to be commit 7ac6517bec0f425f99f419f6efd2a673b4ec0f83)

17 years ago(this should have been part of the previous commit)
Andrew Bartlett [Mon, 8 Jul 2002 00:40:57 +0000 (00:40 +0000)]
(this should have been part of the previous commit)

Add a function to display 'sid types' as strings - makes rpcclient outptut
and DEBUG() logs much eaiser to understand.

Move the enum for SID types to smb.h, becouse is really isn't LSA specific any
more.

Andrew Bartlett
(This used to be commit fc9739861104df4ddc93efab3275275307e4fbb9)

17 years agoUpdates to the 'name -> sid' code:
Andrew Bartlett [Sun, 7 Jul 2002 03:34:24 +0000 (03:34 +0000)]
Updates to the 'name -> sid' code:

Correct the 'none mapped' behaviour, (so that it matches Win2k) and  add a
function to make the SID types appear as text strings in logs/rpcclient.

Also, remove a silly case that would cause 'failure' to be 'success'.  (Might
look at this a bit more in future).

Andrew Bartlett
(This used to be commit c20d057f8821d13d3de61b319de44db23773516b)

17 years agoCopy the NT_TOKEN to the pipe, so the SAMR can use it for access control.
Andrew Bartlett [Sat, 6 Jul 2002 05:08:35 +0000 (05:08 +0000)]
Copy the NT_TOKEN to the pipe, so the SAMR can use it for access control.

Andrew Bartlett
(This used to be commit 685a205445f5505c105ea421712c4b0468bbc127)