summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* talloc: added test suite for talloc_free_children()Andrew Tridgell2011-07-291-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
* talloc: preserve context name on talloc_free_children()Simo Sorce2011-07-291-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>
* samba-tool: use ldb.binary_encode() on search expression elementsAndrew Tridgell2011-07-299-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>
* samba-tool: fixed binary encoding of usernames in setpasswordAndrew Tridgell2011-07-291-2/+2
| | | | | Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* pyldb: added binary_encode() and binary_decode() methodsAndrew Tridgell2011-07-292-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>
* ldb: added a test for an invalid search expressionAndrew Tridgell2011-07-291-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>
* ldb: fixed a search expression parse bugAndrew Tridgell2011-07-291-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>
* s4-auth Fill in the remainder of the unix info in auth_session_infoAndrew Bartlett2011-07-292-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
* s4-auth Move conversion of security_token to unix_token to authAndrew Bartlett2011-07-298-61/+129
| | | | | | | | This allows us to honour the AUTH_SESSION_INFO_UNIX_TOKEN flag. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* gensec: Add a way to request a unix token from GENSECAndrew Bartlett2011-07-293-5/+14
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ntvfs: Use security_unix_token from auth.idlAndrew Bartlett2011-07-291-24/+16
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-selftest Add tests for 'map to guest = bad user'Andrew Bartlett2011-07-292-1/+36
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* selftest: Avoid being run over by armies of the undeadAndrew Bartlett2011-07-291-0/+2
| | | | | | | | Ignore SIGCHILD to reap zombies Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* nbt: Add comment explaining that these responses are manually encodedAndrew Bartlett2011-07-291-1/+5
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* selftest: explain how the message command test worksAndrew Bartlett2011-07-292-0/+3
|
* s4-lsa Use the supplied handle in LsaLookupNames2Andrew Bartlett2011-07-291-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
* s4-debug: Start with DEBUG_DEFAULT_STDOUT, so we can log to a file in deamonsAndrew Bartlett2011-07-291-1/+1
| | | | | | | In commit 3c9d01e3e58e2217915317406541ac8c6f6dcf92 I changed the priority order and added DEBUG_DEFAULT_STDOUT, but did not check all the callers. Andrew Bartlett
* s3-printing: Add forward declaration for dcerpc_binding_handle.Andreas Schneider2011-07-281-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
* s3: Priorize the async echo responder over the clientVolker Lendecke2011-07-281-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
* tevent: Slightly simplify poll_event_loop_pollVolker Lendecke2011-07-281-33/+38
| | | | | No real code change. Do an early return instead of an if-statement, avoiding one level of indentation.
* s3: Remove unused smbd_echo_reader()Volker Lendecke2011-07-281-97/+0
|
* s3: Use smbd_echo_read_send in the async echo handlerVolker Lendecke2011-07-281-6/+68
|
* s3: Add smbd_echo_read_send/recvVolker Lendecke2011-07-281-0/+155
| | | | | Read a SMB packet in the echo responder, giving the parent one second to step in
* Add wait_for_read_send/recvVolker Lendecke2011-07-282-0/+60
| | | | Wait for readability of a socket as a tevent_req
* s3-rpc_server: Use talloc for pipe_rpc_fnsSimo Sorce2011-07-283-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
* s3-rpc_server: remove useless codeSimo Sorce2011-07-281-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.
* s3-rpc_server: remove unnecessary talloc_freeSimo Sorce2011-07-281-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.
* s3-rpc_server: Remove dead codeSimo Sorce2011-07-281-16/+0
| | | | srv_str and cli_str are not used anymore.
* s3-spoolss: Use existing handle in printer_driver_files_in_use().Andreas Schneider2011-07-283-17/+4
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Jul 28 16:20:11 CEST 2011 on sn-devel-104
* s3-spoolss: Use existing handle in printer_driver_in_use().Andreas Schneider2011-07-283-20/+5
|
* s3: In the async echo test, write 65kVolker Lendecke2011-07-281-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
* s3:modules:nfs4_acls: improve fix for bug #8330Michael Adam2011-07-281-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
* s3:torture: use lp_load_global() in pdbtest - this does not need shares nor IPC$Michael Adam2011-07-281-1/+1
|
* s3:winbindd: use lp_load_global() - winbindd does not need shares or IPC$Michael Adam2011-07-281-1/+1
|
* s3:smbstatus: use lp_load_global() - smbstatus does not need to load shares!Michael Adam2011-07-281-1/+1
|
* s3:split_tokens: use lp_load_global(), fixing the call to lp_load()Michael Adam2011-07-281-1/+1
| | | | this does not need share and it dos not need to save defaults
* s3:split_tokens: fix a nonempty blank lineMichael Adam2011-07-281-1/+1
|
* s3: use lp_load_global() in smbw_sample -- whatever this is ... :-)Michael Adam2011-07-281-1/+1
|
* s3:smbtree: use lp_load_global()Michael Adam2011-07-281-1/+1
|
* s3:smbpasswd: use lp_load_global()Michael Adam2011-07-281-1/+1
|
* s3:smbfilter: use lp_load_global()Michael Adam2011-07-281-1/+1
|
* s3:smbcquotas: use lp_load_global()Michael Adam2011-07-281-1/+1
|
* s3:smbcontrol: use lp_load_global(): smbcontrol does not need to load the sharesMichael Adam2011-07-281-1/+1
|
* s3:smbcacls: use lp_load_global()Michael Adam2011-07-281-1/+1
|
* s3:pdbedit: use lp_load_global()Michael Adam2011-07-281-1/+1
|
* s3:ntlm_auth: use lp_load_global()Michael Adam2011-07-281-1/+1
|
* s3:nmblookup: use lp_load_global()Michael Adam2011-07-281-1/+1
|
* s3:net: use lp_load_global()Michael Adam2011-07-281-1/+1
|
* s3:eventlogadm: use lp_load_global()Michael Adam2011-07-281-2/+2
|
* s3:dbwrap_torture: use lp_load_global()Michael Adam2011-07-281-1/+1
|