1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

49549 Commits

Author SHA1 Message Date
Günther Deschner
c379820852 samr: add samr_DomainServerState.
Guenther
2008-12-02 00:37:39 +01:00
Stefan Metzmacher
db369b5567 RAW-STREAMS: test stream renames
metze
2008-12-01 14:45:06 -08:00
Stefan Metzmacher
540e6376cc RAW-STREAMS: some more tests...
metze
2008-12-01 14:44:42 -08:00
Stefan Metzmacher
87bb9e178f RAW-STREAMS: test valid character in the range of 0x01 => 0x7F
metze
2008-12-01 14:43:58 -08:00
Stefan Metzmacher
b25d69e3a8 RAW-STREAMS: check some strange stream name combinations
metze
2008-12-01 14:43:23 -08:00
Stefan Metzmacher
9519d5dd71 RAW-CHKPATH: test every character in the range of 0x01 => 0x7F
metze
2008-12-01 14:42:48 -08:00
Stefan Metzmacher
dfc365743a s4:libcli/clideltree: work against servers without NTSTATUS support
metze
2008-12-01 14:42:07 -08:00
Stefan Metzmacher
84b2db8d51 s4:pvfs: correctly check stream names
metze
2008-12-01 14:41:29 -08:00
Stefan Metzmacher
7c07be9cab s4:pvfs: return the correct error code for invalid names
metze
2008-12-01 14:40:51 -08:00
Stefan Metzmacher
a8595bf506 s3:selftest: test the streams_depot module as it passes make test
The streams_xattr module only passes sometimes on my laptop.

metze
2008-12-01 14:37:13 -08:00
Stefan Metzmacher
e605fdc81c s3:smbd: close the low level fd of the base_fsp, if the file was created
metze
2008-12-01 14:28:27 -08:00
Stefan Metzmacher
65169a43b3 s3:streams_xattr: fstat should do a stat on the base file
The behavior of stat and fstat should be the same.

metze
2008-12-01 14:26:58 -08:00
Stefan Metzmacher
a8004a4ef5 s3:streams_xattr: recheck fsp->fsp_name after a rename
metze
2008-12-01 14:25:20 -08:00
Stefan Metzmacher
e6a2ce970b s3:smbd: give the correct error when trying to replace a stream
metze
2008-12-01 14:23:30 -08:00
Stefan Metzmacher
0b169748ce s3:vfs: fix FCHMOD_ACL macros
metze
2008-12-01 14:21:34 -08:00
Stefan Metzmacher
b0c0b949fe s3:streams_depot: add an option to disable the xattr checks
streams_depot:check_valid=no is useful when the filesystem
has no xattr support and files are only published via samba.

metze
2008-12-01 14:20:21 -08:00
Stefan Metzmacher
d53f82a1cf s3:streams_depot: fix valgrind bug lp_parm_const_string() doesn't talloc the default value
metze
2008-12-01 14:11:33 -08:00
Stefan Metzmacher
549c2cb7a8 s3:streams_depot: add support for stream renames
metze
2008-12-01 14:10:04 -08:00
Stefan Metzmacher
ce310f666d s3:streams_depot: map 'file::$DATA' to just 'file'
metze
2008-12-01 13:59:21 -08:00
Stefan Metzmacher
9ae1a17c95 s3:streams_xattr: add support for renaming streams
metze
2008-12-01 13:54:53 -08:00
Stefan Metzmacher
787b0536b7 s3:smbd: only try and fallback to open a directory if it's not a stream open
metze
2008-12-01 13:52:28 -08:00
Stefan Metzmacher
d1d9dc5574 s3:smbd: write times should be set on the base file instead of the stream name
metze
2008-12-01 13:45:55 -08:00
Stefan Metzmacher
4659215a00 s3:smbd: return DELETE_PENDING on path based operations on streams, when the main file was deleted.
metze
2008-12-01 13:35:28 -08:00
Jeremy Allison
ff7de4afe1 Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba 2008-12-01 13:32:35 -08:00
Stefan Metzmacher
8edd775244 s3:smbd: construct the correct newname for stream renames
The Windows Explorer creates temporary streams and renames
them later via SFILEINFO_RENAME_INFO. The newname comes
in as ":Stream:$DATA".

metze
2008-12-01 13:31:43 -08:00
Günther Deschner
0b7430b054 s3-samr: fix various potential memleaks in samr_SetUserInfo.
Was there any reason why we did all these individual TALLOC_FREEs ?

Guenther
2008-12-01 22:30:17 +01:00
Stefan Metzmacher
936037c7da s3:smbd: wildcard characters are allowed in stream names
We only check the filename of the basefile now.

metze
2008-12-01 13:27:47 -08:00
Stefan Metzmacher
edde763d3f s3:smbd: correctly verify stream names to pass RAW-STREAMS
metze
2008-12-01 13:22:55 -08:00
Stefan Metzmacher
49a8bd5e14 s3:smbd: '|' isn't allowed in windows filenames
metze
2008-12-01 13:01:09 -08:00
Günther Deschner
24fec0a8d7 s3-samr: avoid code duplication for identical code in _samr_Connect2, 4 and 5.
Guenther
2008-12-01 21:56:28 +01:00
Günther Deschner
c7c591c19f s3-samr: modify logging in _samr_Connect2 so that it can be called from other calls as well.
Guenther
2008-12-01 21:52:03 +01:00
Volker Lendecke
4f0661ace8 Fix a debug message, append the correct \n 2008-12-01 17:36:04 +01:00
Bo Yang
81fc50b486 Fix script installmo.sh when no .po file exists 2008-12-01 11:09:52 +01:00
Michael Adam
e021ecea45 s3:vfs_tsmsm: fix potential segfault (freeing uninitialized buffer)
Michael
2008-12-01 06:21:29 +01:00
Steven Danneman
7bd7846df7 Make nt4_compatible_acls() non-static for use by VFS ACL modules. 2008-11-30 21:04:19 -08:00
Michael Adam
0744c32678 s3:winbindd/nss_info: remove unused variable from nss_init()
Michael
2008-12-01 04:37:24 +01:00
Michael Adam
c77435caaf s3:winbindd/nss_info: make nss_domain_list_add_domain() static
Michael
2008-12-01 04:37:24 +01:00
Michael Adam
37be1f6d08 s3:winbindd/nss_info: fix default backend handling for ad backends.
This fixes "winbind nss info = rfc2307" (or sfu or sfu20).
Originally, only explicitly configured domains (like "rfc2307:domain")
worked with the ad module, since the domain name was not passed
backe to the module. This is fixed by recording the first backend
listed without domain in the "winbind nss info" parameter as the
default backend, and creating new nss_domain entries (using this default
backend) on the fly as requests for domains which are not explicitly
configured are encountered.

Michael
2008-12-01 04:37:24 +01:00
Michael Adam
a7e60befdc s3:winbindd/nss_info: whitespace cleanup.
Remove trailing spaces and fix tab / space mixup.

Michael
2008-12-01 04:37:23 +01:00
Michael Adam
af6f1b4085 s3:winbindd_cache: add debugging to get_nss_info_cached()
Michael
2008-12-01 04:37:23 +01:00
Michael Adam
09d05bcffe s3:winbindd/nss_info: add entry debug message to nss_get_info()
Michael
2008-12-01 04:37:23 +01:00
Michael Adam
1048c2ccbe s3:winbindd/nss_info: add debugging to nss_init()
Michael
2008-12-01 04:37:22 +01:00
Michael Adam
82ee6d2f7d s3:winbindd/idmap_ad: add entry debug message to nss_ad_get_info()
Michael
2008-12-01 04:37:22 +01:00
Michael Adam
484fa90aef s3:winbindd/idmap_ad: add support for trusted domains to idmap_ad (bug #3661)
This initial fix does at least work for explicitly configured domains.

The patch has a few disadvantages:

1. It does work only for explicitly configured domains, not with
   the default backend (idmap backend = ad), since it relies on the
   domain name being passed in via the idmap_domain. One workaround
   for this would be to create clones of the default idmap_domain
   for domains not explicitly configured.

2. It calls find_domain_from_name_noinit() from idmap_ad_cached_connection.
   The problem here is that only the NetBIOS domain name (workgroup
   name) is passed in via the idmap_domain struct, and the module
   has to establish a connection to the domain based on that information.
   find_domain_from_name_noinit() has the disadvantage that it uses the state
   of the domain list at fork time (unless used from the main winbindd).
   But this should be ok as long as the primary domain was reachable at
   start time.

For nss_info, the situation is similar - This will only work for domains
explicitly configured in smb.conf as follows:
"winbind nss info = rfc2307:dom1 sfu:dom2 rfc2307:dom3 template:dom4"
Setting the default nss info to one of the ad backends (rfc2307, sfu, sfu20)
will fail since the domain name is not passed in with the nss_domain_entry.

Michael
2008-12-01 04:37:22 +01:00
Michael Adam
be233ae32a s3:winbindd/idmap_ad: refactor core of nss_{sfu|sfu20|rfc2307}_init to common function.
Michael
2008-12-01 04:37:22 +01:00
Michael Adam
73fddcd656 s3:winbindd/idmap_ad: rename ctx to mem_ctx in nss_ad_get_info()
in preparation to using the idmap_ad_context there

Michael
2008-12-01 04:37:22 +01:00
Michael Adam
11d5b1a21a s3:winbindd/idmap: add diagnostic entry debug msg to idmap_backends_sid_to_unixid
Michael
2008-12-01 04:37:21 +01:00
Michael Adam
7b4e54359f s3:winbindd/idmap: add diagnostic entry debug msg to idmap_backends_unixid_to_sid
Michael
2008-12-01 04:37:21 +01:00
Michael Adam
5f5fa28c5d s3:winbindd/idmap: add diagnostic entry debug msg to idmap_find_domain().
Michael
2008-12-01 04:37:21 +01:00
Michael Adam
67cc93c4a2 s3:winbindd/idmap_util: unify entering debug messages and add ouput of domain
Michael
2008-12-01 04:37:20 +01:00