1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/source3
Uri Simchoni 78ae852dd7 nt-quotas: return 0 as indication of no quota
When getting user quota, the correct value to indicate "no quota"
is 0, not -1.

In [MS-FSCC] section 2.4.33 it is written that -1 designates no-quota.
However, careful read of that section shows that this designation is only
true when setting the quota, and this section says nothing about getting
the quota.

In [MS-FSA] section 2.1.5.20, it is written that "If SidList includes a SID
that does not map to an existing SID in the Open.File.Volume.QuotaInformation
list, the object store MUST return a FILE_QUOTA_INFORMATION structure
(as specified in [MS-FSCC] section 2.4.33) that is filled with zeros.

This is also verified experimentally and cleared with dochelp.

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-03-31 20:30:10 +02:00
..
auth s3-auth: check for return code of cli_credentials_set_machine_account(). 2016-03-17 20:43:17 +01:00
build waf: improve iconv checks 2014-01-03 05:04:44 +01:00
client CVE-2015-7560: s3: libsmb: Rename cli_posix_getfaclXX() functions to cli_posix_getacl() as they operate on pathnames. 2016-03-10 06:52:23 +01:00
exports
groupdb Convert all uses of uint32/16/8 to _t in source3/groupdb. 2015-05-14 19:29:19 +02:00
include s3-profile: add PROFILE_TIMESTAMP macro 2016-03-28 20:45:16 +02:00
intl lang_tdb: don't leak lock_path or data_path onto talloc tos 2014-11-03 23:46:05 +01:00
lib asys: call clock_gettime_mono() only on profile-enabled build 2016-03-28 20:45:16 +02:00
libads libads: Fix CID 1356316 Uninitialized pointer read 2016-03-18 00:29:13 +01:00
libgpo gpo: don't leak cache_path onto talloc tos 2014-10-06 19:18:05 +02:00
libnet s3:libnet:libnet_join: update msDS-SupportedEncryptionTypes (if required) with machine creds. 2016-03-14 19:38:48 +01:00
librpc s3:smbXsrv.idl: add 8 byte channel_sequence number and request counters to IDL. 2016-03-22 00:23:21 +01:00
libsmb libsmb: Fix CID 1356312 Explicit null dereferenced 2016-03-18 00:29:14 +01:00
locale s3: fix encryption help messages 2015-12-22 02:22:50 +01:00
locking s3:smbd: convert file_struct.posix_open to a bitmap with flags 2015-12-01 20:45:20 +01:00
modules vfs_glusterfs: call clock_gettime_mono() only on profile-enabled build 2016-03-29 00:12:14 +02:00
nmbd dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
param loadparm: Remove an unneeded variable 2016-02-19 15:56:19 +01:00
passdb build: mark explicit dependencies on pytalloc-util 2016-03-15 07:08:16 +01:00
printing s3: Filenames: Add uint32_t flags parameter to synthetic_smb_fname(). 2016-03-24 22:57:16 +01:00
profile s3-profile: reduce dependencies of smbprofile.h 2016-03-28 20:45:16 +02:00
registry s3:registry: use dbwrap_purge_bystring instead of dbwrap_delete_bystring 2016-03-01 21:50:24 +01:00
rpc_client source3/rpc_client: Fix CID 1273041 Condition is redundant 2015-08-07 01:31:23 +02:00
rpc_server s3: Filenames: Add uint32_t flags parameter to synthetic_smb_fname(). 2016-03-24 22:57:16 +01:00
rpcclient s3: rpcclient: Prevent null ptr access by returning error if no creds available 2015-11-04 22:15:24 +01:00
script seltest: add test for "ignore system acls" in vfs_acl_xattr. 2016-03-24 03:06:16 +01:00
selftest seltest: add test for "ignore system acls" in vfs_acl_xattr. 2016-03-24 03:06:16 +01:00
services Convert all uint32/16/8 to _t in a couple of include files. 2015-05-12 04:22:55 +02:00
smbd nt-quotas: return 0 as indication of no quota 2016-03-31 20:30:10 +02:00
stf
torture winbind: Remove unused idmap_backends_unixid_to_sid 2016-03-30 17:58:48 +02:00
utils s3:ntlm_auth: pass manage_squid_request() needs a valid struct ntlm_auth_state from within get_password() 2016-03-22 19:20:38 +01:00
web
winbindd winbind: Fix a typo in a wrong comment... 2016-03-30 21:54:40 +02:00
.clang_complete lib: Remove tdb_compat 2015-03-17 11:30:52 +01:00
.dmallocrc
.indent.pro
change-log
Doxyfile
mainpage.dox
smbadduser.in
wscript build: fix build when --without-quota specified 2016-03-17 01:08:32 +01:00
wscript_build s3:wscript: pylibsmb depends on pycredentials 2016-03-15 22:13:23 +01:00
wscript_configure_system_ncurses Transition to waf 1.8: wrapped conf.check_cfg 2015-03-16 03:00:07 +01:00