1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source3
Elia Geretto 70b9977a46 s3:libsmb: Fix errno for failed authentication in SMBC_server_internal()
In SMBC_server_internal(), when authentication fails, the errno value is
currently hard-coded to EPERM, while it should be EACCES instead. Use the
NT_STATUS map to set the appropriate value.

This bug was found because it breaks listing printers protected by
authentication in GNOME Control Panel.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14983

Signed-off-by: Elia Geretto <elia.f.geretto@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Mar 16 19:44:18 UTC 2022 on sn-devel-184
2022-03-16 19:44:18 +00:00
..
auth s3:auth: make_user_info_map() should not set mapped_state 2022-03-10 03:16:35 +00:00
build
client s3: smbclient: In do_host_query(), if we need SMB1, ensure we select NT1 as the client max protocol" before continuing. 2022-01-06 11:50:32 +00:00
exports
groupdb lib: relicense smb_strtoul(l) under LGPLv3 2020-08-03 22:21:02 +00:00
include vfs: Convert get_real_filename() to NTSTATUS 2022-03-10 18:23:36 +00:00
intl
lib smbd: Remove a few vfs_stat() calls 2022-03-11 19:19:21 +00:00
libads s3:libads: Fix creating local krb5.conf 2022-03-16 14:26:36 +00:00
libgpo/gpext
libnet s3:libnet: Do not set ADS_AUTH_ALLOW_NTLMSSP in FIPS mode 2022-01-22 00:27:52 +00:00
librpc s3:rpc_server: Delete unused code and doc references 2021-12-10 14:02:30 +00:00
libsmb s3:libsmb: Fix errno for failed authentication in SMBC_server_internal() 2022-03-16 19:44:18 +00:00
locale s3:locale: Reformat shell scripts 2022-03-03 00:59:34 +00:00
locking s3: smbd: Move implicit call to lp_posix_cifsu_locktype() out of init_strict_lock_struct(). 2022-01-06 15:11:38 +00:00
modules vfs: Getting exact attribute value during gpfs_stat_x calls 2022-03-16 18:51:37 +00:00
nmbd source3: move lib/substitute.c functions out of proto.h 2021-11-11 13:49:32 +00:00
param docs-xml: add 'kdc enable fast' option 2022-03-11 17:10:29 +00:00
passdb smbd: Safeguards for getpwuid 2022-02-11 20:54:37 +00:00
printing printing: Fix a DBG message 2022-03-11 18:22:28 +00:00
profile profile3: remove an unused include 2022-01-18 20:22:38 +00:00
registry CVE-2020-25717: Add FreeIPA domain controller role 2021-11-09 19:45:33 +00:00
rpc_client s3:rpc_client: let rpccli_netlogon_network_logon() fallback to workstation = lp_netbios_name() 2022-03-10 03:16:35 +00:00
rpc_server samba-dcerpcd: Silence a DEBUG message 2022-02-22 10:16:44 +00:00
rpcclient s3:rpcclient: Fix crash in rpcclient 2022-03-07 00:00:32 +00:00
script s3:tests: Add a test to check the output of smbstatus. 2022-03-07 14:35:36 +00:00
selftest s3:script: Blackbox tests for the rpcclient DFS commands 2022-03-06 23:05:40 +00:00
services s3:services: Disable rcinit-based service control code 2021-12-10 14:02:30 +00:00
smbd smbd: Remove a few vfs_stat() calls 2022-03-11 19:19:21 +00:00
torture s3: smbd: Rename OpenDir_ntstatus() -> OpenDir(). 2022-03-02 21:58:32 +00:00
utils s3:utils: assign ids to struct to list shares correctly 2022-03-07 15:27:48 +00:00
web
winbindd winbindd: don't set mapped_state in winbindd_dual_auth_passdb() 2022-03-10 03:16:35 +00:00
.clang_complete
.dmallocrc
.indent.pro
Doxyfile
mainpage.dox
smbadduser.in
wscript waf: re-add missing readlink test 2022-02-18 23:12:51 +00:00
wscript_build s3: smbd: Add two new functions in a new file, smb2_posix.c: smb2_posix_cc_info(), store_smb2_posix_info() 2022-02-01 17:25:45 +00:00
wscript_configure_system_ncurses