summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* s3-dcerpc: Unifiy cli_pipe_auth_data and pipe_auth_dataSimo Sorce2010-07-205-71/+71
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-auth: Add auth_ntlmssp wrapper for client sideSimo Sorce2010-07-202-0/+75
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-auth: Move auth_ntlmssp wrappers in their own fileSimo Sorce2010-07-209-103/+194
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-auth: Refactor and rename auth_ntlmssp_server_info()Simo Sorce2010-07-205-17/+20
| | | | | | | | | Rename it to auth_ntlmssp_steal_server_info() to make it clear that the server_info struct is stolen from the auth_ntlmssp_state structure. Use talloc_move instead of manual steal&clear Add comments to explain what is going on. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Remove gen_negTokenInit() - change all callers to spnego_gen_negTokenInit().Jeremy Allison2010-07-196-61/+28
| | | | | | | We now have one function to do this in all calling code. More rationalization to follow. Jeremy.
* Move the addition of the 16 byte guid out of spnego_gen_negTokenInit() andJeremy Allison2010-07-195-32/+37
| | | | | | | | into negprot_spnego() where it belongs (it's not an SPNEGO operation). Add a TALLOC_CTX for callers of negprot_spnego(). Closer to unifying all the gen_negTokenXXX calls. Jeremy.
* Remove parse_negTokenTarg(), as it's actually incorrect. We're processingJeremy Allison2010-07-196-80/+30
| | | | | | negTokenInit's here. Use common code in spnego_parse_negTokenInit(). Jeremy.
* Fix [Bug 7577] SPNEGO auth fails when contacting Win7 system using Microsoft ↵Jeremy Allison2010-07-191-7/+54
| | | | | | | Live Sign-in Assistant Based on code from <david.kondrad@legrand.us>. Cope with every NegTokenInit ::= SEQUENCE value. Jeremy.
* s3: Avoid pwrite calls for the 1-byte writes with zero contentVolker Lendecke2010-07-191-4/+50
| | | | | | | | | When a write cache is empty and we write one 0, there is no point in actually writing into the write cache, which would trigger a potentially superfluous write cache flush. We can rely on posix semantics to give us 0's when subsequent read calls want to read from file areas not written yet. Jeremy, please check!
* s3-auth: Remove unused variable.Simo Sorce2010-07-191-2/+0
| | | | It was a spurious remnant after a rebase.
* Merge branch 'master' of ssh://git.samba.org/data/git/sambaSimo Sorce2010-07-1944-350/+617
|\
| * waf: make the error msg when gen_ndr directory is missing clearerAndrew Tridgell2010-07-191-0/+7
| | | | | | | | | | the next time someone removes gen_ndr/README the fix should be more obvious.
| * waf-idl: put the gen_ndr/README file for source3 backAndrew Tridgell2010-07-193-0/+10
| | | | | | | | | | This was removed by 100d37fc4624690423f6a932709b3f9046d05c64, probably accidentially.
| * s3-rpc_server: Added callbacks for init and shutdown of a rpc service.Andreas Schneider2010-07-196-17/+97
| | | | | | | | | | | | This adds two callback function for each rpc service. One is for initialisation and the other for shutdown. rpc_<service>_unregister() needs to be called to execute the shutdown function.
| * s3-rpc_server: Don't register the same rpc commands twice.Andreas Schneider2010-07-191-6/+4
| |
| * s3-docs: Add more verbose description of "log writeable files on exit".Volker Lendecke2010-07-191-4/+11
| |
| * s3-docs: Add more verbose description of "ctdb locktime warn threshold".Volker Lendecke2010-07-191-7/+19
| |
| * s3-docs: Add more verbose description of "username map cache time".Volker Lendecke2010-07-191-7/+16
| |
| * s3-docs: Remove older documentation of smb2 parameters.Karolin Seeger2010-07-193-39/+0
| | | | | | | | | | | | | | Jeremy, these parameters were already documented. My fault. Sorry for the noise! Karolin
| * s4: Remove trailing whitespacesKamen Mazdrashki2010-07-192-13/+13
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * ldb: Mark _DEPRECATED_ ldb_msg_diff() and ldb_msg_canonicalize() functionsKamen Mazdrashki2010-07-191-2/+28
| | | | | | | | | | | | | | | | They are not quite safe to use (requires caller to steal resulting message in own context) and may lead to holding memory for too long. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s4-dsdb: use ldb_msg_normalize() in ldb_msg_difference()Kamen Mazdrashki2010-07-191-6/+8
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s4-test: Use ldb_msg_normalize() in sqlite3 backendKamen Mazdrashki2010-07-191-4/+13
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s4-test: Use ldb_msg_normalize() in torture/rpc/dssync.c testKamen Mazdrashki2010-07-191-2/+4
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s4-dsdb: use ldb_msg_normalize() in ldbadd-process_file()Kamen Mazdrashki2010-07-191-1/+9
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s4-dsdb: use ldb_msg_normalize() in source4/lib/ldb/common/ldb.cKamen Mazdrashki2010-07-191-5/+7
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s4-dsdb: use ldb_msg_normalize() in source4/dsdb/schema/schema_set.cKamen Mazdrashki2010-07-191-5/+4
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s4-ldb: Add ldb_msg_normalize() to accept a memory context from clientKamen Mazdrashki2010-07-192-12/+46
| | | | | | | | | | | | | | | | Previos implementation from ldb_msg_canonicalize() was moved into this function and now ldb_msg_canonicalize() is based on ldb_msg_normalize() Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s4-ldb: Use _ldb_msg_add_el() in ldb_msg_add()Kamen Mazdrashki2010-07-191-4/+10
| | | | | | | | | | | | | | Previous implementation was 'leaking' attribute name string, that is allocated by ldb_msg_add_empty() Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s4-ldb: Use _ldb_msg_add_el() in ldb_msg_add_empty()Kamen Mazdrashki2010-07-191-22/+17
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s4-ldb: Add separate function to add empty element into ldb_msgKamen Mazdrashki2010-07-191-0/+30
| | | | | | | | | | | | | | | | It just adds another element, nothing more. Caller is responsible to fill-in the added element and determine how to handle data allocation contexts. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s4-ldb: Write more explanatory comment for ldb_msg_add()Kamen Mazdrashki2010-07-191-3/+8
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s4-pyldb: Use ldb_msg_difference() in py_ldb_msg_diff()Kamen Mazdrashki2010-07-191-2/+10
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s4-test: Use ldb_msg_difference() in torture/rpc/dssync.c testKamen Mazdrashki2010-07-191-3/+6
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s4-tools: use ldb_msg_difference() in ldbedit - modify_record()Kamen Mazdrashki2010-07-191-6/+10
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s4-dsdb/schema/schema_set.c: fix trailing spaces and comments spellingKamen Mazdrashki2010-07-191-30/+38
| | | | | | | | | | | | | | | | | | Few comments split on several lines also... (Sorry Metze, I know you hate reviewing "and this, and that" type of patches, but those are just cosmetics) Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s4-dsdb: use ldb_msg_difference() in source4/dsdb/schema/schema_set.cKamen Mazdrashki2010-07-191-2/+10
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s4-ldb: Implement ldb_msg_difference() function to accept a memory context ↵Kamen Mazdrashki2010-07-192-23/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from client Old implementation from ldb_msg_diff() was moved into this this function but with changed interface so that a memory context may be passed. ldb_msg_diff() function is now based on ldb_msg_difference(), which fixes a hidden leak - internal ldb_msg object (returned from ldb_msg_canonicalize) wasn't freed and stays attached to ldb_context for the connection lifetime. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s3-auth: Use talloc hierarchies to properly free auth_ntlmssp_state contextsSimo Sorce2010-07-197-26/+26
| | | | | | | | | | | | | | Turn auth_ntlmssp_end into a destructor and attach it to auth_ntlmssp_state. Remote auth_ntlmssp_end and use TALLOC_FREE in the callers. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s3-auth: auth_make ntlmssp_state the parent contextSimo Sorce2010-07-191-29/+12
| | | | | | | | | | | | | | | | There is no need for a separate mem_ctx member. Also make the ntlmssp_state a children of auth_ntlmssp_state Also cleanup auth_ntlmssp_end to free only what is not automatically freed Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s3-auth: Simplify how we free the auth_contextSimo Sorce2010-07-198-28/+26
| | | | | | | | | | | | | | | | | | Turn the freeing function into a destructor and attach it to the auth_context. Make all callers TALLOC_FREE() the auth_context instead of calling the free function. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s3-auth: Cleanup and readability fixesSimo Sorce2010-07-191-21/+23
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
| * s3-ntlmssp: Remove ntlmssp_end and let the talloc hierarchy handle it.Simo Sorce2010-07-199-49/+31
| | | | | | | | | | | | All the members are children of ntlmssp_state anyway. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* | Merge branch 'master' of ssh://git.samba.org/data/git/sambaSimo Sorce2010-07-1835-801/+1157
|\|
| * s3: Actually use the usecs in aio_fork_suspendVolker Lendecke2010-07-181-1/+2
| | | | | | | | Jeremy, please check!
| * s3: Fix an uninitialized variableVolker Lendecke2010-07-181-1/+1
| |
| * s3: Work better without the aio sighandlerVolker Lendecke2010-07-181-7/+22
| | | | | | | | Refuse async I/O if we can't set up the signal handler
| * s3: Fix some nonempty blank linesVolker Lendecke2010-07-181-6/+4
| |
| * s3: Remove a direct use of procid_self()Volker Lendecke2010-07-181-3/+5
| |
| * s3-rpc_client: Fixed a segfault in rpccli_samr_chng_pswd_auth_crap().Andreas Schneider2010-07-181-4/+23
| | | | | | | | | | | | This fixes the WINBIND-WBCLIENT test. The test set old_lm_hash_enc_blob.length to 0 and we don't check the length here. So the memcpy segfaulted.