1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

8956 Commits

Author SHA1 Message Date
Jeremy Allison
687624fc18 Another bug found by valgrind. Don't AND a src length of -1.
Jeremy.
(This used to be commit a67079882d)
2002-07-18 23:01:44 +00:00
Gerald Carter
06ae9ac5d9 virtual registry framework with initial printing hooks.
(This used to be commit a43d9788fa)
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 a5aad76006)
2002-07-18 22:55:48 +00:00
Simo Sorce
9154aa791e Unneded extra check on len
(This used to be commit e3b3c14820)
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 b846bbfa83)
2002-07-18 19:15:49 +00:00
Jeremy Allison
a754c80ae0 Use of uninitialized variable caught by valgrind.
Jeremy.
(This used to be commit 44410af397)
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 4ff64f6970)
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 2b06fd305b)
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 51c8338c7a)
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 db5d91fedf)
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 b013b94375)
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 9772acd9ad)
2002-07-15 22:27:07 +00:00
Samba Release Account
f8db530339 preparing for release of 3.0-alpha18
(This used to be commit 9556d3316c)
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 04de6bbc80)
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 67a3ca2f23)
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 cd82ba41b8)
2002-07-15 10:37:42 +00:00
Andrew Tridgell
7a2dc08721 fixed a call to get_current_groups()
(This used to be commit 61c524e810)
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 cf853314f9)
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 cfc5ca3416)
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 775b918b8c)
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 c7c49d87af)
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 d378ac1e2e)
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 e3f73256d3)
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 b5ec92d7a2)
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 dbf28f992b)
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 c590e0c970)
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 35b6b46bc6)
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 39e11ef5b1)
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 e6746db60d)
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 a7663428e0)
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 73b246981f)
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 587a3d91b7)
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 62c56f9724)
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 c552910477)
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 89eb765d39)
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 4687fac69d)
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 01ebe5fff2)
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 146ba3eb49)
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 753df0b897)
2002-07-13 05:43:34 +00:00
Richard Sharpe
5c682b7337 Add these two files I forgot.
(This used to be commit 5706e6af16)
2002-07-13 05:13:02 +00:00
Richard Sharpe
1e8952c684 Fix some multibyte problems that I forgot about.
(This used to be commit 481a70f4f0)
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 e66e354421)
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 66af95716d)
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 175d43980e)
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 d3c73e5970)
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 fe1e6233c6)
2002-07-12 02:28:27 +00:00
Richard Sharpe
669358c05f Commit Tom Jansen's changes to head.
(This used to be commit d3fdce07ab)
2002-07-11 23:33:00 +00:00
Tim Potter
46deff915e Regenerated.
(This used to be commit 7ead9602ce)
2002-07-11 23:18:41 +00:00
Tim Potter
e4722d2fcb Usage fixes from APPLIANCE_HEAD.
(This used to be commit 952d722a3b)
2002-07-11 23:11:42 +00:00
Tim Potter
246ec5ad07 Another compile fix.
(This used to be commit ef5c9698b0)
2002-07-11 23:08:51 +00:00