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

29623 Commits

Author SHA1 Message Date
Michael Adam
3b3125fc23 s3:dbwrap: add dbwrap_fetch_bystring_upper().
To fetch a key whose name is stored but not given in upper case.

Michael
2009-07-15 14:01:39 +02:00
Michael Adam
32a3275344 s3:dbwrap: add dbwrap_store_bystring_upper().
This stores a key under the uppercase version of the given keyname.

Michael
2009-07-15 14:01:38 +02:00
Michael Adam
804d3f897b s3:dbwrap: add dbwrap_delete_bystring_upper()
To delete a key whose name is not given in but stored in uppercase.

Michael
2009-07-15 14:01:38 +02:00
Michael Adam
5b594c6958 s3:dbwrap: add a wrapper dbwrap_trans_do()
This function wraps the action() callback into a db
transaction and the transaction is either committed
or cancelled, depending on the return value of
the action function.

Michael
2009-07-15 14:00:43 +02:00
Stefan Metzmacher
722cd5944f s3:smbd: add support for SMB2 SetInfo File*Information
metze
2009-07-15 11:56:19 +02:00
Stefan Metzmacher
d85cc986b8 s3:smbd: implement SMB2 GetInfo with Fs*Information
metze
2009-07-15 11:56:18 +02:00
Stefan Metzmacher
9df1c8f2ad s3:smbd: return NT_STATUS_INVALID_INFO_CLASS in SMB2 GetInfo
metze
2009-07-15 11:56:18 +02:00
Stefan Metzmacher
9e2c50971e s3:smbd: check quota access against sec_initial_uid() instead of 0
And return an NTSTATUS mapped from errno. Instead of hardcoded values.

metze
2009-07-15 11:56:17 +02:00
Stefan Metzmacher
fafe2589e6 s3:lib: map ENOSYS to NT_STATUS_NOT_SUPPORTED instead of NT_STATUS_ACCESS_DENIED
Jeremy: please check and decide if we want to backport this.

metze
2009-07-15 11:55:39 +02:00
Stefan Metzmacher
b4abb190a9 s3:make test: smbtorture from s3 needs to take the config file path via the SMB_CONF_PATH envvar
metze
2009-07-15 11:55:27 +02:00
Volker Lendecke
76705d10c6 Consolidate gencache also every 100 writes in a single process 2009-07-15 10:55:20 +02:00
Volker Lendecke
3d7dfc1197 Consolidate string and data_blob routines in gencache 2009-07-15 10:55:20 +02:00
Volker Lendecke
8a17cd810f Make gencache more stable
This provides a compromise between stability and performance: gencache is a
persistent database these days that for performance reasons can not use tdb
transactions for all writes. This patch splits up gencache into gencache.tdb
and gencache_notrans.tdb. gencache_notrans is used with CLEAR_IF_FIRST, writes
to it don't use transactions. By default every 5 minutes and when a program
exits, all entries from _notrans.tdb are transferred to gencache.tdb in one
transaction.
2009-07-15 10:55:20 +02:00
Volker Lendecke
ed87594e5f Add tdb_data_cmp 2009-07-15 10:55:20 +02:00
Volker Lendecke
3edcd55bf1 Remove gencache_init/shutdown
gencache_get/set/del/iterate call gencache_init() internally anyway. And we've
been very lazy calling gencache_shutdown, so this seems not really required.
2009-07-15 10:55:20 +02:00
Volker Lendecke
d936d1bd84 Fix some nonempty blank lines 2009-07-15 10:55:20 +02:00
Volker Lendecke
e5a34b2533 Remove gencache_[un]lock_key 2009-07-15 10:55:20 +02:00
Volker Lendecke
3e965d017d TDB_CONTEXT -> "struct tdb_context" 2009-07-15 10:55:19 +02:00
Volker Lendecke
565046891f Replace ASSERTs in gencache with "return false"
It's a bit strong to panic here I think.
2009-07-15 10:55:19 +02:00
Günther Deschner
4b6401ab2c s3-passdb: fix wbc build warning.
Guenther
2009-07-14 23:37:36 +02:00
Volker Lendecke
d050541330 Fix bug 5886
Ok, that's a very long-standing one. I finally got around to install a recent
OpenLDAP and test the different variants of setting a NULL password etc.

Thanks all for your patience!

Volker
2009-07-14 23:16:28 +02:00
Björn Jacke
036bad6131 s3: allow setting the TCP_QUICKACK socket option 2009-07-14 22:29:59 +02:00
Volker Lendecke
b134d4bc4a Attempt to fix the build 2009-07-14 21:29:22 +02:00
Volker Lendecke
749a508749 Create a talloc_stackframe for each file in wildcard unlink
There might be *many* files to delete
2009-07-14 20:49:06 +02:00
Volker Lendecke
74046c8054 TALLOC_FREE(sd) in check_open_rights upon an error 2009-07-14 20:49:05 +02:00
Jeremy Allison
d57e67f9eb Revert this commit :
s3: Make smbd aware of permission change of usershare. Since usershare are relatively volatile and
non-previledge users must disconnect from smbd and reconnect to it to make share permission in effect.

For now. This is a feature request and I think we need
to design it a little differently so as not to touch
core change_to_user() code.

Jeremy.
2009-07-14 11:25:45 -07:00
Bo Yang
73e96935c3 s3: fix build of pdbedit and net_sam. Guenther, please check. Signed-off-by: Bo Yang <boyang@samba.org> 2009-07-15 17:05:46 +08:00
Bo Yang
2821f5abf5 s3: Fix double free in net usershare.
Signed-off-by: Bo Yang <boyang@samba.org>
2009-07-15 17:05:46 +08:00
Bo Yang
86865365ce S3: Small fix to get rid of annoying log message.
Signed-off-by: Bo Yang <boyang@samba.org>
2009-07-15 17:05:46 +08:00
Bo Yang
9ef6af73b3 s3: Make smbd aware of permission change of usershare. Since usershare are relatively volatile and non-previledge users must disconnect from smbd and reconnect to it to make share permission in effect. 2009-07-15 17:05:45 +08:00
Björn Jacke
99c7ee3c91 s3: make d9c0d58236 better readble and reduce indentation 2009-07-14 17:55:50 +02:00
Björn Jacke
d9c0d58236 s3: don't make same innetgr check twice 2009-07-14 17:42:05 +02:00
Günther Deschner
9f15ef11bd s3-account_policy: add pdb_policy_type enum.
Guenther
2009-07-14 12:12:18 +02:00
Günther Deschner
39fa9468c6 s3-account_policy: remove trailing whitespace.
Guenther
2009-07-14 12:10:11 +02:00
Christian Ambach
bd58a14617 reject ACLs with DESC_DACL_PROTECTED on GPFS
as GPFS does not support the ACE4_FLAG_NO_PROPAGATE NFSv4 flag (which would be the mapping for the DESC_DACL_PROTECTED flag), the status of this flag is currently silently ignored by Samba. That means that if you deselect the "Allow inheritable permissions..." checkbox in Windows' ACL dialog and then apply the ACL, the flag will be back immediately.

To make sure that automatic migration with e.g. robocopy does not lead to ACLs silently (and unintentionally) changed, this patch adds an explicit check for this flag and if set, it will return NT_STATUS_NOT_SUPPORTED so errors are shown up on the Windows side and the Administrator is aware of the ACLs not being settable like intended

Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2009-07-14 09:21:26 +02:00
Jeremy Allison
e67de63ba6 Make cli_posix_lock/unlock asynchronous.
Jeremy.
2009-07-13 18:43:10 -07:00
Jeremy Allison
b25e3b6c8a Fix set_posix_lock check which had been reversed in the recent
changes.
Jeremy.
2009-07-13 17:17:37 -07:00
Günther Deschner
e4fca7466d s3-pdb_ads: set correct pdb field with the value from 'accountExpires' attribute.
Guenther
2009-07-13 21:56:31 +02:00
Stefan Metzmacher
8646b9521d s3:net: Fix Bug #6222. Default to DRSUAPI replication for net rpc vampire keytab
metze

Signed-off-by: Günther Deschner <gd@samba.org>
2009-07-13 16:52:12 +02:00
Günther Deschner
f7ff6bd142 s3-rpc_server: pass down full unix token to map_max_allowed_access().
Also use unix_token->uid instead of geteuid() when checking for mapping of the
SEC_FLAG_MAXIMUM_ALLOWED flag.

Guenther
2009-07-13 15:38:20 +02:00
Günther Deschner
05fbe0c7f7 libds: merge the UF<->ACB flag mapping functions.
Guenther
2009-07-13 15:36:07 +02:00
Günther Deschner
8db45607f8 libds: share UF_ flags between samba3 and 4.
Guenther
2009-07-13 15:36:06 +02:00
Stefan Metzmacher
3ee3eb3acf s3:smbd: close_file() handles named pipes just fine, no reason to return NOT_SUPPORTED
metze
2009-07-13 14:13:06 +02:00
Stefan Metzmacher
ed99bf7317 s3:smbd: make smbd_do_qfsinfo() non static for use in SMB2 GetInfo
metze
2009-07-13 14:13:06 +02:00
Stefan Metzmacher
2a92139a1c s3:smbd: split out smbd_do_qfsinfo() from call_trans2qfsinfo()
metze
2009-07-13 14:12:33 +02:00
Stefan Metzmacher
7d735519d7 s3:smbd: make smbd_do_setfilepathinfo() non static for use in SMB2 SetInfo
metze
2009-07-13 11:18:59 +02:00
Stefan Metzmacher
f26a2ca8e4 s3:smbd: split out smbd_do_setfilepathinfo() from call_trans2setfilepathinfo()
metze
2009-07-13 11:18:50 +02:00
Stefan Metzmacher
d7809f65cf s3:smbd: start SMB2 GetInfo support for File*Information levels
TODO: the EA levels are not fully supported.

metze
2009-07-12 17:14:04 +02:00
Stefan Metzmacher
64221bc3fa s3:smbd: add support for marshalling SMB2 FileFullEaInformation
metze
2009-07-12 17:11:08 +02:00
Stefan Metzmacher
e9865150df s3:smbd: add support for marshalling SMB2 FileAllInformation
metze
2009-07-12 17:10:03 +02:00