Jeremy Allison
68259be9d5
Added error string for server timeout on client call.
...
Jeremy.
(This used to be commit abeebf33c132c4975ac5dadde57c22176ddc9fda)
2002-10-01 01:33:05 +00:00
Jelmer Vernooij
f9789eb987
Change libsmbclient.h -> ../include/libsmbclient.h in 3.0 as well
...
(This used to be commit 5b451ce6f096d699a80c10f48bde5ee224e29ccf)
2002-09-28 21:42:51 +00:00
John Terpstra
cd2ab11b24
Fixing path to libsmbclient.h so it never gets crossed with a system installed one.
...
(This used to be commit cc878f43b9a91385ca3671f17a08253b8464c039)
2002-09-28 20:44:23 +00:00
Jelmer Vernooij
10581a3cef
Include ../include/libsmbclient.h instead of just libsmbclient.h - we don't want to include the globally installed libsmbclient.h - found by jht
...
(This used to be commit e35a5da3a75c74ab066bff5e0f60d30deb008451)
2002-09-28 20:09:30 +00:00
Jelmer Vernooij
6af2433ce6
Include ../include/libsmbclient.h instead of just libsmbclient.h - we don't want to include the globally installed libsmbclient.h - found by jht
...
(This used to be commit a7a54fc2c8b26c92ab0e3499531919debca3fe64)
2002-09-28 20:06:41 +00:00
Volker Lendecke
ca772ac1f4
Ok, hopefully final fix for this one. abartlet told a bit about the
...
history.
Volker
(This used to be commit d47aff38db23815a48e64718ecb6c957101ecdac)
2002-09-28 15:01:58 +00:00
Volker Lendecke
9e0bd9be01
Thanks to abartlet I looked at that function a bit closer. What did
...
the first cli_push_string do? I suspect that it's a leftover from times
when the password length was needed at some point.
Volker
(This used to be commit df906c156aea46524dedc28ee54f4e87711c7160)
2002-09-28 12:14:17 +00:00
Volker Lendecke
208b4be14b
Touching somebody else's code again... Sorry, Richard.
...
smbclient would announce that it can send UNICODE, but would send the
plain text password in ASCII. This confused Samba HEAD somewhat. This
change has been tested against Samba HEAD of today and Samba 2.2.1a. I
do not have any other servers that do plain text passwords. Anybody?
Volker
(This used to be commit c7de62d839634a85295d1a0ef5a48270ef30aa93)
2002-09-27 16:51:22 +00:00
Gerald Carter
ef6f8197a3
remove files not in HEAD
...
(This used to be commit 9d9f7bbf87bf9a0e003e6da482615fe040d00852)
2002-09-26 18:53:51 +00:00
Gerald Carter
a834a73e34
sync'ing up for 3.0alpha20 release
...
(This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
2002-09-25 15:19:00 +00:00
Tim Potter
af78eafa6c
Don't uppercase the username and domain in a session setup.
...
(This used to be commit 0ad19825df318030b1772404570cd993fe49e40a)
2002-09-23 21:24:31 +00:00
Richard Sharpe
8aaf8174bf
Small, long overdue, fix for libsmbclient.
...
(This used to be commit 40aea3fe94b68ce284e2f21e57f086212936c049)
2002-09-22 16:22:48 +00:00
Tim Potter
7e29a2ec1d
Fixed compiler error when HAVE_KRB5 not defined.
...
(This used to be commit 66c2e25079b348188abd48868300771b1e49fff3)
2002-09-18 01:40:13 +00:00
Andrew Tridgell
b33681fc0b
Add clock skew handling to our kerberos code. This allows us to cope with
...
the DC being out of sync with the local machine.
(This used to be commit 0d28d769472ea3b98ae4c8757093dfd4499f6dd1)
2002-09-17 12:12:50 +00:00
Volker Lendecke
66f90f97bf
Merge the cli_shutdown change from 2_2. All except one call to
...
attempt_netbios_... assumed that cli_shutdown was _not_ called on
error anyway...
Volker
(This used to be commit f0c741594f0dad2da16b1d5692dd56a48b4157f1)
2002-09-11 15:18:53 +00:00
Jeremy Allison
df920a60b5
Added final Steve French patch for "required" attributes with old
...
dir listings. Added regression test in smbtorture (in HEAD) also.
Jeremy.
(This used to be commit 3c9d24d7c3bad2beb641880a97f0eda5cd3e4ec7)
2002-09-10 01:58:51 +00:00
Jeremy Allison
48c91e8b2a
Merged Volkers (correct) fix from 2.2 for crash on unable to connect.
...
Jeremy.
(This used to be commit 05e2aba52f9b027bbab7c65cc02fd5c83d3c61aa)
2002-09-09 19:02:53 +00:00
Andrew Tridgell
65029365ba
don't use ENCTYPE_ARCFOUR_HMAC unless the kerberos lib supports it
...
(This used to be commit 13dc9e37d2422c45ac5005dce26b349f88dbe505)
2002-09-04 10:58:42 +00:00
Richard Sharpe
f04ca060c2
Fix the struct_blob.
...
(This used to be commit ce152b33c8b08905ea863d47a620c90ca47c8566)
2002-09-03 21:35:26 +00:00
Jeremy Allison
0d9cde2737
Fix crashbug discovered by "Kim R. Pedersen" <krp@filanet.dk> where
...
cli struct was being deallocated in a called function.
Jeremy.
(This used to be commit e33e9defa657aa54594bb0c27f9be2f7b12aab1b)
2002-09-03 19:19:20 +00:00
Jeremy Allison
a27923691b
Formatting tidyup and additon of cli_close_connection() before bugfix.
...
Jeremy.
(This used to be commit 3b71529c694b5b1093d99b7ef80835e72b1f8436)
2002-09-03 19:18:12 +00:00
Richard Sharpe
fd13038acf
Fix the client side NTLMSSP. It now works between smbclient and smbd!
...
However, it does not work with Win2K over 445 with raw NTLMSSP!
(This used to be commit 53e4975337be2cab3ee89f2f62e5659855365b73)
2002-09-03 17:36:00 +00:00
Richard Sharpe
fc15341b82
Parse the NTLMSSP Challenge in cliconnect.c.
...
This gets us closer ... Should have the challenge now. Need to check that it works.
(This used to be commit 5784835db95baf62362d35d3beab5d534cc776e9)
2002-09-03 06:34:40 +00:00
Richard Sharpe
629ad6941e
Make sure that an NTLMSSP negotiate blob has the correct stuff in it!
...
(This used to be commit b28267f52c0a5c175b067d7c2d10eca83c20e640)
2002-09-03 04:10:58 +00:00
Richard Sharpe
bb30cd160b
Add type A to the small MSRPC generator ...
...
(This used to be commit 7f8fd5f270af74dcb3fd18af74233f7db4d8f9a7)
2002-09-03 03:53:50 +00:00
Richard Sharpe
2074556104
The session key in NTLMSSP AUTH blobs is actually an empty string.
...
Also, the negotiate blob has two ASCI strings encoded in the same way that the
UNICODE strings are, they are just in ASCII. The PARSER and Generator will have to deal with that.
(This used to be commit aaa7a681ce4ee52edb23c73a53aeabb07fd5b7d8)
2002-09-03 03:48:28 +00:00
Andrew Bartlett
110954e8e1
Add a dash of static.
...
(This used to be commit e3af3adac1a01842bc5242e68393196497a1d71c)
2002-08-31 08:51:38 +00:00
Andrew Bartlett
7aca67c3e9
Add a bit of 'const' and move a lot of our 'repeditive' DEBUG() statements to
...
'DEBUGADD', so we don't repeat headers. (Makes them much easier to read).
(Based on patch by kai)
Andrew Bartlett
(This used to be commit 9deada345c5f89f338530c4de62835cc1eeb3d0e)
2002-08-31 06:59:00 +00:00
Jean-François Micouleau
cfb5e91178
added cli_net_auth_3 client code.
...
changed cli_nt_setup_creds() to call cli_net_auth_2 or cli_net_auth_3 based on a switch.
pass also the negociation flags all the way.
all the places calling cli_nt_setup_creds() are still using cli_net_aut2(), it's just for future use and for rpcclient.
in the future we will be able to call auth_2 or auth_3 as we want.
J.F.
(This used to be commit 4d38caca40f98d0584fefb9d66424a3db5b5789e)
2002-08-30 10:46:59 +00:00
Andrew Tridgell
dcd0291694
convert the LDAP/SASL code to use GSS-SPNEGO if possible
...
we now do this:
- look for suported SASL mechanisms on the LDAP server
- choose GSS-SPNEGO if possible
- within GSS-SPNEGO choose KRB5 if we can do a kinit
- otherwise use NTLMSSP
This change also means that we no longer rely on having a gssapi
library to do ADS.
todo:
- add TLS/SSL support over LDAP
- change to using LDAP/SSL for password change in ADS
(This used to be commit b04e91f660d3b26d23044075d4a7e707eb41462d)
2002-08-30 06:59:57 +00:00
Tim Potter
b42229c2d8
Sync up namecache code with HEAD and APPLIANCE_HEAD. Rerun unit tests.
...
(This used to be commit 41c2e7b162224a524a1bf4da012f383f2a6032d0)
2002-08-28 00:17:11 +00:00
Gerald Carter
c53bbb55f6
merge from SAMBA_2_2
...
(This used to be commit b58ddacf73589870252eea52da68841e7294672d)
2002-08-27 12:43:15 +00:00
Andrew Bartlett
e32fdc1001
Some fixes for SMB signing. I can now get Win2k to correctly respond with a
...
security signiture, but I can't get it to accept ours.
Andrew Bartlett
(This used to be commit 7746de6a3c5798e321ed8300f763588fa3807964)
2002-08-26 03:59:01 +00:00
Andrew Bartlett
2560c73026
Updates!
...
- Don't print an uninitialised buffer in service.c
- Change some charcnv.c functions to take smb_ucs2_t ** instead of void **
- Update NTLMv2 code to use dynamic buffers
- Update experimental SMB signing code - still more work to do
- Move sys_getgrouplist() to SAFE_FREE() and do a DEBUG() on initgroups()
failure.
Andrew Bartlett
(This used to be commit de1964f7fa855022258a84556b266100b917444b)
2002-08-26 03:08:37 +00:00
Andrew Bartlett
6b9de4f69f
Use a function that actually exists for the keepalive send.
...
Andrew Bartlett
(This used to be commit 82e7212bbbeefce873291c2fdb3b04ae1e6c26d6)
2002-08-25 22:23:46 +00:00
Andrew Bartlett
f73039b225
Fix from kai to correctly decode ntlmssp flags.
...
Andrew Bartlett
(This used to be commit 2e74473551f0fce0384eacd31bc1a53ff3967464)
2002-08-25 21:36:45 +00:00
Tim Potter
6bca450207
Cope with negative cache dns entries better.
...
(This used to be commit 3404023260a5d6fed5523eb378d4a1ad418302a0)
2002-08-23 15:01:08 +00:00
Tim Potter
55315b4b4e
Moved calculation of secure channel type into a new function.
...
(This used to be commit b8dba26978c281259e02b9d6ebacaa7cba4f7787)
2002-08-23 13:38:00 +00:00
Tim Potter
53fabdee01
Don't take the sizeof(struct in_addr) * -1
...
(This used to be commit e13016bb42dbba675d6e7ee7e163543aad2e62c2)
2002-08-23 13:23:49 +00:00
Herb Lewis
e6de7c24a5
move where got_sig_term and reload_after_sighup are defined.
...
populate cli structure with called name and calling name even for port
445 connects.
(This used to be commit 123eee6206d9afb28c169540dc63824957b505f4)
2002-08-22 23:34:27 +00:00
Andrew Tridgell
ba2fdbb4c8
a ASN.1 fix from anthony
...
(This used to be commit 5ff687a839f805af56ae77cba94c466a0ff87ccc)
2002-08-22 22:53:00 +00:00
Andrew Tridgell
8e089e8770
don't use spnego in the client unless enabled in smb.conf
...
(This used to be commit c00388de6cf5d0527505bfe4edfe2f0269c5a4c8)
2002-08-22 22:52:16 +00:00
Gerald Carter
7c4d1ba058
fix a few segfaults
...
(This used to be commit ccb02f7cfcec4a555cf7304816c739f4bf7b46f0)
2002-08-22 02:51:32 +00:00
Andrew Bartlett
2749f5e998
A few fixes towards libsmbclient and rpcclient - get pointer types right and
...
try to keep to functions inside libsmbclient.
Andrew Bartlett
(This used to be commit 340bc31fdb031d79fa87de27c2c46215dd8113a3)
2002-08-22 00:51:00 +00:00
Gerald Carter
39966b7e16
fix segfault
...
(This used to be commit 982eadf73bb3932ec3ac89c6112a8bf79dbec127)
2002-08-21 23:27:38 +00:00
Jelmer Vernooij
d3aa76cef5
Patch from Paul Green <Paul.Green@stratus.com> to be more POSIX-compatible
...
(This used to be commit addf29e6765393b25c35bd833d29e29e4581c233)
2002-08-21 19:59:23 +00:00
Herb Lewis
a08427ea6e
cannot use casts in the DLIST_xxx macros
...
(This used to be commit c9ffc416aeee2610fdc896a9d41dac182039a5f9)
2002-08-20 12:38:43 +00:00
Herb Lewis
0361559991
fix irix compiler error
...
(This used to be commit 4df7983487545a432cfa8832eae1afbdf7866060)
2002-08-20 00:20:23 +00:00
Andrew Tridgell
1040d27b14
fixed memory corruption in cli_full_connection()
...
(This used to be commit 7c2167182becbf72ba062230e911d55d337a4709)
2002-08-19 17:49:37 +00:00
Andrew Tridgell
e38148f78c
we now receive and parse the main cldap netlogon reply.
...
we still need to parse the core of the structure
(This used to be commit 6780ae25bf7ca291f612682dec7ee7ff44c24bef)
2002-08-19 15:30:26 +00:00