Andrew Bartlett
2050187673
s3:libads Make ads_get_dn() take a talloc context
...
Also remove ads_memfree(), which was only ever a wrapper around
SAFE_FREE, used only to free the DN from ads_get_ds().
This actually makes libgpo more consistant, as it mixed a talloc and a
malloc based string on the same element.
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-06 15:54:41 +02:00
Stefan Metzmacher
9d9f945281
tsocket: use the correct 'ret' variable for tdgram_disconnect_send/recv()
...
metze
2009-04-06 15:49:08 +02:00
Andrew Bartlett
89278b1819
s3:printing Convert nt_printer_publish_ads() to use talloc better
...
In particular, this removes one more user of pull_utf8_allocate()
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-06 14:56:29 +02:00
Andrew Bartlett
9512640155
s3:smbldap Remove smbldap_get_dn
...
This removes one more caller to pull_utf8_allocate()
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-06 14:52:51 +02:00
Volker Lendecke
a2d5fe4a05
Make some functions static to vfs_gpfs.c
2009-04-06 13:29:59 +02:00
Volker Lendecke
f2e17a4b24
Add prototype for smbd_gpfs_get_realfilename_path
2009-04-06 13:29:59 +02:00
Volker Lendecke
54c2fe6583
Fix two c++ warnings in vfs_gpfs.c
2009-04-06 13:29:59 +02:00
Günther Deschner
2b1fe2c98f
s3-examples: Fix Bug #6205 . Correct sample smb.conf share configuration.
...
Thanks to Jeffrey Riaboy <dakusan@castledragmire.com>.
Guenther
2009-04-06 12:47:41 +02:00
Jelmer Vernooij
213249ceab
Improve formatting in Python file.
2009-04-06 00:25:08 +02:00
Jelmer Vernooij
b1db78c595
Make valid_netbios_name() check a bit stricter.
2009-04-06 00:25:03 +02:00
Volker Lendecke
15f6d5e805
Use the server config file for smbpasswd -a user in make test
...
Without this, smbpasswd generated a SID for the netbios name TORTURE_6. This SID
somehow ended up in the user's token for quite a number of tests, leading to
NT_STATUS_ACCESS_DENIED. I haven't fully understood what is going on here, but
with this patch I could not reproduce the ACCESS_DENIED anymore. It might be
coincidence and this patch does not fix anything, but for me it does not really
hurt either.
Metze, please check!
Volker
2009-04-05 17:31:40 +02:00
Volker Lendecke
e5c7df34f2
Remove a silly check
...
This does not increase security, and if later error messages suck, we have to
fix those.
2009-04-05 17:04:28 +02:00
Volker Lendecke
ba408a2c82
Remove async_req dependency from cli_pull_trans
2009-04-05 16:07:41 +02:00
Volker Lendecke
3b0572bf91
Fix smbd crash for close_on_completion
...
handle_trans() can talloc_free "conn" if the client requests
close_on_completion. "state" is a talloc_child of conn, so it will be gone when
we later free state->data et al.
2009-04-05 14:34:14 +02:00
Volker Lendecke
0421fa90ce
Keep the forked-smbd stdout reader around longer
2009-04-05 13:52:46 +02:00
Volker Lendecke
6d760a4a9f
Ensure 0-termination for the forked-smbd debug output
2009-04-05 13:52:46 +02:00
Volker Lendecke
ac4c319ed7
Pass the current debuglevel down to the forked smbd
2009-04-05 13:52:46 +02:00
Volker Lendecke
d3825d5d10
Use recv instead of read in read_packet_handler
...
This way the socket wrapper pcap file also sees the replies :-)
2009-04-05 13:45:15 +02:00
Günther Deschner
df29f49edd
s3-samr: add support for setting password hashes via samr_SetUserInfo level 21.
...
Guenther
2009-04-03 13:14:26 +02:00
Günther Deschner
43372b2740
s3-nsswitch: Fix Bug #6238 2nd part. zero blob pointer in wbcLogoffUserParams.
...
Patch from Rashid N. Achilov <citycat4@ngs.ru>.
Guenther
2009-04-03 12:53:35 +02:00
Volker Lendecke
7ee4f168d8
Use cluster-aware procid_is_me instead of comparing pid's
2009-04-03 12:19:20 +02:00
Volker Lendecke
b63cd72ae4
Use procid_str in debug messages for better cluster-debuggability
2009-04-03 12:19:20 +02:00
Günther Deschner
09265bcff5
s3-nsswitch: Fix Bug #6238 . Make sure logoff is bla bla.
...
Fix inspired by patch from Rashid N. Achilov <citycat4@ngs.ru>.
Guenther
2009-04-03 09:57:53 +02:00
Günther Deschner
621d40332a
s3-build: fix the build after tsocket changes.
...
Metze, please check.
Guenther
2009-04-03 00:30:58 +02:00
Günther Deschner
31ab1d6a64
s3-lsa: use LSA_ROLE definitions in _lsa_QueryInfoPolicy().
...
Guenther
2009-04-02 22:52:52 +02:00
Günther Deschner
168eb23252
s3-lsa: don't SAFE_FREE talloced structs.
...
Guenther
2009-04-02 22:50:44 +02:00
Stefan Metzmacher
3bbad34a02
tsocket: remove DGRAM support from tsocket_context
...
metze
2009-04-02 21:54:08 +02:00
Stefan Metzmacher
7e1411b5c7
libcli/cldap: convert to tsocket_* function to tdgram_*
...
metze
2009-04-02 21:54:02 +02:00
Stefan Metzmacher
c59ee5a139
tsocket: optimize tdgram_bsd a lot
...
The desire is to do as less syscalls during the
tdgram_sendto_send/recv() and tdgram_recvfrom_send/recv()
operations.
1. we first try the sendto()/recvfrom() syscall and
only use a fd event if we got EAGAIN.
2. we cache the fd event and only change it's flags
if really needed.
For the highload case we do almost no epoll_ctl() and epoll_wait()/select()
syscalls anymore. This speeds up the LDAP-BENCH-CLDAP test
by more than 20%. (With a modified version of this test
which let the server skip any ldb calls and just return success
I'm getting about 8000 requests per second, while I'm getting
just about 6000 requests per second without optimization)
metze
2009-04-02 21:54:00 +02:00
Stefan Metzmacher
85742dbc06
tsocket: add tdgram_sendto_queue_send/recv()
...
metze
2009-04-02 21:53:59 +02:00
Stefan Metzmacher
8d98070a9f
tsocket: split out a smaller tdgram_context abstraction
...
The idea is to have a tdgram and a tstream abstraction
which only provide tevent_req based io functions.
metze
2009-04-02 21:53:03 +02:00
Günther Deschner
37aff885a6
s3-spoolss: implement _spoolss_GetPrinterDriver2 level 101 (Bug #5140 ).
...
Guenther
2009-04-02 12:46:04 +02:00
Zack Kirsch
108cf27bb1
s4 torture: Addition to RAW-BENCH-LOCK to take a configurable number of locks before starting the test
...
This can be useful for benchmarking as well as stress testing.
2009-04-01 20:59:52 -07:00
Zach Loafman
9d95f8704d
s/NT_STATUS_WIN7_INVALID_RANGE/NT_STATUS_INVALID_LOCK_RANGE/g
2009-04-01 20:59:52 -07:00
Jeremy Allison
c57b32c5ab
Allow pdbedit to change a user rid/sid. Based on a fix from Alexander Zagrebin <alexz@visp.ru>.
...
Jeremy.
2009-04-01 20:21:02 -07:00
Jeremy Allison
1258ed8b1c
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
2009-04-01 20:20:44 -07:00
Tim Prouty
87fe4d732d
s3 onefs: Quiet a log message about oplocks being requested on streams
2009-04-01 20:06:18 -07:00
Tim Prouty
f92140b716
s4 torture: Remove unused parameter
2009-04-01 20:02:31 -07:00
Tim Prouty
5000640bf4
s4 torture: Add new streams oplock test
2009-04-01 20:02:31 -07:00
Michael Adam
36c1a52a57
s3:net conf: don't store share names as lower case, but as given.
...
Michael
2009-04-02 00:30:13 +02:00
Jeremy Allison
aef0bdc6a1
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
2009-04-01 14:03:17 -07:00
Günther Deschner
01a942d8ab
s3-auth: rename static smb_create_user(). Sorry...
...
Guenther
2009-04-01 21:44:14 +02:00
Günther Deschner
5cdf75e679
s3-libnet-samsync: return appropriate error code in fetch_sam_entry().
...
Guenther
2009-04-01 19:12:19 +02:00
Günther Deschner
e18f57fd36
s3-libnet-samsync: use smb_create_user().
...
Guenther
2009-04-01 19:12:19 +02:00
Günther Deschner
d0e1ff4aff
s3-passdb: add smb_create_user().
...
Guenther
2009-04-01 19:12:19 +02:00
Günther Deschner
e4802bfcad
s3-libnet-samsync: some pure cosmetics.
...
Guenther
2009-04-01 19:12:19 +02:00
Günther Deschner
af78240cbe
s3-libnet-samsync: use parent talloc context for libnet_samsync_passdb.
...
Guenther
2009-04-01 19:12:18 +02:00
Jeremy Allison
eaddcfef1b
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
2009-04-01 09:16:41 -07:00
Zach Loafman
91e75ea8f6
s4:torture/smb2: Add torture tests for lease breaks, durable opens.
2009-04-01 08:30:25 -07:00
Zach Loafman
afa71fbad9
s4:smb2: Add lease break support for SMB2.1
...
Add the structures and marshalling for the lease break variants of the
oplock break / oplock break ack messages.
2009-04-01 08:30:25 -07:00