1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

16312 Commits

Author SHA1 Message Date
Jeremy Allison
03c0e32c28 Allow msdfs symlink syntax to be more forgiving (it took me ages to remember
what it was :-). Allow msdfs links to now look like UNC paths : eg.
sym_link -> msdfs://server/share/path/in/share
or :
sym_link -> msdfs:\\server\share\path\in\share
Jeremy.
(This used to be commit 2979c3e388400fb030b94da5c711f803f81ae0b9)
2004-03-12 01:43:25 +00:00
Jeremy Allison
d99a3d2a5a Allow msdfs symlink syntax to be more forgiving (it took me ages to remember
what it was :-). Allow msdfs links to now look like UNC paths : eg.
sym_link -> msdfs://server/share/path/in/share
or :
sym_link -> msdfs:\\server\share\path\in\share
Jeremy.
(This used to be commit 3c89393e2907e4a3318fb3e94a911cd35f16b4c2)
2004-03-12 01:43:23 +00:00
Jeremy Allison
d1189b8121 Fix bug introduced by Jim (touche :-) :-) - use new smbldap_get_single_pstring
call :-).
Jeremy.
(This used to be commit 3c9fd2bdee097394cb0d0b6683748835c6a2d3a0)
2004-03-11 23:02:52 +00:00
Jeremy Allison
39c7313470 Restore the contract on all convert_stringXX() interfaces. Add a "allow_bad_conv"
boolean parameter that allows broken iconv conversions to work. Gets rid of the
nasty errno checks in mangle_hash2 and check_path_syntax and allows correct
return code checking.
Jeremy.
(This used to be commit 3b4fca7b7f410cb0f11322e22c8f26a662eff941)
2004-03-11 22:59:58 +00:00
Jeremy Allison
e3f5b54270 Restore the contract on all convert_stringXX() interfaces. Add a "allow_bad_conv"
boolean parameter that allows broken iconv conversions to work. Gets rid of the
nasty errno checks in mangle_hash2 and check_path_syntax and allows correct
return code checking.
Jeremy.
(This used to be commit 7b96765c23637613f079d37566d95d5edd511f05)
2004-03-11 22:48:24 +00:00
Jim McDonough
77b180d401 Merge from 3.0. Fix munged dial in pdb_ldap
(This used to be commit 46544e957f00f71e3a49e3d90cd88b4cf1b33408)
2004-03-11 18:10:08 +00:00
Jim McDonough
3d18997afd Get MungedDial actually working with full TS strings in it for pdb_ldap.
I know this isn't pretty, but neither was our assumption that all strings
from the directory fit inside a pstring.  There was no way this worked
before will all versions of usrmgr (for example, the only version of
mine that has the TS Confic button).
(This used to be commit d275c0e384db08c2a6efc28e52844f676ff71fb6)
2004-03-11 16:32:19 +00:00
Herb Lewis
686fcfa61e add missing #ifdef HAVE_BICONV stuff
(This used to be commit 5e831f48f0d15a02a3bc406a7dc5249a57ceec4f)
2004-03-11 15:14:48 +00:00
Herb Lewis
a26e22edfb add missing #ifdef HAVE_BICONV stuff
(This used to be commit 9ea0560b0b62dbefaedd640cf9f4f58a0d337abe)
2004-03-11 15:12:59 +00:00
Gerald Carter
b025b77df1 BUG 1088: patch from SATOH Fumiyasu <fumiya@miraclinux.com> -- use strchr_m() for query_host (smbclient -L)
(This used to be commit e7d2315e45df7e2e4e586a8fc4a32d6880e83e4f)
2004-03-11 14:52:35 +00:00
Gerald Carter
929b0b72d5 BUG 1088: patch from SATOH Fumiyasu <fumiya@miraclinux.com> -- use strchr_m() for query_host (smbclient -L)
(This used to be commit bc6992c4bffed043dd8ad58d721202091cd14cd3)
2004-03-11 14:39:32 +00:00
Jeremy Allison
ba76a6102d Ensure we use check_path_syntax() to pull out DFS paths.
Jeremy
(This used to be commit ebf82e2c14827c0a0edd8ee373ce5200f7b0b3b0)
2004-03-11 00:42:36 +00:00
Jeremy Allison
f2efeca274 Ensure we use check_path_syntax() to pull out DFS paths.
Jeremy
(This used to be commit 28f1e21c583ea9a7771d6e0134b09a7acd5f054d)
2004-03-11 00:42:33 +00:00
Jeremy Allison
97de8faf37 Fix processing of pathnames with embedded '\\' characters (0x5c) in CP932
character set. Because of the allowing of "broken conversions" for people
who have broken iconv libraries we can't rely on the return from convert_string()
to be valid - we must check errno instead. This is ripe for revisiting at
some stage. I prefer adding a bool parameter to all convert_string_XX varients
to specify if we will allow broken conversions or not. With "allow_broken_conversions"
set to false we could then rely on the return from convert_string rather than
checking errno.
Jeremy.
(This used to be commit 30c30c5ac53ec8f32a44d0b1b39cc99fe9844467)
2004-03-11 00:31:50 +00:00
Jeremy Allison
83560bfcfa Fix processing of pathnames with embedded '\\' characters (0x5c) in CP932
character set. Because of the allowing of "broken conversions" for people
who have broken iconv libraries we can't rely on the return from convert_string()
to be valid - we must check errno instead. This is ripe for revisiting at
some stage. I prefer adding a bool parameter to all convert_string_XX varients
to specify if we will allow broken conversions or not. With "allow_broken_conversions"
set to false we could then rely on the return from convert_string rather than
checking errno.
Jeremy.
(This used to be commit 74722f28659ac369676e898fda48d3d9ab265045)
2004-03-11 00:31:47 +00:00
Volker Lendecke
4f920c2803 lsa_enumaccounts lists all SIDs that have been granted privileges. Simo,
you should look at this.

Change behaviour from listing all groups to listing only BUILTIN\Administrator

Volker
(This used to be commit 32d196e9bbf203855832da16eff3dee495679928)
2004-03-10 17:06:13 +00:00
Volker Lendecke
a70ccb3b20 Remove expanding sids from smbd, this will be done in winbindd.
Volker
(This used to be commit 67bb1d2338b0d5ba3f8a4754ff1479cd42cfb051)
2004-03-10 16:40:41 +00:00
Volker Lendecke
8240abca95 Apply some const
(This used to be commit e2696b81bb5e4d12281cf99dc50f91844ae51c2e)
2004-03-10 16:32:58 +00:00
Volker Lendecke
faab4f3c27 Don't pass DOM_SIDs around when pointers are enough.
Volker
(This used to be commit 27b27c28cd0421be3121e7f03c237df381c7ecb3)
2004-03-10 16:17:46 +00:00
Herb Lewis
c3d851fc74 another type
(This used to be commit 40634650d0489ebef17e090ef4544b772538b3dc)
2004-03-10 03:09:28 +00:00
Herb Lewis
2c2142d9d7 another typo
(This used to be commit e6c2d9a3f7b5e427c6e7139726160d79e1dfc16d)
2004-03-10 03:08:14 +00:00
Jeremy Allison
2867b9e2a0 Moving towards getting msdfs working again (this looks like it was broken
in 3.0.2a actually). We now send a correct referral back, but the client
refuses to follow it... Not sure why. Will do more tests.. Maybe unicode
character count is wrong (it looks it).
Jeremy.
(This used to be commit e2709f99fc4e603897472d3ba3bf1ca2e7ca728f)
2004-03-10 02:38:39 +00:00
Jeremy Allison
73cd06319f Moving towards getting msdfs working again (this looks like it was broken
in 3.0.2a actually). We now send a correct referral back, but the client
refuses to follow it... Not sure why. Will do more tests.. Maybe unicode
character count is wrong (it looks it).
Jeremy.
(This used to be commit 859529aff348e66281d2ec4d54c5852121aae9e5)
2004-03-10 02:38:36 +00:00
Jeremy Allison
ccf93c36d8 Formatting reformat before I start to change anything here.
Jeremy.
(This used to be commit 80fde09fc4a5d7e72611fd587777151adc5c890d)
2004-03-10 01:32:26 +00:00
Jeremy Allison
317c529e51 Formatting reformat before I start to change anything here.
Jeremy.
(This used to be commit e93aeb96771125ef8775a531257e7390217204d0)
2004-03-10 01:32:24 +00:00
Herb Lewis
3edf42f921 fix typo for tag in proto file
(This used to be commit 2367d988ae8d33397cd255d39100ae5791401558)
2004-03-10 00:53:36 +00:00
Herb Lewis
0b85e6e157 fix type for tag in proto file
(This used to be commit cd1ed1a23b15002aab3387c6f6316f85574c11e8)
2004-03-10 00:52:59 +00:00
Jeremy Allison
46a718189c Fix dfs referrals - don't use check_path_syntax. Also use mb char calls in
dfs code.
Jeremy.
(This used to be commit 42175b4518764e484d33d9fbfba3b78ba4102ead)
2004-03-09 23:26:58 +00:00
Jeremy Allison
0060085a83 Fix dfs referrals - don't use check_path_syntax. Also use mb char calls in
dfs code.
Jeremy.
(This used to be commit 70670841028aaeb72267ac41ca30af8dba412998)
2004-03-09 23:26:56 +00:00
Rafal Szczesniak
104e6c43ed Yet another '\n' termination of debug message.
rafal
(This used to be commit 6c8e39b7ccc1ad8e7f39c2a51fa13423e5d6e227)
2004-03-09 21:48:46 +00:00
Rafal Szczesniak
addfc95df2 Yet another '\n' termination of debug message.
rafal
(This used to be commit 3e57c2c6850655da77e25de4cb047cc27741ca9c)
2004-03-09 21:47:49 +00:00
Rafal Szczesniak
340c4bbe5d Forgot to put some more comments.
rafal
(This used to be commit b3efdcf0aeec5a115c53de8bbedaa9ca8225b689)
2004-03-09 20:44:39 +00:00
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