1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

49594 Commits

Author SHA1 Message Date
Sam Liddicott
39e468f558 vfs_cifs - Use ntvfs request transport close to close downstream session
When upstream session closes, close the downstream session

Signed-off-by: Sam Liddicott <sam@liddicott.com>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-05 12:52:19 +01:00
Sam Liddicott
7d8f3cdbfc Let ntvfs request transport close via ntvfs_request state
[I can't swear that this covers all the smb2 cases, there are some reply
functions that I can't trace properly]

Add NTVFS_ASYNC_STATE_CLOSE bit to ntvfs_request->async_states->state
so that the ntvfs layer can signify that the client transport should
be closed, most useful for proxy servies, and most likely due to a
forwarding transport having been closed.

Signed-off-by: Sam Liddicott <sam@liddicott.com>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-05 12:52:13 +01:00
Jeremy Allison
0e723d8f7d Fix bug #5937 - filenames with "*" char hide other files
Jeremy.
2008-12-04 15:35:32 -08:00
Henning Henkel
09b4a9513c Fix bug #5929 - vfs_prealloc does not build with option --with-cluster-support and GPFS 2008-12-04 13:55:12 -08:00
Jeremy Allison
15e1fd7c54 Fix bug #1254 - write list not working under share-level security
A somewhat more elegant fix than I could use for 3.2.x or 3.0.x.
Turns out the only part of check_user_ok() that needs to change
for share level security is the VUID cache pieces, so I can just
always use check_user_ok() for all lp_security() cases.
Jeremy
2008-12-04 11:20:57 -08:00
Stefan Metzmacher
677e0fb965 s4:kludge_acl: allow everybody to read the sequence number
metze
2008-12-04 15:45:16 +01:00
Stefan Metzmacher
180245fce0 s4:kdc: allow a trusted domain to get kerberos tickets
metze
2008-12-04 15:45:16 +01:00
Michael Adam
0f38bd9072 s3:winbindd: fix horrible mis-indentation of toplvl braces in getgrsid_sid2gid_recv
to make code more readble

Michael
2008-12-04 14:00:44 +01:00
Michael Adam
95b4baf5ad s3:winbindd: don't open a new dc connection in winbindd_getpwnam (main winbindd)
This is just to find the corresponding domain struct.
Actual connection is handled by the domain child.

Michael
2008-12-04 13:39:05 +01:00
Michael Adam
db59cbfba8 s3:winbindd: don't open a new dc connection in winbindd_getgrnam (main winbindd)
This is just to find the corresponding domain struct.
Actual connection is handled by the domain child.

Michael
2008-12-04 13:39:05 +01:00
Stefan Metzmacher
6c9b0298a9 s4:selftest: we have netr_GetDcName() and netr_GetAnyDCName() implementations now
metze
2008-12-04 12:48:45 +01:00
Stefan Metzmacher
e9d1c3e7ea RAW-NETLOGON: check netr_GetAnyDCName() result
metze
2008-12-04 12:48:44 +01:00
Stefan Metzmacher
9d44600470 s4:netlogon: for now implement netr_GetAnyDCName() as wrapper of netr_GetDcName()
metze
2008-12-04 12:48:44 +01:00
Stefan Metzmacher
885a1be8b9 s4:netlogon: Implement netr_GetDcName() similar to netr_DsGetDCName()
metze
2008-12-04 12:48:39 +01:00
Stefan Metzmacher
2b8f3e253d s3:net: fix password set of 'net rpc trustdom add'
metze
2008-12-04 12:27:57 +01:00
Tim Prouty
dbfcd3f97c s3: Fix FILE_FLAG_POSIX_SEMANTICS handling underneath SMB_VFS_CREATE_FILE 2008-12-03 17:51:55 -08:00
Tim Prouty
5844012285 s3: Change SMB_VFS_CREATE_FILE to take a create_file_flags argument
This replaces the is_dos_path bool with a more future-proof argument.
The next step is to plumb INTERNAL_OPEN_ONLY through this flag instead
of overridding the oplock_request.
2008-12-03 17:51:44 -08:00
Tim Prouty
f79aae70dd s3: Simplify the create_file_unix_path->open_file_ntcreate path
Also removed open_file_ntcreate/open_file from proto.h so they can no
longer be called directly.
2008-12-03 17:51:35 -08:00
Tim Prouty
6f7f4b428a s3: Modify direct caller of open_file to call SMB_VFS_CREATE_FILE 2008-12-03 17:51:23 -08:00
Tim Prouty
08ce060475 s3: Modify direct callers of open_file_ntcreate and open_directory to call SMB_VFS_CREATE_FILE 2008-12-03 17:51:16 -08:00
Tim Prouty
2caa4fe08e s3: Modify direct callers of create_file_unix_path to call SMB_VFS_CREATE_FILE 2008-12-03 17:51:07 -08:00
Tim Prouty
61b4597e3c s3: Add SMB_VFS_CREATE_FILE to vfs_full_audit module 2008-12-03 17:50:57 -08:00
Tim Prouty
f995a7af2a s3: Add new "is_dos_path" argument to SMB_VFS_CREATE_FILE
Now unix paths can be differentiated from windows paths so the
underlying create_file implementations can convert paths correctly.
2008-12-03 17:50:37 -08:00
Tim Prouty
f38d7f20a8 s3: Add SMB_VFS_CREATE_FILE to the vfs layer
Modify all callers of create_file to go through SMB_VFS_CREATE_FILE
2008-12-03 17:50:17 -08:00
Tim Prouty
1eb743ab8e s3: Change sockaddr util function names for consistency
Also eliminates name conflicts with OneFS system libraries
2008-12-03 10:40:20 -08:00
Stefan Metzmacher
fcbf88115c s4: add some useful link and the patch for the ntp_signd support
metze
2008-12-03 17:42:21 +01:00
Stefan Metzmacher
afa0d6b0b1 libwbclient: avoid usage talloc_init() in library code
talloc_init() is a compat function for the old samba3
non-hierachical talloc implementation. It enables
the talloc null tracking which should never be done
by library code.

metze
2008-12-03 09:19:32 +01:00
Steven Danneman
85b8cccab0 Add support for OneFS ACLs
Add to the OneFS VFS module, support for NTFS ACLs through the calls:

SMB_VFS_FGET_NT_ACL()
SMB_VFS_GET_NT_ACL()
SMB_VFS_FSET_NT_ACL()

Also create several new onefs specific smb.conf parameters in onefs.h
2008-12-02 20:35:45 -08:00
Tim Prouty
239f815e30 Add OneFS VFS module skeleton.
Also set configure to autodetect OneFS OS and build this VFS module.
2008-12-02 20:35:45 -08:00
Karolin Seeger
c09e04ac83 docs: Add default value for "writeable" to man smb.conf.
Karolin
2008-12-02 20:50:02 +01:00
Volker Lendecke
34cfcd6663 Implement type multi_sz for "net registry setvalue" 2008-12-02 15:04:45 +01:00
Günther Deschner
c554080dd9 s3-net: allow to list a keytab generated using net rpc vampire.
Guenther
2008-12-02 12:59:22 +01:00
Kai Blin
ac6c003078 configure.in: Fix smbtorture_s3 tests.
Seems like Jeremy forgot to fix configure.in when importing d448132 to master
in 8d674e35. Generate the vfs_streams_depot module so make test works again.
2008-12-02 10:26:42 +01:00
Günther Deschner
9ccd1174f7 s3-samr: simplify _samr_QueryUserInfo a lot and fix some few potential memleaks.
Guenther
2008-12-02 10:08:11 +01:00
Günther Deschner
8e5cd8f81c s3-samr: fix samr_SetUserInfo{2} level 23.
Do not just start decoding/setting passwords when fields_present
do not indicate there is a password to be set.

Guenther
2008-12-02 10:08:10 +01:00
Volker Lendecke
25e7b21121 Attempt to fix a build failure on AIX 2008-12-02 09:51:46 +01:00
Tim Prouty
1bcd91366d s3: Fix 'ctx' might be used unitialized warnings 2008-12-01 21:59:00 -08:00
Andrew Bartlett
6c298c06f3 Don't treat the DN+binary syntax as a DN.
This should fix the OpenLDAP backend
2008-12-02 14:22:24 +11:00
Andrew Bartlett
9b17e3b634 Use the direct pointer to the syntax
This rather than manually searching for it, and is inspired by a
similar commit in dsdb/schema/schema_description.c by metze

Andrew Bartlett
2008-12-02 14:13:41 +11:00
Günther Deschner
931f16f622 s3-samr: _samr_EnumDomainUsers always returns a sam array (even w/o users).
Guenther
2008-12-02 00:53:27 +01:00
Günther Deschner
61a6b49e48 s3-passdb: remove unused (now samr.idl) ACCT_NT/LM_PWD_SET flags.
Guenther
2008-12-02 00:52:39 +01:00
Günther Deschner
b07d3794d2 s3-samr: refuse do process UserSetInfo with 0 fields_present.
Guenther
2008-12-02 00:52:11 +01:00
Günther Deschner
798c4b3e6a s3-samr: use samr_DomainServerState in client tools.
Guenther
2008-12-02 00:37:39 +01:00
Günther Deschner
6384c97a42 re-run make samba3-idl.
Guenther
2008-12-02 00:37:39 +01:00
Günther Deschner
01b6eee69f s4-samr: use samr_DomainServerState in samr server.
Guenther
2008-12-02 00:37:39 +01:00
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