Christof Schmitt
523d5a86de
s3-winbind: Remove unused bool "local"
...
"local" is always False, so simply remove it and the if statement
checking its value.
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Feb 6 23:27:48 CET 2012 on sn-devel-104
2012-02-06 23:27:48 +01:00
Volker Lendecke
5fb578ee09
s3: FreeBSD does not define sin6_addr.s_addr32
...
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon Feb 6 20:03:58 CET 2012 on sn-devel-104
2012-02-06 20:03:58 +01:00
Volker Lendecke
a0e44c30e2
lib/util: Add hex_encode_buf
...
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon Feb 6 09:15:33 CET 2012 on sn-devel-104
2012-02-06 09:15:32 +01:00
Jeremy Allison
4452082002
Ensure when setting a POSIX ACL, that the uid for a
...
SMB_ACL_USER_OBJ ACE (the owner ACE entry) has a duplicate
permission entry as an SMB_ACL_USER, and a gid for a
SMB_ACL_GROUP_OBJ ACE (the primary group ACE entry) also has
a duplicate permission entry as an SMB_ACL_GROUP. If not,
then if the ownership or group ownership of this file or
directory gets changed, the user or group can lose their
access.
2012-02-03 16:37:41 -08:00
Jeremy Allison
6a31e0f4f2
Fix mistaken assignment of gid to uid field.
2012-02-03 15:58:12 -08:00
Jeremy Allison
41152d7157
Replace bool flags inside ensure_canon_entry_valid() with pointers.
...
This will make the second tweak to the ACL mapping on set easier.
2012-02-03 15:28:22 -08:00
Jeremy Allison
45a3b14bea
Fix bug #7933 - samba fails to honor SEC_STD_WRITE_OWNER bit with the acl_xattr module.
2012-02-03 14:55:34 -08:00
Jeremy Allison
d9b9ad2af2
Replace all malloc/free with talloc on tos.
2012-02-03 14:06:38 -08:00
Matthieu Patou
357631b8b9
s3-nmbd: don't discard DGRAM frames from local addresses when we are a DC
...
Winbind use netbios to locate the DC, if samba is also a DC then nmbd
receive request from Winbind that are from a local address, those
requests must not be discarded otherwise winbind can't find the DC and
won't try another method.
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Fri Feb 3 11:09:29 CET 2012 on sn-devel-104
2012-02-03 11:09:29 +01:00
Matthieu Patou
9b43ad4fca
s3-pid: Catch with pid filename's change when config file is not smb.conf
...
This is what is done in pidfile_create
2012-02-03 00:33:00 -08:00
Jeremy Allison
571ee0b1ff
Only ask for specific permissions required when setting an ACL.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Feb 3 03:07:33 CET 2012 on sn-devel-104
2012-02-03 03:07:32 +01:00
Jeremy Allison
9fec2c0ea9
Allow a SACL to be sent in cli_set_secdesc().
2012-02-02 16:28:06 -08:00
Volker Lendecke
fad9727f25
s3: Test for faulty xattr_tdb listxattr
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Feb 2 22:10:49 CET 2012 on sn-devel-104
2012-02-02 22:10:48 +01:00
Volker Lendecke
da0a7b2fcc
s3-xattr_tdb: Fix listxattr
...
We have to tell the caller how many bytes we actually want
2012-02-02 20:35:28 +01:00
Volker Lendecke
b1a544fc80
s3-vfstest: Add removexattr
2012-02-02 20:35:27 +01:00
Volker Lendecke
dbe9ff2999
s3-vfstest: Add setxattr
2012-02-02 20:35:27 +01:00
Volker Lendecke
0a000f1ca7
s3-vfstest: Add listxattr
2012-02-02 20:35:27 +01:00
Volker Lendecke
7d72424f01
s3-vfstest: Add getxattr
2012-02-02 20:35:27 +01:00
Volker Lendecke
c251667b4f
s3: Move stream_depot test to script/tests
2012-02-02 20:35:27 +01:00
Volker Lendecke
bbde298241
s3: Use ARRAY_SIZE in bsd_attr_list
2012-02-02 20:35:27 +01:00
Volker Lendecke
03300f233c
s3: Simplify streams_depot a bit
...
b0c0b949 is a bit involved. Passing down booleans is almost never
very clear
2012-02-02 20:35:27 +01:00
Volker Lendecke
3bea5a147b
s3-vfstest: Fix an uninitialized read in close
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Feb 2 18:00:58 CET 2012 on sn-devel-104
2012-02-02 18:00:58 +01:00
Volker Lendecke
25d3a2e83c
s3-vfstest: Fix a double-free on closing a file
...
"mem_ctx" will be gone after we leave the routine
2012-02-02 16:26:16 +01:00
Stefan Metzmacher
dab7b0e717
s3:auth: fill the sids array of the info3 in wbcAuthUserInfo_to_netr_SamInfo3() (bug #8739 )
...
Originally, only the rid array was filled and foreign domain sids were omitted.
Pair-Programmed-With: Michael Adam <obnox@samba.org>
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Feb 2 12:59:32 CET 2012 on sn-devel-104
2012-02-02 12:59:32 +01:00
Stefan Metzmacher
adbab7710d
s3:auth: fix potential gap creation in wbcsids_to_samr_RidWithAttributeArray()
...
Pair-Programmed-With: Michael Adam <obnox@samba.org>
metze
2012-02-02 11:25:08 +01:00
Andreas Schneider
03c3a613c5
s3-libsmb: Remove dead prototype.
...
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Thu Feb 2 10:33:13 CET 2012 on sn-devel-104
2012-02-02 10:33:13 +01:00
Andreas Schneider
3101d9bc2d
s3-libsmb: Remove dead gssapi code.
...
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Feb 1 23:29:44 CET 2012 on sn-devel-104
2012-02-01 23:29:44 +01:00
Andreas Schneider
8080dbad78
s3-lib: Fix util_cmdline which doesn't use popt.
...
This creates its own header file for util_cmdline so it doesn't need to
link against popt.
This should fix linking on FreeBSD.
2012-02-01 21:54:21 +01:00
Volker Lendecke
8c66c8c756
s3: Test for bug 8733
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Feb 1 21:53:50 CET 2012 on sn-devel-104
2012-02-01 21:53:50 +01:00
Volker Lendecke
207af5d9e3
s3-vfstest: Correctly initialize the connection path
2012-02-01 20:19:31 +01:00
Volker Lendecke
1bd7497a18
s3-vfstest: Fix some uninitialized vars
2012-02-01 20:19:31 +01:00
Volker Lendecke
3c6bd8c1ef
s3-vfstest: Fix some pointless statics
2012-02-01 20:19:31 +01:00
Volker Lendecke
1168700d91
s3-vfstest: Fix a typo
2012-02-01 20:19:30 +01:00
Volker Lendecke
435f817329
s3-vfstest: Fix some nonblank line endings
2012-02-01 20:19:30 +01:00
Michael Adam
6ba09e039e
s3:smbd:smb2: fix an assignment-instead-of-check bug conn_snum_used()
...
Accidential "=" instead of "==".
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Feb 1 17:10:15 CET 2012 on sn-devel-104
2012-02-01 17:10:13 +01:00
Andrew Bartlett
93366586d8
s3-auth Remove unused nt_status_squash from auth_context
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Feb 1 04:18:50 CET 2012 on sn-devel-104
2012-02-01 04:18:50 +01:00
Jelmer Vernooij
b7d5d01c35
s3/wscript: Fix dependency on gssapi, necessary when there is no system Kerberos.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Feb 1 02:43:11 CET 2012 on sn-devel-104
2012-02-01 02:43:11 +01:00
Jelmer Vernooij
51e162df8b
source3/wscript: Expand tabs, to prevent confusion (whitespace is significant in python/waf).
2012-02-01 01:07:11 +01:00
Volker Lendecke
1f328d1e6a
s3: Add rmdir operation to streams_depot
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Feb 1 01:05:57 CET 2012 on sn-devel-104
2012-02-01 01:05:57 +01:00
Volker Lendecke
92b96ac84b
s3: Delete streams on directories
2012-01-31 23:30:09 +01:00
Volker Lendecke
a93cdacd16
s3: Simplify an if-statement
...
is_ntfs_default_stream_smb_fname already contains all checks that
the variable "stream_name" gives us here.
2012-01-31 23:30:09 +01:00
Stefan Metzmacher
6b8a4c96e8
s3:client: ignore SMBecho errors (the server may not support it) (bug #8139 )
...
metze
2012-01-31 21:53:25 +01:00
Stefan Metzmacher
27c686dd70
Revert "Fix bug #8139 - smbclient fails if server does not support Echo request."
...
This reverts commit 1fdc96ecaff8ca12e9aa0082527468ad4242a8a9.
This is wrong in master as the error codes are different compared to
3.5.x. The correct way to handle this is to call cli_state_is_connected().
metze
2012-01-31 21:53:25 +01:00
Stefan Metzmacher
507872f90f
s3:smbd: inline code in reply_sesssetup_and_X_spnego()
...
This makes the logic much easier to follow.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jan 31 21:52:45 CET 2012 on sn-devel-104
2012-01-31 21:52:45 +01:00
Stefan Metzmacher
5f79ad5f87
s3:smbd: the spnego session setup don't need to copy the in blob
...
metze
2012-01-31 20:17:10 +01:00
Stefan Metzmacher
ec0142dd31
s3:smbd: rework reply_spnego_ntlmssp to reply_spnego_generic
...
This removes the unused spnego_gen_auth_response() wrapping.
metze
2012-01-31 20:17:10 +01:00
Stefan Metzmacher
ee15790d7a
s3:smbd: remove unused code from sesssetup.c
...
metze
2012-01-31 20:17:10 +01:00
Stefan Metzmacher
63f6567ca9
s3:smbd: remove pending_auth_data logic
...
This is handled by the gensec_spnego module.
metze
2012-01-31 20:17:10 +01:00
Stefan Metzmacher
8327ee94db
s3:smbd: always use the gensec code path in sesssetup.c
...
The other code pathes are unused, because we always have
the spnego gensec module.
metze
2012-01-31 20:17:10 +01:00
Stefan Metzmacher
3383ebbe7e
s3:smbd: rework smbd_smb2_*_ntlmssp_auth* to smbd_smb2_auth_generic*
...
metze
2012-01-31 20:17:10 +01:00