Günther Deschner
447fe57584
s3-samr: cosmetic fixes for _samr_QueryDisplayInfo.
...
use the variables of the struct samr_QueryDisplayInfo directly to make
it easier to track where variables are defined from.
Guenther
2009-06-07 00:53:28 +02:00
Volker Lendecke
afbe383c40
Attempt to fix the build without system-ldap.
...
I really tried, but I knew I would miss something... :-)
2009-06-06 15:32:30 +02:00
Karolin Seeger
c94d1cd7b1
s3/passdb: Fix debug message: 'net setmaxrid' does not exist.
...
This is aiming bug #6351 .
Karolin
2009-06-06 15:11:16 +02:00
Volker Lendecke
23b501e02a
Add an early prototyp of pdb_ads.c.
...
The purpose of this module is to connect to a locally running samba4 ldap
server for an alternative "Franky" setup. Right now it contains a couple of
gross hacks: For example it just takes the s4-chosed RID directly as uid/gid...
Checking in tldap and pdb_ads now, I think 3777 insertions are enough for a
start...
2009-06-06 13:10:30 +02:00
Volker Lendecke
1769c8d81b
Add some samba-style tldap utility functions
2009-06-06 13:10:30 +02:00
Volker Lendecke
7194937eea
Add the early start of an async ldap library
...
There's a lot of things this does not do yet: For example it does not parse the
reply blob in the sasl bind, it does not do anything with controls yet, a lot
of the ldap requests are not covered yet. But it provides a basis for me to
play with a pdb_ads passdb module.
2009-06-06 13:10:30 +02:00
Stefan Metzmacher
0e261d0e9c
s3:smbd: FSCTL_PIPE_TRANSCEIVE on a none IPC$ share should give NOT_SUPPORTED
...
metze
2009-06-06 11:01:44 +02:00
Stefan Metzmacher
21ac549e96
s3:smbd: return the same things as Windows 7 for SMB2 Ioctl responses
...
metze
2009-06-06 11:01:43 +02:00
Volker Lendecke
3cd03b229b
Allow AF_UNIX for open_socket_out
2009-06-06 10:42:54 +02:00
Günther Deschner
f19c9147a5
s3-winbindd: add some debug statements while tracking down a bug.
...
Guenther
2009-06-06 02:00:36 +02:00
Jeremy Allison
64a1f17aff
Make cli_ftruncate async. Also add a simple test.
...
Jeremy.
2009-06-05 16:06:05 -07:00
Stefan Metzmacher
4f56d87cc8
s3:smbd: split smbd_smb2_flush() into a tevent_req based _send()/_recv() pair
...
metze
2009-06-05 21:38:36 +02:00
Stefan Metzmacher
d5e4463266
s3:smbd: split smbd_smb2_create() into a tevent_req based _send()/_recv() pair
...
metze
2009-06-05 21:09:05 +02:00
Stefan Metzmacher
b25227a177
s3:smbd: fix the build in smb2_ioctl.c
...
metze
2009-06-05 21:05:40 +02:00
Stefan Metzmacher
140fe782a9
s3:smbd: add support for SMB2 Ioctl FSCTL_DFS_GET_REFERRALS
...
metze
2009-06-05 20:17:45 +02:00
Stefan Metzmacher
d1db140a73
s3:smbd: add support for STATUS_BUFFER_OVERFLOW to SMB2 Ioctl
...
metze
2009-06-05 20:17:44 +02:00
Stefan Metzmacher
76acd7bfad
s3:smbd: keep the chain_fsp for SMB2 requests
...
metze
2009-06-05 20:17:43 +02:00
Stefan Metzmacher
ee83d1aead
s3:smbd: fix the logic for compounded requests
...
metze
2009-06-05 20:17:43 +02:00
Stefan Metzmacher
014ee5d0c2
s3:smbd: only setup the dyn iovec if a a dyn blob is given
...
Otherwise leave the default in there, which takes care of
padding for compounded requests.
metze
2009-06-05 20:17:42 +02:00
Stefan Metzmacher
a3e328859b
s3:smbd: add support for SMB2 Ioctl FSCTL_PIPE_TRANSCEIVE on IPC$
...
metze
2009-06-05 17:53:49 +02:00
Stefan Metzmacher
4a64df164a
s3:smbd: add support for SMB2 Read on IPC$
...
metze
2009-06-05 17:53:23 +02:00
Stefan Metzmacher
fb750d8bcb
s3:smbd: add support for SMB2 Write on IPC$
...
metze
2009-06-05 17:53:23 +02:00
Stefan Metzmacher
f6cc5db0f2
s3:smbd: add support for SMB2 Create on IPC$
...
metze
2009-06-05 17:53:23 +02:00
Stefan Metzmacher
fabdebdcf4
s3:smbd: add support for SMB2 Ioctl
...
We don't implement any level yet.
metze
2009-06-05 17:50:48 +02:00
Stefan Metzmacher
d960057312
s3:smbd: add missing return statements to the SMB2 write error cases
...
metze
2009-06-05 14:32:50 +02:00
Stefan Metzmacher
f40b9ed8e9
s3:smbd: add missing return statements to the SMB2 read error cases
...
metze
2009-06-05 14:32:49 +02:00
Stefan Metzmacher
360c3c4a80
s3:smbd: split smbd_smb2_write() into tevent_req based *_send()/_recv() functions
...
metze
2009-06-05 13:02:05 +02:00
Stefan Metzmacher
7a0895b8e8
s3:smbd: split smbd_smb2_read() into tevent_req based *_send()/_recv() functions
...
metze
2009-06-05 13:00:33 +02:00
Stefan Metzmacher
1b806d83b7
s3:smbd: make smbd_server_connection_terminate() a macro
...
metze
2009-06-05 11:31:15 +02:00
Stefan Metzmacher
160ead46dc
s3:smbd: implement smbd_smb2_request_error/done() as macros on top of the _ex() function
...
metze
2009-06-05 11:31:03 +02:00
Stefan Metzmacher
96de8766fc
s3:smbd: add support for printers to SMB2 Create
...
This is not tested, but the code looks like the
for SMB1, so it's likely to work:-)
metze
2009-06-05 10:50:17 +02:00
Slava Semushin
ecd1fe2456
source3/torture/vfstest.c(process_file): fixed file descriptor leak.
...
Found by cppcheck:
[./source3/torture/vfstest.c:400]: (error) Resource leak: file
2009-06-05 10:17:09 +02:00
Volker Lendecke
53f007193f
Fix a couple of warnings in log2pcaphex.c
2009-06-05 10:12:11 +02:00
Volker Lendecke
c8d63d47cd
Fix bug 6392: Exit log2pcaphex if a requested output file can't be opened
...
Thanks to Slava Semushin <php-coder@altlinux.org> for reporting!
2009-06-05 10:12:11 +02:00
Jelmer Vernooij
b65ba0e26c
clikrb5: Prefer krb5_free_keytab_entry_contents to krb5_kt_free_entry.
...
Both functions exist in MIT Kerberos >= 1.7, but only
krb5_free_keytab_entry_contents has a prototype.
2009-06-04 23:43:31 +02:00
Stefan Metzmacher
7f097368ed
s3:smbd: ignore NTCREATEX_OPTIONS_SYNC_ALERT and NTCREATEX_OPTIONS_ASYNC_ALERT for SMB2 Create
...
This should make the Windows Explorer happier.
metze
2009-06-04 22:41:17 +02:00
Stefan Metzmacher
e545b253d8
s3:smbd: call set_current_service() when a SMB2 tcon will be used
...
metze
2009-06-04 22:41:17 +02:00
Stefan Metzmacher
427235eb0e
s3:smbd: fix potential fsp leak if print_fsp_open() fails
...
metze
2009-06-04 22:41:16 +02:00
Björn Jacke
e1eb48bc6b
s3: map NetBSD's errno on posix open calls for symlinks
...
This is well undocumented but NetBSD returns EFTYPE on O_NOFOLLOW open calls on
symlinks.
2009-06-04 22:09:10 +02:00
Jeremy Allison
73e3c85aba
Change smbd_smb2_request_error() to add a __location__.
...
This allows quick identification of smb2 parsing errors.
Jeremy.
2009-06-04 12:47:17 -07:00
Jeremy Allison
e53ca4845e
Add NTLMSSP SPNEGO to smb2 auth. Tested with Win7.
...
Jeremy.
2009-06-04 11:14:20 -07:00
Jeremy Allison
ba4d51c521
Fix bug #2356 - smbclient -t <term code> no longer works.
...
Removed code and docs.
Jeremy.
2009-06-03 09:44:49 -07:00
Björn Jacke
7cdad30b96
s3: correct check for usleep value boundaries
2009-06-03 18:06:43 +02:00
Stefan Metzmacher
bfd1f5ddc6
s3:smbd: implement SMB2 Write
...
This only works on file shares.
metze
2009-06-03 17:54:40 +02:00
Stefan Metzmacher
4101f539bf
s3:smbd: implement SMB2 Read
...
This only works works on file shares.
metze
2009-06-03 17:54:40 +02:00
Stefan Metzmacher
0ccef51cbe
s3:smbd: implement SMB2 Flush
...
This works only on file shares yet.
metze
2009-06-03 17:54:40 +02:00
Stefan Metzmacher
ec0553bb6e
s3:smbd: implement SMB2 Close
...
metze
2009-06-03 17:54:40 +02:00
Stefan Metzmacher
261c59e3a1
s3:smbd: implement a simple version of SMB2 Create
...
It only work on file shares and
just ignores any additional Create Context Values.
metze
2009-06-03 17:54:39 +02:00
Stefan Metzmacher
cfc8d4a1f4
s3:smbd: add smbd_smb2_fake_smb_request()
...
metze
2009-06-03 17:54:39 +02:00
Stefan Metzmacher
4b14ebb91d
s3:smbd: return more details in the SMB2 Tree Connect response
...
metze
2009-06-03 17:54:39 +02:00