1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

64786 Commits

Author SHA1 Message Date
Volker Lendecke
334d5bfe30 s3: Convert cli_get_ea_list_path to cli_qpathinfo_send 2010-07-25 22:29:44 +02:00
Volker Lendecke
5380f67730 s3: Factor out parse_ea_blob 2010-07-25 22:29:44 +02:00
Volker Lendecke
d5e285abae s3: Convert cli_posix_stat to cli_qpathinfo_send 2010-07-25 22:29:44 +02:00
Volker Lendecke
786e4cd098 s3: Convert cli_posix_getfacl to cli_qpathinfo_send 2010-07-25 22:29:43 +02:00
Volker Lendecke
cb9baa7c2c s3: Convert cli_posix_readlink to cli_qpathinfo_send 2010-07-25 22:29:43 +02:00
Volker Lendecke
535774d880 s3: Add async cli_qpathinfo 2010-07-25 22:29:43 +02:00
Volker Lendecke
ce3dfd777f s3: cli_qpathinfo->cli_qpathinfo1 2010-07-25 22:29:42 +02:00
Volker Lendecke
b04eba165e s3: Fix cli_posix_stat
nlink seems to be defined as 8 bytes, not 4

Jeremy, please check!
2010-07-25 20:45:47 +02:00
Volker Lendecke
1528a4ffbe s3: use dump_data in query FILE_BASIC_UNIX_INFO
Jeremy, please check! To me this is a lot more readable than the decimal
listing of the bytes.
2010-07-25 20:45:46 +02:00
Volker Lendecke
032bf5c629 s3: Fix a typo (missing space) 2010-07-24 11:19:42 +02:00
Jeremy Allison
5912206606 Fix bug 7583 - Smbclient fails to kerberos connect to a Alfresco JLAN CIFS Server
Correctly calculate the gssapi channel binding checkum.

Jeremy

Signed off by: simo <idra@samba.org>
2010-07-23 10:54:46 -07:00
Björn Jacke
c75106fd3a s3: not use as-needed by default and auto use if enable-developer is active
as discussed on samba-technical, we don't want people out there to use it
unwittingly by default. However by enabling it when enable-developer is used we
make sure that we don't break the feature.
2010-07-22 15:51:36 +02:00
Simo Sorce
61cfbf342f s3-rpc_server: Cleanup the way we free pipe auth data 2010-07-21 19:14:59 -04:00
Simo Sorce
636de433ac cleaup: Reformat cli_get_session_key()
merge cli_get_session_key
2010-07-21 19:14:23 -04:00
Simo Sorce
3b502d899d s3-dcerpc: Fix potential memleak
Use a free function for schannel data too for now.
2010-07-21 19:13:27 -04:00
Simo Sorce
a3713d7469 s3-dcerpc: Properly initialize output buffers on nak/fault 2010-07-21 19:12:59 -04:00
Simo Sorce
26f1218a36 s3-libsmb: Use data_blob_talloc to get krb5 ticket and session keys 2010-07-20 20:02:09 -04:00
Simo Sorce
8137f2d7e7 misc: cleanup get_krb5_smb_session_key() 2010-07-20 20:02:06 -04:00
Simo Sorce
e8460b4ebc misc: cleanup cli_krb5_get_ticket() 2010-07-20 20:01:58 -04:00
Jeremy Allison
5002b3a90d Add approriate TALLOC_CTX's thoughout the spnego code. No more implicit NULL contexts.
Jeremy.
2010-07-20 16:17:58 -07:00
Jeremy Allison
8df0f0e49e Fix warning on 64-bit machines.
Jeremy.
2010-07-20 15:12:07 -07:00
Jeremy Allison
cce19c5162 Fix one more data_blob -> data_blob_talloc. Move away from implicit NULL context tallocs.
Jeremy.
2010-07-20 14:59:31 -07:00
Jeremy Allison
4ed9437b7e Add TALLOC_CTX argument to spnego_parse_negTokenInit, reduce
use of malloc, and data_blob().

Jeremy.
2010-07-20 13:35:43 -07:00
Volker Lendecke
dc443ee6e9 s3: Fix two uninitialized variables 2010-07-20 20:35:39 +02:00
Jeremy Allison
7d17bfcf51 Rename spnego_gen_negTokenTarg() -> spnego_gen_krb5_negTokenInit()
as this correctly describes what this function does.

Jeremy.
2010-07-20 11:14:49 -07:00
Jeremy Allison
8a882b645c Remove gen_negTokenTarg(), as it's not actually creating a TokenTarg frame, but a TokenInit one.
Move to using spnego_gen_negTokenInit() instead.

Jeremy
2010-07-20 11:04:19 -07:00
Jeremy Allison
668744964d Fixes pointed out by <david.kondrad@legrand.us>. Free memory if not being
returned to caller. Remove unneeded asn1_tag_remaining() calls.

Jeremy.
2010-07-20 09:51:48 -07:00
Jeremy Allison
f5def289d3 Fix warning - no return value for a non-void fn.
Jeremy.
2010-07-20 09:34:32 -07:00
Björn Jacke
c58aeaaf31 s3: also run the test prog from the explicit external lib bug check
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-20 18:12:40 +02:00
Simo Sorce
b20e5eb3aa dcerpc: Clarify what the arguments of dcerpc_pull_auth_trailer() actually represent. 2010-07-20 08:28:19 -04:00
Björn Jacke
2a8399f7ce s3: check for explicit external lib bug in ld's as-needed code
Second part of fix for bug #7561

Based on test provided by Olaf Flebbe.
2010-07-20 13:46:42 +02:00
Björn Jacke
09944302a1 s3: add configure swtich to manually disable as-needed
first part fix for bug #7561

based on earlier patch from metze
2010-07-20 13:46:42 +02:00
Björn Jacke
fa4dec31cf Revert "s3: Don't use as-needed"
This reverts commit b9835a1f9d.
2010-07-20 13:46:42 +02:00
Simo Sorce
4581902553 s3-dcerpc: Unifiy cli_pipe_auth_data and pipe_auth_data
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-20 15:52:37 +10:00
Simo Sorce
a91727fc79 s3-auth: Add auth_ntlmssp wrapper for client side
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-20 15:52:34 +10:00
Simo Sorce
e958b39042 s3-auth: Move auth_ntlmssp wrappers in their own file
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-20 15:52:31 +10:00
Simo Sorce
a04bbd281c s3-auth: Refactor and rename auth_ntlmssp_server_info()
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-20 15:52:24 +10:00
Jeremy Allison
0bb8d133c9 Remove gen_negTokenInit() - change all callers to spnego_gen_negTokenInit().
We now have one function to do this in all calling code. More rationalization
to follow.

Jeremy.
2010-07-19 17:14:26 -07:00
Jeremy Allison
8cba4a0c96 Move the addition of the 16 byte guid out of spnego_gen_negTokenInit() and
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-19 16:45:16 -07:00
Jeremy Allison
625a511389 Remove parse_negTokenTarg(), as it's actually incorrect. We're processing
negTokenInit's here. Use common code in spnego_parse_negTokenInit().

Jeremy.
2010-07-19 15:41:45 -07:00
Jeremy Allison
962951e63d Fix [Bug 7577] SPNEGO auth fails when contacting Win7 system using Microsoft Live Sign-in Assistant
Based on code from <david.kondrad@legrand.us>. Cope with every NegTokenInit ::= SEQUENCE value.
Jeremy.
2010-07-19 14:21:01 -07:00
Volker Lendecke
6763730304 s3: Avoid pwrite calls for the 1-byte writes with zero content
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-19 22:06:28 +02:00
Simo Sorce
944494d350 s3-auth: Remove unused variable.
It was a spurious remnant after a rebase.
2010-07-19 13:53:34 -04:00
Simo Sorce
f9f3358348 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2010-07-19 13:48:31 -04:00
Andrew Tridgell
630a2eb68a waf: make the error msg when gen_ndr directory is missing clearer
the next time someone removes gen_ndr/README the fix should be more
obvious.
2010-07-19 22:17:17 +10:00
Andrew Tridgell
a709e423d2 waf-idl: put the gen_ndr/README file for source3 back
This was removed by 100d37fc46, probably
accidentially.
2010-07-19 22:17:17 +10:00
Andreas Schneider
5cefbfef26 s3-rpc_server: Added callbacks for init and shutdown of a rpc service.
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-19 12:59:18 +02:00
Andreas Schneider
b91e5cf17d s3-rpc_server: Don't register the same rpc commands twice. 2010-07-19 12:59:18 +02:00
Volker Lendecke
b742c4952e s3-docs: Add more verbose description of "log writeable files on exit". 2010-07-19 12:47:09 +02:00
Volker Lendecke
775f1ed045 s3-docs: Add more verbose description of "ctdb locktime warn threshold". 2010-07-19 12:35:58 +02:00