1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-18 17:57:55 +03:00

8959 Commits

Author SHA1 Message Date
Jeremy Allison
8305400685 Don't crash on setfileinfo on printer fsp.
Jeremy.
(This used to be commit 3a9ceb6b3b915d3153d9cb107f447b13002c0f57)
2002-07-18 23:25:19 +00:00
Jeremy Allison
4bc4a97e36 Fixed off-by-one in all_string_sub also.
Jeremy.
(This used to be commit 8b0e47fc1f00c76dfccb6c2b58188d9a5ae67c65)
2002-07-18 23:22:11 +00:00
Jeremy Allison
8e004fe00d Formatting fixups.
Jeremy.
(This used to be commit 4aa922a1afdd538f51d5eff4cb7af2694a88c591)
2002-07-18 23:21:45 +00:00
Jeremy Allison
687624fc18 Another bug found by valgrind. Don't AND a src length of -1.
Jeremy.
(This used to be commit a67079882dd1b924d2e007e39b06da438533ef96)
2002-07-18 23:01:44 +00:00
Gerald Carter
06ae9ac5d9 virtual registry framework with initial printing hooks.
(This used to be commit a43d9788fa8823d678ee72470421b980165ec2b0)
2002-07-18 23:00:24 +00:00
Gerald Carter
2afc1ca42c 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)
2002-07-18 22:55:48 +00:00
Simo Sorce
9154aa791e Unneded extra check on len
(This used to be commit e3b3c148208792ac2ccbfd468ad580b1264f9876)
2002-07-18 22:22:30 +00:00
Jeremy Allison
5d840349bd 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)
2002-07-18 19:15:49 +00:00
Jeremy Allison
a754c80ae0 Use of uninitialized variable caught by valgrind.
Jeremy.
(This used to be commit 44410af397c386f58067679012856150b07b47e8)
2002-07-18 01:50:58 +00:00
Jeremy Allison
29426b4a50 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)
2002-07-17 19:12:17 +00:00
Jeremy Allison
cc9511af8c Lanman print jobs are *16* bits, not 32. arggggh. Map them....
Jeremy.
(This used to be commit 2b06fd305be10fa8a8629adb4a99ccd3960786da)
2002-07-17 00:38:37 +00:00
Jeremy Allison
34ed527b13 print_jobid in the fsp struct should be uint32.
Jeremy.
(This used to be commit 51c8338c7ac8665fcaaac6de5f2d81b460e803f5)
2002-07-16 21:51:56 +00:00
Tim Potter
bb7de652ef Use codepage 850 as a default for the dos character set.
Tridge, is this OK?
(This used to be commit db5d91fedfe9355f4a79aee9dc60d77dd068b334)
2002-07-16 18:45:59 +00:00
Jeremy Allison
b3aeabedd0 Put printing tdbs in a subdirectory to prevent name collisions.
Jeremy.
(This used to be commit b013b9437557f2d427e4b646b49ad7d99e94c164)
2002-07-16 00:07:02 +00:00
Gerald Carter
78750803d0 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)
2002-07-15 22:27:07 +00:00
Samba Release Account
f8db530339 preparing for release of 3.0-alpha18
(This used to be commit 9556d3316cf262d14da4f3481d3e733b23d0862b)
2002-07-15 15:14:01 +00:00
Andrew Tridgell
159118de5c fixed a number of real bugs found by warnings on the 64 bit irix compiler
(This used to be commit 04de6bbc8055e5547af41b10e284b722f40e726d)
2002-07-15 10:54:35 +00:00
Andrew Tridgell
fc26773500 enum_group_mapping takes an enum not an int
(This used to be commit 67a3ca2f235e011472dbe505ce7c34b26f92c44c)
2002-07-15 10:38:34 +00:00
Andrew Tridgell
0184f3b6d8 checking for NULL really is counter-productive, and this one was also
generating a warning
(This used to be commit cd82ba41b8df024f034fcfa24e967ed8c3c8d035)
2002-07-15 10:37:42 +00:00
Andrew Tridgell
7a2dc08721 fixed a call to get_current_groups()
(This used to be commit 61c524e8102d4f5cdcf7c949b55b5dc67a320c74)
2002-07-15 09:46:54 +00:00
Andrew Tridgell
c238b5c6a1 don't use C++ comments in C - it doesn't work on many compilers
(This used to be commit cf853314f9eda479c6f18bfc725fa0b5d88d0a38)
2002-07-15 09:43:34 +00:00
Andrew Tridgell
369040ac5d 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)
2002-07-15 03:59:14 +00:00
Andrew Tridgell
ae10baa5fc 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)
2002-07-15 03:51:53 +00:00
Andrew Tridgell
4dd9357dd5 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)
2002-07-14 23:45:55 +00:00
Simo Sorce
050126e684 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)
2002-07-14 22:21:40 +00:00
Andrew Tridgell
13157d1494 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)
2002-07-14 22:15:20 +00:00
Andrew Bartlett
3d1b9bfb29 Show the account flags in the 'verbose' listing of pdbedit.
Andrew Bartlett
(This used to be commit b5ec92d7a2e5ba33b641267d2319d101d70a0d9a)
2002-07-14 08:38:09 +00:00
Andrew Bartlett
e7c9c29904 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)
2002-07-14 08:37:31 +00:00
Andrew Bartlett
a02a80d7d3 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)
2002-07-14 04:51:57 +00:00
Andrew Tridgell
3fbf057d78 removed some meaningless const casts that were causing thousands of
warnings (literally!) for the irix compiler
(This used to be commit 35b6b46bc67104671298641e2993225bad2c9a39)
2002-07-14 04:11:21 +00:00
Andrew Tridgell
f5880f3fe8 move opt_machine_pass to keep some compilers happy
(This used to be commit 39e11ef5b1090e51c6c447c8037a43b52e04b881)
2002-07-14 03:49:15 +00:00
Andrew Bartlett
5be0f34cc7 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)
2002-07-14 01:23:46 +00:00
Andrew Tridgell
db34ff6714 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)
2002-07-13 15:14:39 +00:00
Andrew Tridgell
351831683d 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)
2002-07-13 11:42:53 +00:00
Andrew Bartlett
d7bdcee189 make this a ZERO_STRUCTP for consitancy with the rest of Samba.
(This used to be commit 587a3d91b7226f4e96c4320322f62c6490a3c6ac)
2002-07-13 09:18:55 +00:00
Andrew Bartlett
04538bfb6c 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)
2002-07-13 09:14:40 +00:00
Andrew Bartlett
35150ef8b5 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)
2002-07-13 09:11:20 +00:00
Andrew Bartlett
6b903424fe 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)
2002-07-13 09:10:16 +00:00
Andrew Bartlett
224e73803b 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)
2002-07-13 09:03:41 +00:00
Andrew Tridgell
f5b6ef1b65 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)
2002-07-13 08:37:06 +00:00
Richard Sharpe
3faee01c7c Some fix ups but committing so Andrew can look at the problem I have.
(This used to be commit 146ba3eb49bade732d57691d8ce181ef6608e0cb)
2002-07-13 07:18:43 +00:00
Richard Sharpe
92c597a9b0 Fix up the include file that had problems as well.
(This used to be commit 753df0b89767261420f242da21d5dfb5403c966b)
2002-07-13 05:43:34 +00:00
Richard Sharpe
5c682b7337 Add these two files I forgot.
(This used to be commit 5706e6af168b14a40cb1e306c2911182260ff0d3)
2002-07-13 05:13:02 +00:00
Richard Sharpe
1e8952c684 Fix some multibyte problems that I forgot about.
(This used to be commit 481a70f4f005a778a24e2193f8e760217ee3c946)
2002-07-13 05:11:58 +00:00
Andrew Tridgell
a0489b36c1 fixed a stdin bug in XFILE that prevented 'print -' from working
(This used to be commit e66e354421b8be64a1b6774bde4d187532ee7690)
2002-07-13 04:28:01 +00:00
Andrew Tridgell
ebfff1a475 - fixed a crash bug for 'print -'
- removed an unused variable
(This used to be commit 66af95716de470600b0db58bdf8a1f0c15dba036)
2002-07-13 03:51:28 +00:00
Jeremy Allison
e40abc248f 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)
2002-07-12 21:09:24 +00:00
Jeremy Allison
8ba2c4e55d We must ZERO_STRUCT before using the buffer in copy_unistr2.
Fixes addprinterdriverex.
Jeremy.
(This used to be commit d3c73e59708eeb1ee4642fb31fcfc0ec2fd28070)
2002-07-12 18:10:24 +00:00
Andrew Tridgell
695b346ab5 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)
2002-07-12 02:28:27 +00:00
Richard Sharpe
669358c05f Commit Tom Jansen's changes to head.
(This used to be commit d3fdce07ab5955abd1f923127ae9eb5006aea505)
2002-07-11 23:33:00 +00:00