1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

16330 Commits

Author SHA1 Message Date
Rafal Szczesniak
93f4a34978 1) Two new functions to trust passwords interface in passdb:
settrustpwent, gettrustpwnam

2) Implementation of another couple of these functions in tdbsam:
   settrustpwent, gettrustpwnam, gettrustpwsid

3) Testing (mostly for now) usage of the interface in pdbedit
   which is soon to be offline tool back again.

This is quite a new code, so many changes will be put in soon.


rafal
(This used to be commit 2ed23fbce846f9710747d72aa98c20d54894d61e)
2004-03-09 20:30:35 +00:00
Rafal Szczesniak
1fabcf0a12 Fix to debug message lacking termination with '\n'.
rafal
(This used to be commit 2a7dd469430459d124cb48d516b82766a2a249bc)
2004-03-09 18:58:19 +00:00
Rafal Szczesniak
5e2282b94f Fix to debug message lacking termination with '\n'.
rafal
(This used to be commit 6fdb20f5a7657556a3e4ceb4cab8c1d67e29ea21)
2004-03-09 18:56:28 +00:00
Gerald Carter
4aeb6b32a3 fix build with gcc 2.96 and --with-developer
(This used to be commit 45b2efd60a3c3c9f01b1ccaa828904a70d70d67d)
2004-03-09 15:29:40 +00:00
Gerald Carter
f089f978c2 fix build with gcc 2.96 and --with-developer
(This used to be commit 11fc4da07f232c38e04c6443e5d0f829e16b0a18)
2004-03-09 15:29:16 +00:00
Andrew Bartlett
4b683427ac Commit to HEAD the updates to smb signing code that I was propsing for 3.0.
This code implements 'opportunistic signing' in our client (when the
server supports it, we will use it), and correct downgrading on both
the client and server for the 'enabled' (rather than required) signing
level.

This means that we can actually set 'server signing = yes' and not
have the world fall apart.  We had a number of bugs in that code, and
it certainly looks like most of the testing was with the 'requried'
setting.

While the changes are reasonable, I'm putting this into HEAD rather
than 3.0 for the timebeing.  SMB signing, like NTLMSSP, tends to have
gotchas in it :-)

(I also need to give it a workout with more than smbclient before I
move it across).

Andrew Bartlett
(This used to be commit 6bad895462cf076a7e917c909e2a461d1b360bf1)
2004-03-09 12:37:05 +00:00
Andrew Bartlett
6100210db9 Merge fixes and tests for jra's broken strstr_m() function from 3.0
STF rules!  (Pity we don't use it for more stuff)

Andrew Bartlett
(This used to be commit a9363b45b0ef652a5fd621915fafb97ada0c7d5e)
2004-03-09 11:42:58 +00:00
Andrew Bartlett
32665c36c8 Given how core this code is, I figure it should have it's own testsuite.
Big thanks to tpot and mbp for showing how easy it can be to write a simple
unit test, and for providing the STF.

This also changes the strstr_m() code to use strstr_w() (avoiding
duplication) and fixes it so that it passes the STF.

(We now always restart before doing the unicode run, until sombody can
show me why the testsuite is wrong).

Andrew Bartlett
(This used to be commit a893a324f37e6a171719db8ffffe66df31c2dbaa)
2004-03-09 11:15:44 +00:00
Andrew Bartlett
151faf6935 JRA's recent strstr_m work really badly broke our string_sub code.
For example:

strstr_m("%v foo bar", "%v") would fail...

only strstr_m("foo %v", "%v") could work.

I wonder what else this broke...

Fix is to move to using strncmp() inside the strstr_m function.

Tested on ASCII only.

Andrew Bartlett
(This used to be commit 44d304f84c4ba5a832d5e3848ae0d04d5438ac15)
2004-03-09 09:56:33 +00:00
Jeremy Allison
fe5801d065 Added strstr_m() function. Use in all places where we might run into mb
(should fix the mb service name problem, can't remember the bugid).
Jeremy.
(This used to be commit 93c2d50f1adbf257c0c0185b420a1d73d56be2f9)
2004-03-09 00:17:16 +00:00
Jeremy Allison
c9b7cbbfa5 Added strstr_m() function. Use in all places where we might run into mb
(should fix the mb service name problem, can't remember the bugid).
Jeremy.
(This used to be commit 94a272b9a881ec0004c5da2a7242b0a818da5630)
2004-03-09 00:17:14 +00:00
Jeremy Allison
2337d3e1a5 Fix assumption about following directory sep in check_path_syntax(). We
need to try and convert 1 byte, then 2 bytes if that fails. Fixes bug
reported by Simo.
Jeremy.
(This used to be commit 0f84801ff3ed5acfcf8e0c4a825f90b9b4823da5)
2004-03-08 21:54:56 +00:00
Jeremy Allison
3f14e8eb9d Fix assumption about following directory sep in check_path_syntax(). We
need to try and convert 1 byte, then 2 bytes if that fails. Fixes bug
reported by Simo.
Jeremy.
(This used to be commit 8702d0089619c7321b93e59d35f43ef32dce7b78)
2004-03-08 21:54:54 +00:00
Simo Sorce
22115af661 Do some checks about data passed to this function
(This used to be commit 77142a1ca6853fcae3b806830d077f6f84bebd6d)
2004-03-08 10:41:05 +00:00
Simo Sorce
9c15b5b0ec 2 fixes to enhance readability of source code and debug messages
1 fix for a memleak
(This used to be commit 9f3b0295fe7bd6c0c3a6061e5d00e7b88f702b21)
2004-03-08 09:52:17 +00:00
Volker Lendecke
cd1be774ad Get us a little closer to Windows LSA semantics.
A windows DC does not reply to DCNAME\\Administrator, only to
DOMAIN\\Administrator. Fix that.

Without winbind we are wrong as domain members, we should forward the request
DOMAIN\\Username to the DC on behalf of the asking client. Winbind fixes that
nicely.

Volker
(This used to be commit c39f698dde98de9b6be40a6c81e669dcd7696b3a)
2004-03-07 08:23:06 +00:00
Volker Lendecke
b3b93aaa3f Get us a little closer to Windows LSA semantics.
A windows DC does not reply to DCNAME\\Administrator, only to
DOMAIN\\Administrator. Fix that.

Without winbind we are wrong as domain members, we should forward the request
DOMAIN\\Username to the DC on behalf of the asking client. Winbind fixes that
nicely.

Volker
(This used to be commit 7ed61edbbedbdee25f750aa30c13479764aa1af2)
2004-03-07 08:22:06 +00:00
Volker Lendecke
f52b1acb74 Mention wb_delgrpmem fix
(This used to be commit 97a6a67b34201dda7715f5f23b1b9af3bcf3705f)
2004-03-07 08:18:35 +00:00
Volker Lendecke
c1e4d37bdd This might not be used a lot and might not survive for long, but at least it
should work as expected :-)

Fix wb_delgrpmember.

Volker
(This used to be commit 2a2b4a159a973678b7279a8d91060c7c27aa22e8)
2004-03-07 08:17:09 +00:00
Volker Lendecke
6659353bd9 This might not be used a lot and might not survive for long, but at least it
should work as expected :-)

Fix wb_delgrpmember.

Volker
(This used to be commit 9fc0025d12d17b0c68956af481a836eebc32e675)
2004-03-07 08:16:10 +00:00
Tim Potter
420a55949d Fix typo.
(This used to be commit 7798a52d82c46759635e90a7e48ddad4ce48b763)
2004-03-07 01:14:35 +00:00
Tim Potter
83d4d42462 Fix typo.
(This used to be commit e6e8b59f53d5ac618dcec13a46c356f0abe5950a)
2004-03-07 01:14:11 +00:00
Tim Potter
5e412188e9 Merge from HEAD.
(This used to be commit 89f3173f4f4e9a16f24b25f550065b50577f3f4c)
2004-03-07 00:50:37 +00:00
Tim Potter
a843787637 Enclose use of fchown() with guards. Bugzilla #1155.
(This used to be commit 92f6895dd11189ce966b8b5a3f9ace54f478a375)
2004-03-07 00:34:49 +00:00
Tim Potter
bc8b6cd9eb Merge from HEAD.
(This used to be commit 1bba071126b46032c97154fbf77242e15bcc5fa3)
2004-03-07 00:09:36 +00:00
Tim Potter
2a3c286cdc tdbdump doesn't need to #include <sys/mman.h>
Bugzilla #1154.
(This used to be commit 311bbf41ec50d5caf4388cb4745173739744a049)
2004-03-06 23:52:54 +00:00
Jeremy Allison
48eb635f31 Several mb tidyups - getting ready to address the XXX_sub function.
Jeremy.
(This used to be commit 92c3ae3458177ec7f721598311a8ad04b2db5138)
2004-03-05 22:32:45 +00:00
Jeremy Allison
443865396b Several mb tidyups - getting ready to address the XXX_sub function.
Jeremy.
(This used to be commit 13edba472a0a5eb56586458a2432d53f495d0129)
2004-03-05 22:32:43 +00:00
Gerald Carter
21c4e30fcc BUG 488: fix the 'show client in col 1' button and corrctely enumerate active connections
(This used to be commit f0e454f6eb3ed25c3210f288d48044b3eed9d129)
2004-03-05 18:37:32 +00:00
Gerald Carter
474758956c BUG 488: fix the 'show client in col 1' button and corrctely enumerate active connections
(This used to be commit d77d38560d1bdc10a58408f449fbc320275bcacc)
2004-03-05 18:37:01 +00:00
Gerald Carter
2aaba6696c fix compiler warning
(This used to be commit 7153cbf8cbb07d4e7a9dc9adc9e0a40c57a6e305)
2004-03-05 17:39:59 +00:00
Gerald Carter
cb49c07c98 fix compiler warning
(This used to be commit df19b6066e1f4e200adcd80f9526aa1a68509580)
2004-03-05 17:39:38 +00:00
Jelmer Vernooij
19e94da760 Add -O (write downloaded files to stdout), based on patch from
Bas van Sisseren <bas@dnd.utwente.nl>
(This used to be commit a90df1c170a168092e0c90f684ea968bd1f6f768)
2004-03-05 17:21:45 +00:00
Jelmer Vernooij
6643781811 Add -O (for writing downloaded files to standard out) based on patch by
Bas van Sisseren <bas@dnd.utwente.nl>
(This used to be commit cc164e5afb0f6100bde547674b3de88b7e45f31f)
2004-03-05 17:17:31 +00:00
Gerald Carter
fe43107ff1 bring WHATSNEW back up to date
(This used to be commit 737b3a5a9286777b0ea38bed5f1e20a3c3859304)
2004-03-05 15:37:08 +00:00
Jeremy Allison
09325be439 all_string_sub() is broken as it doesn't handle mb chars correctly (and
so breaks when substitution '/' and '\'). It's used by unix_clean_name(),
which is used by reduce_name, which is used by check_name() (phew!).
Now that we know all filenames passed to check_name() are in a "good"
format (no double slashes, all '\\' chars translated to '/' etc.) due
to the new check_path_syntax() we can avoid calling reduce_name unless
widelinks are denied. After this check-in I can fix all_string_sub() to
handle mb chars correctly as it won't be in the direct path in the
main path handling code.
Jeremy.
(This used to be commit bce0678331aa4746181389e0f91f11fb2a6dadcb)
2004-03-05 01:37:25 +00:00
Jeremy Allison
893d5eba5d all_string_sub() is broken as it doesn't handle mb chars correctly (and
so breaks when substitution '/' and '\'). It's used by unix_clean_name(),
which is used by reduce_name, which is used by check_name() (phew!).
Now that we know all filenames passed to check_name() are in a "good"
format (no double slashes, all '\\' chars translated to '/' etc.) due
to the new check_path_syntax() we can avoid calling reduce_name unless
widelinks are denied. After this check-in I can fix all_string_sub() to
handle mb chars correctly as it won't be in the direct path in the
main path handling code.
Jeremy.
(This used to be commit 6080186fc4c2e7c59dd12a177539bfb77eb525cb)
2004-03-05 01:37:12 +00:00
Jeremy Allison
4020fadb1a Fix my breakage of NT pipes from the previous patch (sorry). Use the
original srvstr_pull_buf() function to get the pipename not srvstr_get_path().
Jeremy.
(This used to be commit 2a263873fd6bbbf03a32136981e433dc43374da9)
2004-03-04 18:55:37 +00:00
Jeremy Allison
26c41cb6d7 Fix my breakage of NT pipes from the previous patch (sorry). Use the
original srvstr_pull_buf() function to get the pipename not srvstr_get_path().
Jeremy.
(This used to be commit ac5e0c4bb686e2aaccc9b70f240f79747fd48cd8)
2004-03-04 18:55:35 +00:00
Gerald Carter
33f0b530cf BUG 1015: patch from jmcd to fix statfs redeclaration of statfs struct on ppc
(This used to be commit d9a9e214a8dd3b79284f4cff6052210b758bbf72)
2004-03-04 18:35:05 +00:00
Gerald Carter
9b882ce3e5 BUG 1015: patch from jmcd to fix statfs redeclaration of statfs struct on ppc
(This used to be commit fafb243278cd33d696487e477d4685bb79e2e357)
2004-03-04 18:34:45 +00:00
Gerald Carter
2072977287 BUG 1080: fix declaration of SMB_BIG_UINT
(This used to be commit 0b17a4105ecbad26b6bb79ed8148495c02518430)
2004-03-04 18:17:54 +00:00
Gerald Carter
7f6d708f86 BUG 1080: fix declaration of SMB_BIG_UINT
(This used to be commit 810bc1e2a02c6ab11ef00bf67b49929c596bee33)
2004-03-04 18:17:01 +00:00
Volker Lendecke
381485668a There's a specific error message NT_STATUS_ALIAS_EXISTS.
(This used to be commit 0ad00bce0752373a1ac471f6629a5e64ee5af280)
2004-03-04 17:59:25 +00:00
Volker Lendecke
51deca6bc9 There's a specific error message NT_STATUS_ALIAS_EXISTS.
(This used to be commit f0d99f318c67852ac5bf9b606faa115ad36a5f80)
2004-03-04 17:57:21 +00:00
Volker Lendecke
5dc2b72f9b Another typo, sorry for samba-cvs spam :-)
(This used to be commit 3e39d157cb94928a036f0497a9e255f6dbad1771)
2004-03-04 17:51:29 +00:00
Volker Lendecke
e9e6bd66cd Another typo, sorry for samba-cvs spam :-)
(This used to be commit da59bab769dac3702dbddd6ad718f918befee6db)
2004-03-04 17:50:44 +00:00
Volker Lendecke
600327d849 Fix typo.
Volker
(This used to be commit 6287141f10e6c774990b4fdf65bfd2a55afca35a)
2004-03-04 17:47:44 +00:00
Volker Lendecke
869561ad76 Fix typo.
Volker
(This used to be commit 8ba5bdc330114efbc86c851b71c58ac91ada7f31)
2004-03-04 17:47:14 +00:00
Jim McDonough
a6bbc98a49 Fix build farm, older compilers won't let you declare variables
right in the middle of the code.

I just love catching jra on stuff like this, after all the crap
I've done. :-)
(This used to be commit 217791cab21b79fdbe2ddb96079fb9abb8545dd7)
2004-03-04 16:24:15 +00:00