summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-07-29Secod part of bugfix for bug #8335 - file copy aborts with ↵Jeremy Allison1-3/+24
smb2_validate_message_id: bad message_id Modify the credit granting algorithm to closer to what I believe Windows does. Split up max_credits into 1/16ths, and then scale the requested credits by how many 16ths have been currently granted. Less than 1/16th == grant all requested (100%), scale down as more have been granted. Never ask for less than 1 if the client asked for at least 1. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Jul 29 20:37:42 CEST 2011 on sn-devel-104
2011-07-29First part of bugfix for bug #8335 - file copy aborts with ↵Jeremy Allison2-2/+2
smb2_validate_message_id: bad message_id Set default max credits to 8192 now this has been documented in the SMB2 spec.
2011-07-29s3: Add a fallback for missing open&x support in OS/X LionVolker Lendecke1-19/+68
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Jul 29 17:55:20 CEST 2011 on sn-devel-104
2011-07-29s3: Make map_open_params_to_ntcreate() available in lib/Volker Lendecke4-154/+155
2011-07-29s3: Make is_executable() available in lib/Volker Lendecke4-18/+18
2011-07-29s3: We only need base_name in map_open_params_to_ntcreateVolker Lendecke4-9/+12
2011-07-29s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/Michael Adam50-53/+54
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jul 29 13:34:22 CEST 2011 on sn-devel-104
2011-07-29s3-waf: replace the dbwrap_util library by a dbwrap library that contains ↵Michael Adam1-5/+4
the dbwrap core
2011-07-29s3:dbwrap: move db_is_local() from dbwrap.c to dbwrap_open.cMichael Adam4-34/+33
2011-07-29s3:dbwrap: move db_open() to a file dbwrap_open.c of its own.Michael Adam33-78/+208
Also start new folder lib/dbwrap/ where dbwrap_open.c is stored and make the fallbacke implementation functoins non-static and create a dbwrap_private.h header file that contains their prototypes.
2011-07-29s3:g_lock: explicitly include dbwrap.hMichael Adam1-0/+1
2011-07-29s3:modules:nfs4_acls: fix the include of dbwrap.h to not include "include/"Michael Adam1-1/+1
2011-07-29s3:dbwrap: explicitly include dbwrap.h in dbwrap_ctdb.cMichael Adam1-0/+1
This used to come in via g_lock.h Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
2011-07-29talloc: added test suite for talloc_free_children()Andrew Tridgell1-0/+44
this tests the fix from Simo Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Jul 29 11:30:13 CEST 2011 on sn-devel-104
2011-07-29talloc: preserve context name on talloc_free_children()Simo Sorce1-0/+23
Otherwise tc->name will end up pointing to garbage when it is not set to a const but rather to a string allocate as child of the context itself. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-29samba-tool: use ldb.binary_encode() on search expression elementsAndrew Tridgell9-24/+27
this allows us to deal with search elements containing characters that must be escaped in LDAP Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-07-29samba-tool: fixed binary encoding of usernames in setpasswordAndrew Tridgell1-2/+2
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-07-29pyldb: added binary_encode() and binary_decode() methodsAndrew Tridgell2-0/+57
this gives access to RFC2254 encoding from python Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-07-29ldb: added a test for an invalid search expressionAndrew Tridgell1-0/+3
this tests the fix for invalid expressions in & and | expressions Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-07-29ldb: fixed a search expression parse bugAndrew Tridgell1-1/+11
when a secondary component of a & or | expression was invalid, it was ignored rather than giving an error. For example: (|(objectclass=user)(samaccountname=foo\blah)) was treated as being: (objectclass=user) whereas it should be an error, as foo\blah is invalid Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-07-29s4-auth Fill in the remainder of the unix info in auth_session_infoAndrew Bartlett2-5/+45
Signed-off-by: Andrew Tridgell <tridge@samba.org> Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Jul 29 05:33:03 CEST 2011 on sn-devel-104
2011-07-29s4-auth Move conversion of security_token to unix_token to authAndrew Bartlett8-61/+129
This allows us to honour the AUTH_SESSION_INFO_UNIX_TOKEN flag. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-29gensec: Add a way to request a unix token from GENSECAndrew Bartlett3-5/+14
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-29ntvfs: Use security_unix_token from auth.idlAndrew Bartlett1-24/+16
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-29s3-selftest Add tests for 'map to guest = bad user'Andrew Bartlett2-1/+36
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-29selftest: Avoid being run over by armies of the undeadAndrew Bartlett1-0/+2
Ignore SIGCHILD to reap zombies Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-29nbt: Add comment explaining that these responses are manually encodedAndrew Bartlett1-1/+5
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-29selftest: explain how the message command test worksAndrew Bartlett2-0/+3
2011-07-29s4-lsa Use the supplied handle in LsaLookupNames2Andrew Bartlett1-5/+5
In my rework of this function in 2006 with 459a2301a5d63f5a1a6b27996c8a0358b20f2ab2 I ignored the incoming handle, instead feching the LSA state again (dispite the commit message indicating otherwise). This means that data->access_mask is uninitialised, which doesn't matter right now, but will once we start checking that. Andrew Bartlett
2011-07-29s4-debug: Start with DEBUG_DEFAULT_STDOUT, so we can log to a file in deamonsAndrew Bartlett1-1/+1
In commit 3c9d01e3e58e2217915317406541ac8c6f6dcf92 I changed the priority order and added DEBUG_DEFAULT_STDOUT, but did not check all the callers. Andrew Bartlett
2011-07-28s3-printing: Add forward declaration for dcerpc_binding_handle.Andreas Schneider1-0/+2
This fixes a build warning. Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Jul 28 20:07:37 CEST 2011 on sn-devel-104
2011-07-28s3: Priorize the async echo responder over the clientVolker Lendecke1-4/+15
Without this, an active client connection can starve the echo responder. This leads to apparently "lost" SMBs. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Jul 28 18:53:38 CEST 2011 on sn-devel-104
2011-07-28tevent: Slightly simplify poll_event_loop_pollVolker Lendecke1-33/+38
No real code change. Do an early return instead of an if-statement, avoiding one level of indentation.
2011-07-28s3: Remove unused smbd_echo_reader()Volker Lendecke1-97/+0
2011-07-28s3: Use smbd_echo_read_send in the async echo handlerVolker Lendecke1-6/+68
2011-07-28s3: Add smbd_echo_read_send/recvVolker Lendecke1-0/+155
Read a SMB packet in the echo responder, giving the parent one second to step in
2011-07-28Add wait_for_read_send/recvVolker Lendecke2-0/+60
Wait for readability of a socket as a tevent_req
2011-07-28s3-rpc_server: Use talloc for pipe_rpc_fnsSimo Sorce3-22/+7
Everything uses talloc in the rpc server nowadays, remove this ancient use of malloc. This also allows us to remove the free fucntion and let talloc handle it properly. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Thu Jul 28 17:41:08 CEST 2011 on sn-devel-104
2011-07-28s3-rpc_server: remove useless codeSimo Sorce1-3/+1
We do not reuse pies_struct so there is no reason to SERO_STRUCT() it when we are freeing it as we are done using it anyways.
2011-07-28s3-rpc_server: remove unnecessary talloc_freeSimo Sorce1-2/+0
The auth_ctx is a child of pipes_struct, and this function is a used only as a destructor on pipes_struct. So it is not really necessary to free this struct in the destructor as it will be freed soon enough anyway.
2011-07-28s3-rpc_server: Remove dead codeSimo Sorce1-16/+0
srv_str and cli_str are not used anymore.
2011-07-28s3-spoolss: Use existing handle in printer_driver_files_in_use().Andreas Schneider3-17/+4
Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Jul 28 16:20:11 CEST 2011 on sn-devel-104
2011-07-28s3-spoolss: Use existing handle in printer_driver_in_use().Andreas Schneider3-20/+5
2011-07-28s3: In the async echo test, write 65kVolker Lendecke1-1/+1
This leads to the writev from echo responder child to parent to only deliver a partial blob and thus excercises the retry code. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Jul 28 15:07:40 CEST 2011 on sn-devel-104
2011-07-28s3:modules:nfs4_acls: improve fix for bug #8330Michael Adam1-4/+2
simplify the check insmbacl4_find_equal_special() Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Jul 28 13:20:38 CEST 2011 on sn-devel-104
2011-07-28s3:torture: use lp_load_global() in pdbtest - this does not need shares nor IPC$Michael Adam1-1/+1
2011-07-28s3:winbindd: use lp_load_global() - winbindd does not need shares or IPC$Michael Adam1-1/+1
2011-07-28s3:smbstatus: use lp_load_global() - smbstatus does not need to load shares!Michael Adam1-1/+1
2011-07-28s3:split_tokens: use lp_load_global(), fixing the call to lp_load()Michael Adam1-1/+1
this does not need share and it dos not need to save defaults
2011-07-28s3:split_tokens: fix a nonempty blank lineMichael Adam1-1/+1