summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-07-20Add approriate TALLOC_CTX's thoughout the spnego code. No more implicit NULL ↵Jeremy Allison10-74/+65
contexts. Jeremy.
2010-07-20Fix warning on 64-bit machines.Jeremy Allison1-1/+1
Jeremy.
2010-07-20Fix one more data_blob -> data_blob_talloc. Move away from implicit NULL ↵Jeremy Allison7-22/+32
context tallocs. Jeremy.
2010-07-20Add TALLOC_CTX argument to spnego_parse_negTokenInit, reduceJeremy Allison8-27/+35
use of malloc, and data_blob(). Jeremy.
2010-07-20s3: Fix two uninitialized variablesVolker Lendecke1-2/+2
2010-07-20Rename spnego_gen_negTokenTarg() -> spnego_gen_krb5_negTokenInit()Jeremy Allison4-8/+8
as this correctly describes what this function does. Jeremy.
2010-07-20Remove gen_negTokenTarg(), as it's not actually creating a TokenTarg frame, ↵Jeremy Allison3-49/+3
but a TokenInit one. Move to using spnego_gen_negTokenInit() instead. Jeremy
2010-07-20Fixes pointed out by <david.kondrad@legrand.us>. Free memory if not beingJeremy Allison1-38/+37
returned to caller. Remove unneeded asn1_tag_remaining() calls. Jeremy.
2010-07-20Fix warning - no return value for a non-void fn.Jeremy Allison1-0/+1
Jeremy.
2010-07-20s3: also run the test prog from the explicit external lib bug checkBjörn Jacke1-2/+5
on Linux linking already stops with a broken ld, on FreeBSD8 linking works but the binary is broken, so we must check both. this should be the final fix for bug #7561
2010-07-20dcerpc: Clarify what the arguments of dcerpc_pull_auth_trailer() actually ↵Simo Sorce2-17/+36
represent.
2010-07-20s3: check for explicit external lib bug in ld's as-needed codeBjörn Jacke1-0/+34
Second part of fix for bug #7561 Based on test provided by Olaf Flebbe.
2010-07-20s3: add configure swtich to manually disable as-neededBjörn Jacke1-3/+9
first part fix for bug #7561 based on earlier patch from metze
2010-07-20Revert "s3: Don't use as-needed"Björn Jacke1-0/+33
This reverts commit b9835a1f9d8b81e4121a01a190dffaefe67cbe5c.
2010-07-20s3-dcerpc: Unifiy cli_pipe_auth_data and pipe_auth_dataSimo Sorce5-71/+71
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-20s3-auth: Add auth_ntlmssp wrapper for client sideSimo Sorce2-0/+75
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-20s3-auth: Move auth_ntlmssp wrappers in their own fileSimo Sorce9-103/+194
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-20s3-auth: Refactor and rename auth_ntlmssp_server_info()Simo Sorce5-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>
2010-07-19Remove gen_negTokenInit() - change all callers to spnego_gen_negTokenInit().Jeremy Allison6-61/+28
We now have one function to do this in all calling code. More rationalization to follow. Jeremy.
2010-07-19Move the addition of the 16 byte guid out of spnego_gen_negTokenInit() andJeremy Allison5-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.
2010-07-19Remove parse_negTokenTarg(), as it's actually incorrect. We're processingJeremy Allison6-80/+30
negTokenInit's here. Use common code in spnego_parse_negTokenInit(). Jeremy.
2010-07-19Fix [Bug 7577] SPNEGO auth fails when contacting Win7 system using Microsoft ↵Jeremy Allison1-7/+54
Live Sign-in Assistant Based on code from <david.kondrad@legrand.us>. Cope with every NegTokenInit ::= SEQUENCE value. Jeremy.
2010-07-19s3: Avoid pwrite calls for the 1-byte writes with zero contentVolker Lendecke1-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!
2010-07-19s3-auth: Remove unused variable.Simo Sorce1-2/+0
It was a spurious remnant after a rebase.
2010-07-19Merge branch 'master' of ssh://git.samba.org/data/git/sambaSimo Sorce44-350/+617
2010-07-19waf: make the error msg when gen_ndr directory is missing clearerAndrew Tridgell1-0/+7
the next time someone removes gen_ndr/README the fix should be more obvious.
2010-07-19waf-idl: put the gen_ndr/README file for source3 backAndrew Tridgell3-0/+10
This was removed by 100d37fc4624690423f6a932709b3f9046d05c64, probably accidentially.
2010-07-19s3-rpc_server: Added callbacks for init and shutdown of a rpc service.Andreas Schneider6-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.
2010-07-19s3-rpc_server: Don't register the same rpc commands twice.Andreas Schneider1-6/+4
2010-07-19s3-docs: Add more verbose description of "log writeable files on exit".Volker Lendecke1-4/+11
2010-07-19s3-docs: Add more verbose description of "ctdb locktime warn threshold".Volker Lendecke1-7/+19
2010-07-19s3-docs: Add more verbose description of "username map cache time".Volker Lendecke1-7/+16
2010-07-19s3-docs: Remove older documentation of smb2 parameters.Karolin Seeger3-39/+0
Jeremy, these parameters were already documented. My fault. Sorry for the noise! Karolin
2010-07-19s4: Remove trailing whitespacesKamen Mazdrashki2-13/+13
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19ldb: Mark _DEPRECATED_ ldb_msg_diff() and ldb_msg_canonicalize() functionsKamen Mazdrashki1-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>
2010-07-19s4-dsdb: use ldb_msg_normalize() in ldb_msg_difference()Kamen Mazdrashki1-6/+8
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19s4-test: Use ldb_msg_normalize() in sqlite3 backendKamen Mazdrashki1-4/+13
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19s4-test: Use ldb_msg_normalize() in torture/rpc/dssync.c testKamen Mazdrashki1-2/+4
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19s4-dsdb: use ldb_msg_normalize() in ldbadd-process_file()Kamen Mazdrashki1-1/+9
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19s4-dsdb: use ldb_msg_normalize() in source4/lib/ldb/common/ldb.cKamen Mazdrashki1-5/+7
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19s4-dsdb: use ldb_msg_normalize() in source4/dsdb/schema/schema_set.cKamen Mazdrashki1-5/+4
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19s4-ldb: Add ldb_msg_normalize() to accept a memory context from clientKamen Mazdrashki2-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>
2010-07-19s4-ldb: Use _ldb_msg_add_el() in ldb_msg_add()Kamen Mazdrashki1-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>
2010-07-19s4-ldb: Use _ldb_msg_add_el() in ldb_msg_add_empty()Kamen Mazdrashki1-22/+17
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19s4-ldb: Add separate function to add empty element into ldb_msgKamen Mazdrashki1-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>
2010-07-19s4-ldb: Write more explanatory comment for ldb_msg_add()Kamen Mazdrashki1-3/+8
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19s4-pyldb: Use ldb_msg_difference() in py_ldb_msg_diff()Kamen Mazdrashki1-2/+10
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19s4-test: Use ldb_msg_difference() in torture/rpc/dssync.c testKamen Mazdrashki1-3/+6
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19s4-tools: use ldb_msg_difference() in ldbedit - modify_record()Kamen Mazdrashki1-6/+10
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19s4-dsdb/schema/schema_set.c: fix trailing spaces and comments spellingKamen Mazdrashki1-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>