search for: ntstatus

Displaying 20 results from an estimated 177 matches for "ntstatus".

2017 Jun 05
3
Lots of RPC-related compile errors (conflicting types, too many arguments, ...) trying to update Samba from 3.5 to 4.6
...from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:41: error: conflicting types for 'rpc_lsarpc_init' #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_i...
2017 Jun 08
0
2nd try: Lots of RPC-related compile errors (conflicting types, too many arguments, ...) trying to update Samba from 3.5 to 4.6
...to get a recent Samba version to compile, and it looks like I definitely need your help with this. In the meantime, I have found that the huge number of "conflicting types" errors for rpc_*_init(...) is due to the fact that the Samba 4.6.4 codebase seems to have for all RPC modules: NTSTATUS rpc_*_init(_*const struct rpc_srv_callbacks *rpc_srv_cb*_); while in expansion of macro 'static_decl_rpc', from file bin/default/iclude/config.h which seems to be autogenerated during the configure process, we have extern NTSTATUS rpc_*_init(_*void*_); (why is this so?), which of cours...
2016 Aug 26
2
Issue with acl_xattr:ignore system acls in 4.5rc2
...1 file changed, 39 insertions(+), 4 deletions(-) > > diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c > index 2fda938e..a287945 100644 > --- a/source3/modules/vfs_acl_common.c > +++ b/source3/modules/vfs_acl_common.c > @@ -379,10 +379,12 @@ static NTSTATUS make_default_filesystem_acl(TALLOC_CTX *ctx, > gid_to_sid(&group_sid, psbuf->st_ex_gid); > > /* > - * We provide 2 ACEs: > - * - Owner > - * - NT System > - */ > + We provide up to 4 ACEs > + - Owner > + - Group > + - Everyone > + - NT Syste...
2016 Aug 29
1
Issue with acl_xattr:ignore system acls in 4.5rc2
...d realized that adding the following change made it much clearer (at least to me). diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c index 2163a75..870e6da 100644 --- a/source3/modules/vfs_acl_common.c +++ b/source3/modules/vfs_acl_common.c @@ -625,7 +625,7 @@ static NTSTATUS validate_nt_acl_blob(TALLOC_CTX *mem_ctx, vfs_handle_struct *handle, files_struct *fsp, const struct smb_filename *smb_fname, - DATA_BLOB *blob, +...
2016 Aug 26
2
Issue with acl_xattr:ignore system acls in 4.5rc2
On Fri, Aug 26, 2016 at 06:33:26PM +0200, Ralph Böhme via samba wrote: > On Thu, Aug 25, 2016 at 12:14:00PM -0700, Jeremy Allison wrote: > > On Wed, Aug 24, 2016 at 04:06:42PM +0200, Ralph Böhme via samba wrote: > > > > > > Yeah, as much as I'd like to avoid adding a new option, I guess we > > > have to do something about it, my latest take on this is >
2016 Aug 27
2
Issue with acl_xattr:ignore system acls in 4.5rc2
On Fri, Aug 26, 2016 at 04:03:49PM -0700, Jeremy Allison wrote: > On Fri, Aug 26, 2016 at 02:46:19PM -0700, Jeremy Allison via samba wrote: > > On Fri, Aug 26, 2016 at 06:44:05PM +0200, Ralph Böhme wrote: > > > > > > Cheerio! > > > -slow > > > > Still reviewing this - but a few things that will need changing: > > > > When adding the
2006 Jul 12
1
updated samba-3.0.23/examples/pdb/test.c
...t;includes.h" static int testsam_debug_level = DBGC_ALL; #undef DBGC_CLASS #define DBGC_CLASS testsam_debug_level /*************************************************************** Start enumeration of the passwd list. ****************************************************************/ static NTSTATUS testsam_setsampwent(struct pdb_methods *methods, BOOL update, uint32 acb_mask) { DEBUG(10, ("testsam_setsampwent called\n")); return NT_STATUS_NOT_IMPLEMENTED; } /*************************************************************** End enumeration of the passwd list. **********************...
2007 Nov 02
0
[PATCH] PVWin: Fix warnings
...07 -0700 +++ b/common/include/evtchn_public.h Fri Nov 02 09:52:30 2007 -0700 @@ -21,7 +21,7 @@ DEFINE_GUID( GUID_XEN_IFACE_EVTCHN, 0xD2 //{D2D20756-DE69-4447-8A7D-9837197D6166} typedef evtchn_port_t -(*PXEN_EVTCHN_ALLOCUNBOUND)(int Domain); +(*PXEN_EVTCHN_ALLOCUNBOUND)(domid_t Domain); typedef NTSTATUS (*PXEN_EVTCHN_BIND)(evtchn_port_t Port, PKSERVICE_ROUTINE ServiceRoutine, PVOID ServiceContext); diff -r b26bdba50c41 common/include/hypercall.h --- a/common/include/hypercall.h Thu Nov 01 16:21:24 2007 -0700 +++ b/common/include/hypercall.h Fri Nov 02 09:52:30 2007 -0700 @@ -102,7 +102,7 @@ HYPER...
2006 Jun 27
1
iconv.c / static charset prototype/assembler bug?
Hi! I think there is a little bug in the current samba release (3.0.22). Take a look at cp850.c at the last line and you will see following definition: SMB_GENERATE_CHARSET_MODULE_8_BIT_GAP(CP850) Using the macros from charset.c, the preprocessor expands this to: NTSTATUS charset_CP850_init(void) \ { \ return smb_register_charset(&CP850_functions); \ } \ NTSTATUS is defined in nt_status.h as follows: typedef struct {uint32 v;} NTSTATUS; #define NT_STATUS(x) ((NTSTATUS) { x }) #define...
2009 Jan 30
5
ACLs under Samba 3.3.0
Is behavior of ACLs under Samba 3.3.0 (Sernet) completely different from that under version 3.2.7? The release notes only talks about some "fixes". I installed version 3.3.0 and got completely different result with the same filesystem and the exact same samba configuration. The ACLs behaved strangely and appeared very different under Windows ACL editor. Users were now unable to
2015 Jun 17
2
macos finder error 36 when copy folder to samba 4.2.2
...thout any files to my samba share. files alone work flawlessly. when i drag a folder from desktop to the share the finder errors out with error -36 but creates all folders. same happens when i copy an empty folder from the share to the share. macos log says: 16.06.15 17:19:54,000 kernel[0]: smb_ntstatus_error_to_errno: Couldn't map ntstatus (0xc0000225) to errno returning EIO 16.06.15 17:19:54,000 kernel[0]: smb2fs_smb_cmpd_set_info: Second close failed 9 16.06.15 17:19:54,000 kernel[0]: smb_ntstatus_error_to_errno: Couldn't map ntstatus (0xc0000225) to errno returning EIO appended a p...
2012 Apr 17
0
Problems with samba as PDC
...led keyboard-interactive/pam for invalid user testme from 192.168.1.3 port 16746 ssh2 Apr 16 12:42:44 dt0 sshd[81032]: pam_winbind(sshd): Verify user 'testme' Apr 16 12:42:44 dt0 sshd[81032]: pam_winbind(sshd): request wbcLogonUser failed: WBC_ERR_AUTH_ERROR, PAM error: PAM_AUTH_ERR (9), NTSTATUS: NT_STATUS_WRONG_PASSWORD, Error message was: Wrong Password Apr 16 12:42:44 dt0 sshd[81032]: pam_winbind(sshd): user 'testme' denied access (incorrect password or invalid membership) Apr 16 12:42:44 dt0 sshd[81029]: Failed keyboard-interactive/pam for invalid user testme from 192.168.1.3...
2015 Jun 18
2
macos finder error 36 when copy folder to samba 4.2.2
...ly. >> >> when i drag a folder from desktop to the share the finder errors out >> with error -36 but creates all folders. >> same happens when i copy an empty folder from the share to the share. >> >> macos log says: >> 16.06.15 17:19:54,000 kernel[0]: smb_ntstatus_error_to_errno: >> Couldn't map ntstatus (0xc0000225) to errno returning EIO >> 16.06.15 17:19:54,000 kernel[0]: smb2fs_smb_cmpd_set_info: Second >> close failed 9 >> 16.06.15 17:19:54,000 kernel[0]: smb_ntstatus_error_to_errno: >> Couldn't map ntstatus (0xc...
2016 Jan 06
1
wide links and privileges
...with_privilege(conn, smbreq, (*pp_smb_fname)->base_name); } ``` which redirects us to the `check_name` or the `check_name_with_privilege` function. which themselves respectively redirects to the `check_reduced_name` and `check_reduced_name_with_privilege` functions: source3/smbd/vfs.c: ``` NTSTATUS check_reduced_name(connection_struct *conn, const char *fname) [...] /* Common widelinks and symlinks checks. */ if (!allow_widelinks || !allow_symlinks) { [...] if (strncmp(conn_rootdir, resolved_name, rootdir_len) != 0) { DEBUG(2, ("check_reduced_n...
2016 Jan 06
3
wide links and privileges
...ame); > } > ``` > > which redirects us to the `check_name` or the > `check_name_with_privilege` function. > which themselves respectively redirects to the `check_reduced_name` and > `check_reduced_name_with_privilege` functions: > > source3/smbd/vfs.c: > ``` > NTSTATUS check_reduced_name(connection_struct *conn, const char *fname) > [...] > /* Common widelinks and symlinks checks. */ > if (!allow_widelinks || !allow_symlinks) { > [...] > if (strncmp(conn_rootdir, resolved_name, > rootdir_len) != 0) { >...
2016 Mar 09
0
mkdir-dup test flapping
...++++++++++++++++++++++++++-------------------- > 1 file changed, 64 insertions(+), 39 deletions(-) > > diff --git a/source3/smbd/open.c b/source3/smbd/open.c > index baebd7c..bc676f9 100644 > --- a/source3/smbd/open.c > +++ b/source3/smbd/open.c > @@ -3397,6 +3397,7 @@ static NTSTATUS open_directory(connection_struct *conn, > struct timespec mtimespec; > int info = 0; > bool ok; > + bool need_lstat = false; > > if (is_ntfs_stream_smb_fname(smb_dname)) { > DEBUG(2, ("open_directory: %s is a stream name!\n", > @@ -3502,25 +3503,9 @@ s...
2020 Jun 25
2
Compiling WMIC/Accessing WMI
Background: As of Windows 10 version 2004, the wmic client no longer works. It gets the following error - [wmi/wmic.c:196:main()] ERROR: Login to remote object. NTSTATUS: NT code 0x80010111 - NT code 0x80010111 This seems to be an RPC header error. Presumably Microsoft changed something that broke wmic. Since I found wmic.c in the samba source I thought that it might be able to be compiled as part of samba. However, I've found an old thread in this mailing...
2007 Feb 05
0
[SAMBA-SECURITY] CVE-2007-0452: Potential DoS against smbd in Samba 3.0.6 - 3.0.23d
...rce/smbd/reply.c --- samba-3.0.23d/source/smbd/reply.c 2006-06-23 08:16:49.000000000 -0500 +++ samba/source/smbd/reply.c 2007-01-30 15:00:45.000000000 -0600 @@ -1865,7 +1865,7 @@ Check if a user is allowed to delete a file. ********************************************************************/ -NTSTATUS can_delete(connection_struct *conn, char *fname, uint32 dirtype, BOOL bad_path, BOOL check_is_at_open) +NTSTATUS can_delete(connection_struct *conn, char *fname, uint32 dirtype, BOOL bad_path, BOOL check_is_at_open, BOOL can_defer) { SMB_STRUCT_STAT sbuf; uint32 fattr; @@ -1938,7 +1938,7 @@...
2007 Feb 05
0
[SAMBA-SECURITY] CVE-2007-0452: Potential DoS against smbd in Samba 3.0.6 - 3.0.23d
...rce/smbd/reply.c --- samba-3.0.23d/source/smbd/reply.c 2006-06-23 08:16:49.000000000 -0500 +++ samba/source/smbd/reply.c 2007-01-30 15:00:45.000000000 -0600 @@ -1865,7 +1865,7 @@ Check if a user is allowed to delete a file. ********************************************************************/ -NTSTATUS can_delete(connection_struct *conn, char *fname, uint32 dirtype, BOOL bad_path, BOOL check_is_at_open) +NTSTATUS can_delete(connection_struct *conn, char *fname, uint32 dirtype, BOOL bad_path, BOOL check_is_at_open, BOOL can_defer) { SMB_STRUCT_STAT sbuf; uint32 fattr; @@ -1938,7 +1938,7 @@...
2018 Feb 22
4
xfreerdp and SPNEGO failed
...this not exactly on topic, I'm hoping an expert or two could confirm that following is not caused somehow by samba: I try xfreerdp to connect to a Win10 which is a member of NT-style domain and it fails this way: [14:55:33:905] [8048:8055] [ERROR][com.freerdp.core.nla] - SPNEGO failed with NTSTATUS: 0xC0000017 [14:55:33:905] [8048:8055] [ERROR][com.freerdp.core] - freerdp_set_last_error ERRCONNECT_AUTHENTICATION_FAILED [0x00020009] [14:55:33:905] [8048:8055] [ERROR][com.freerdp.core.rdp] - rdp_recv_callback: CONNECTION_STATE_NLA - nla_recv_pdu() fail [14:55:33:905] [8048:8055] [ERROR][com...