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

12702 Commits

Author SHA1 Message Date
Jeremy Allison
3c9fd2bdee Fix bug introduced by Jim (touche :-) :-) - use new smbldap_get_single_pstring
call :-).
Jeremy.
-
Jeremy Allison
3b4fca7b7f 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.
-
Jim McDonough
46544e957f Merge from 3.0. Fix munged dial in pdb_ldap -
Herb Lewis
5e831f48f0 add missing #ifdef HAVE_BICONV stuff -
Gerald Carter
e7d2315e45 BUG 1088: patch from SATOH Fumiyasu <fumiya@miraclinux.com> -- use strchr_m() for query_host (smbclient -L) -
Jeremy Allison
ebf82e2c14 Ensure we use check_path_syntax() to pull out DFS paths.
Jeremy
-
Jeremy Allison
30c30c5ac5 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.
-
Volker Lendecke
32d196e9bb 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
-
Volker Lendecke
67bb1d2338 Remove expanding sids from smbd, this will be done in winbindd.
Volker
-
Volker Lendecke
e2696b81bb Apply some const -
Volker Lendecke
27b27c28cd Don't pass DOM_SIDs around when pointers are enough.
Volker
-
Herb Lewis
40634650d0 another type -
Jeremy Allison
859529aff3 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.
-
Jeremy Allison
e93aeb9677 Formatting reformat before I start to change anything here.
Jeremy.
-
Herb Lewis
cd1ed1a23b fix type for tag in proto file -
Jeremy Allison
7067084102 Fix dfs referrals - don't use check_path_syntax. Also use mb char calls in
dfs code.
Jeremy.
-
Rafal Szczesniak
6c8e39b7cc Yet another '\n' termination of debug message.
rafal
-
Rafal Szczesniak
b3efdcf0ae Forgot to put some more comments.
rafal
-
Rafal Szczesniak
2ed23fbce8 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
-
Rafal Szczesniak
6fdb20f5a7 Fix to debug message lacking termination with '\n'.
rafal
-
Gerald Carter
45b2efd60a fix build with gcc 2.96 and --with-developer -
Andrew Bartlett
6bad895462 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
-
Andrew Bartlett
a9363b45b0 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
-
Jeremy Allison
93c2d50f1a 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.
-
Jeremy Allison
0f84801ff3 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.
-
Simo Sorce
77142a1ca6 Do some checks about data passed to this function -
Simo Sorce
9f3b0295fe 2 fixes to enhance readability of source code and debug messages
1 fix for a memleak
-
Volker Lendecke
c39f698dde 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
-
Volker Lendecke
2a2b4a159a 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
-
Tim Potter
7798a52d82 Fix typo. -
Tim Potter
92f6895dd1 Enclose use of fchown() with guards. Bugzilla #1155. -
Tim Potter
311bbf41ec tdbdump doesn't need to #include <sys/mman.h>
Bugzilla #1154.
-
Jeremy Allison
13edba472a Several mb tidyups - getting ready to address the XXX_sub function.
Jeremy.
-
Gerald Carter
f0e454f6eb BUG 488: fix the 'show client in col 1' button and corrctely enumerate active connections -
Gerald Carter
7153cbf8cb fix compiler warning -
Jelmer Vernooij
a90df1c170 Add -O (write downloaded files to stdout), based on patch from
Bas van Sisseren <bas@dnd.utwente.nl>
-
Jeremy Allison
bce0678331 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.
-
Jeremy Allison
ac5e0c4bb6 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.
-
Gerald Carter
d9a9e214a8 BUG 1015: patch from jmcd to fix statfs redeclaration of statfs struct on ppc -
Gerald Carter
0b17a4105e BUG 1080: fix declaration of SMB_BIG_UINT -
Volker Lendecke
0ad00bce07 There's a specific error message NT_STATUS_ALIAS_EXISTS. -
Volker Lendecke
da59bab769 Another typo, sorry for samba-cvs spam :-) -
Volker Lendecke
6287141f10 Fix typo.
Volker
-
Jim McDonough
217791cab2 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. :-)
-
Gerald Carter
00c998c503 BUG 848: don't create winbind local users/groups that already exist in the tdb -
Gerald Carter
29bc83080f another fix for bug 761; don't default to bsd printing on linux -
Jeremy Allison
3f2b9f10de Added client "hardlink" commant to test doing NT rename with hard links.
Added hardlink_internals() code - UNIX extensions now use this too.
Jeremy.
-
Jeremy Allison
883f89a018 Use a common function to parse all pathnames from the wire. This allows
much closer emulation of Win2k3 error return codes.
Jeremy.
-
Jim McDonough
95e7cfdb19 more usrmgr fixes: display lockout timers in minutes, not seconds, for samr 2e -
Jim McDonough
1d3079bf4c quick for for usrmgr. unknown_6 is really max dimension of logon hours array. need to update passdb for this. -