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

2205 Commits

Author SHA1 Message Date
Jeremy Allison
6a4502b03b Fix bug brought up by Ken Cross that empty ACE's cause existing ACE's to
be applied to new ACE set calls. This is incorrect. Don't think this
has a bugzilla id.
Jeremy.
-
Jeremy Allison
a1fee6594e It seems only NT4 does the VC == 0 session drop code.
Jeremy.
-
Tim Potter
d2bc89b860 Merge from 3.0:
>Restore a number of fixes that idra removed when he merged his
>idmap-and-the-rest from HEAD.
>
>These are correctness fixes that were already in 3.0, and a memory leak fix.
>
>The pdb_ldap changes are held back at jerry's request (he is also playing
>with pdb_ldap ATM).
>
>Andrew Bartlett
-
Jeremy Allison
870e111fac Correct (?) handling for VC = 0. Trying to fix XP logoff leaving resources
around.
Jeremy.
-
Gerald Carter
81cccd25b8 volker's add_signature() fix; must pass the beginning on the outbuf to get the flags field -
Tim Potter
7345bca285 Fix shadow parameter warning in free_empty_sys_acl() -
Jeremy Allison
0811acb957 Stat opens can have fsp->fd == -1 and will have a share entry. Ensure
that file_find_dif will find them. Fixes a core dump in smbd/open.c.
Jeremy.
-
Jeremy Allison
0e2a47c1e6 More fixes for debug log to catch logic error.
Jeremy.
-
Gerald Carter
207186e1c8 fix for UNICODE plaintext passwords (bug #59) and fix smbclient to send the unicode plain text password if negoitated -
Andrew Tridgell
a16415a6c9 we weren't filling in the keylength in LANMAN1 and LANMAN2.1 negprot
reply. Seems to have been broken for a long time!
-
Gerald Carter
a032c38ed4 really make sure to include the version in the lanman string; tested spnego using smbclient -
Jeremy Allison
34b170a82c Cope with cumulative permissions sets. This code is #ifdef'ed out at the
moment as I don't think cumulative permission sets make sense in POSIX even
though that's the way Windows works....
Jeremy.
-
Jeremy Allison
ef2d5a9c0c Fix from Steve G <linux_4ever@yahoo.com>. Ensure sigemptyset is called on
the sa_mask to prevent valgrind complaints.
Jeremy.
-
Jeremy Allison
b6e7890017 Fix winbindd coredump. Remember to set a ** pointer to null before
searching and not finding otherwise we return a valid looking pointer
that was whatever crap was on the stack.
Jeremy.
-
Tim Potter
249a697470 spelling -
Gerald Carter
bd660f45df fixing typos in debug statements -
Jelmer Vernooij
d31509fe88 Reverse previous patch from Stefan and me after comments by Andrew Bartlett. -
Jelmer Vernooij
367a5cad1e Patch from metze and me that adds dummy smb_register_*() functions -
Jeremy Allison
98729bc9a6 Optimisation. We don't need to do 2 strlen's when we're setting the stat
struct in the correct place.
Jeremy.
-
Jeremy Allison
a0688316ce Fix nasty bug pointed out by samba-technical poster. If name is mangled
then we weren't always correctly detecting that it had a valid stat struct
and so might now return a 'file existed'. Finally realized this when installing
the W2K resource kit as a test case.
Jeremy.
-
Jeremy Allison
a635b6406a SMB_QUERY_FILE_ALT_NAME_INFO and SMB_FILE_ALTERNATE_NAME_INFORMATION
are identical - noticed by "Dr. Tilo Levante" <tilo@levante.de>.
Jeremy.
-
Jeremy Allison
4fe84f6173 Make fchown, fchmod conditional for systems that don't have them.
Jeremy.
-
Jelmer Vernooij
e599eba851 Add metze's exit and idle event patch -
Jeremy Allison
e954ca2ce8 Fix uninitialized blobs reported by Luke Howard.
Jeremy.
-
Jeremy Allison
aeba1fcab2 Fix for bugid 51 from Dragan Krnic.
Jeremy.
-
Simo Sorce
568feee897 proper wellknown sids initialization at startup -
Simo Sorce
6d036761e5 *id_to_*id call reshape to return NTSTATUS errors
plus internal fixes
1st stage
-
Jelmer Vernooij
908d839b77 Fix disk quotas support on HP/UX (patch by David Nixon) -
Jelmer Vernooij
3895571eee Use ints for the version numbers in the smb_register_*() functions (patch by metze) -
Simo Sorce
6a6f603246 This is a nice rewrite:
SAM_ACCOUNT does not have anymore uid and gid fields
all the code that used them has been fixed to use the proper idmap calls

fix to idmap_tdb for first time idmap.tdb initialization.

auth_serversupplied_info structure has now an uid and gid field

few other fixes to make the system behave correctly with idmap

tested only with tdbsam, but smbpasswd and nisplus should be ok

have not tested ldap !
-
Gerald Carter
4ab1909378 add version back to lanman string in sessetup reply -
Simo Sorce
f7041ec5d7 consolidate idmap code in one place -
Simo Sorce
67af8c2658 ok next_rid out as well local_*id_to*id functions
reverted user making function, did not pass the abartlet test :-)
idmap is now fully integrated, we only miss user creation and removal of uid
and gid from SAM_ACCOUNT
-
Jelmer Vernooij
f4576757d1 Use NTSTATUS as return value for smb_register_*() functions and init_module()
function. Patch by metze with some minor modifications.
-
Simo Sorce
9d7d007443 make winbind use idmap as well.
change idmap_init call

removed ldap backend for winbind idmap, seem it had problems anyway and it
have to be reworked to work with idmap without calling winbind code.

simo
-
Jim McDonough
ce56ccf932 Fix length in findfirst2 responses, fix os/2 clients -
Jeremy Allison
5d2b2b5607 Add runtime tests for "impossible" case with -DDEVELOPER. Trying to catch logic
error on Linux.
Jeremy.
-
Gerald Carter
2e5e686173 another lost merge from 3.0; my fault -
Jeremy Allison
f8021af2a7 Tidyups of some dubious logic discovered whilst trying to track down a
strange oplock related issue on the PSA.
Jeremy.
-
Andrew Bartlett
c11465b285 Remove unused (#ifdef'ed) code. -
Andrew Bartlett
e8aa615591 Use fstrcpy/pstrcpy when that's what we really mean...
Andrew Bartlett
-
Simo Sorce
dd8009bf59 use gid_t for gids not uid_t -
Simo Sorce
bc95de4ebb fixes
fix debug, add "idmap" string to the list of classes
fix idmap, check init failures, and enhance debugging
fix idmap_tdb, _do_ init uid and gid low,high states (too bad I missed that
before)
fix smbd/uid.c, use gid_t for gids and uid_t for uids
-
Andrew Bartlett
3d2d19b910 Expand this magic number into the #defines it is made up of. -
Andrew Bartlett
3fdddade0f Put this comment in a better place... -
Andrew Bartlett
6e6b7b79ed Store the type of 'sec channel' that we establish to the DC. If we are a
workstation, we have to use the workstation type, if we have a BDC account,
we must use the BDC type - even if we are pretending to be a workstation
at the moment.

Also actually store and retreive the last change time, so we can do
periodic password changes again (for RPC at least).

And finally, a couple of minor fixes to 'net'.

Andrew Bartlett
-
Simo Sorce
c37467651b strncat get sometimes optimized to strcat by glibc and that triggers our
"don't use strcat" define

reworked to snprintf
-
Gerald Carter
ad2765bb5e * We must return 0x2 as the majorversion for nt4 to upload drivers
* fix bug found by clobber_region()
-
Gerald Carter
beedde03fc cleanup lanman printing= for win98; device type is LPT1:; patch by Steve L. -
Tim Potter
4ccd34ef83 A new RPC pipe! The \pipe\echo named pipe is for testing large RPC
requests and responses and is only compiled in when --enable-developer
is passed to configure.  It includes server and client side code for
generating and responding to functions on this pipe.  The functions are:

 - AddOne: add one to the uint32 argument and return ig
 - EchoData: echo back a variable sized char array to the caller
 - SourceData: request a variable sized char array
 - SinkData: send a variable sized char array and throw it away

There's a win32 implementation of the client and server in the
junkcode CVS repository in the rpcecho-win32 subdirectory.
-