Karolin Seeger
340797f3fa
Fix typo in comments.
2010-03-03 16:03:13 +01:00
Stefan Metzmacher
d5cbfbb93a
s4:ntlmssp: remove mem_ctx from check_password() callback to match s3
...
metze
2009-12-29 17:06:25 +01:00
Stefan Metzmacher
f31d144e70
s4:ntlmssp_server: always call ntlmssp_server_postauth() and decide there if it's a noop
...
metze
2009-12-29 17:06:25 +01:00
Stefan Metzmacher
994d34b949
s4:ntlmssp_server: don't use a mem_ctx for ntlmssp_server_auth()
...
metze
2009-12-29 17:06:25 +01:00
Stefan Metzmacher
3f04b60fb9
s4:ntlmssp_server: don't use mem_ctx in auth_ntlmssp_check_password()
...
metze
2009-12-29 17:06:24 +01:00
Stefan Metzmacher
7d4692fa43
s4:ntlmssp_server: clear session key in ntlmssp_server_preauth()
...
metze
2009-12-29 17:06:24 +01:00
Stefan Metzmacher
dea456089a
s4:ntlmssp: use data_blob_null in ntlmssp_server_auth()
...
metze
2009-12-29 17:06:24 +01:00
Stefan Metzmacher
60b9434492
s4:ntlmssp_server: remove unused variable
...
metze
2009-12-29 17:06:23 +01:00
Stefan Metzmacher
a8e61ac084
s4:auth/ntlmssp: let get_challenge() return a NTSTATUS and fill a stack buffer
...
metze
2009-12-29 17:06:23 +01:00
Stefan Metzmacher
8ab62799ed
s4:ntlmssp: fix whitespaces in ntlmssp.h
...
metze
2009-12-29 08:18:52 +01:00
Andrew Bartlett
585900deb5
s4:gensec Don't give a warning when Windows client connects with NTLM
...
We have had the workaround for a long time, but at the time the log
warnings remained.
Andrew Bartlett
2009-12-22 17:30:05 +11:00
Andrew Bartlett
0809696dbf
s4:auth Change 'get_challenge' API to be more like Samba3
...
It is just easier to fill in the known to be 8 byte challenge than
stuff about with allocated pointers.
Andrew Bartlett
2009-12-22 17:29:15 +11:00
Andreas Schneider
1e5488859a
s4-gensec: Replace gensec_get_peer_addr with new tsocket based fn.
2009-12-16 20:28:38 +01:00
Andrew Tridgell
f8109b0f49
s4: ran minimal_includes.pl on source4/auth/ntlmssp
2009-10-20 16:05:07 +11:00
Matthias Dieter Wallnöfer
ea60b72c46
s4:ntlmssp server - use also here the new "lp_dnsdomain()" call
2009-10-15 10:32:16 +02:00
Günther Deschner
074c6d4214
s4: include ntlmssp header in auth/ntlmssp/ntlmssp.h.
...
Guenther
2009-08-28 13:43:35 +02:00
Günther Deschner
38d677bdf2
s4-ntlmssp: use interface constants in TargetInfo blob.
...
Guenther
2009-08-28 10:09:13 +02:00
Günther Deschner
e8c19f31b3
s4-ntlmssp: use NTLMSSP headers from IDL and remove duplicate constants.
...
Guenther
2009-08-28 10:09:06 +02:00
Stefan Metzmacher
57afa1edeb
s4:auth/ntlmssp: let _unwrap fallback to seal if sign only doesn't work
...
s4:auth/ntlmssp: let _unwrap fallback to seal if sign only doesn't work
Windows always uses SEAL with NTLMSSP on LDAP connection even if not negotiated.
metze
2009-07-08 13:15:22 +02:00
Andrew Bartlett
6dd6ccbdc9
s4:auth It is easier to copy the session key than get talloc right.
...
The session keys as supplied already have a reference on them, so
stealing them creates challenges. For 16 bytes, it is just easier to
be consistant and copy them.
Andrew Bartlett
2009-07-07 13:27:47 +10:00
Andrew Tridgell
b2c3c08b46
fixed the use of talloc_steal in ntlmssp_server
...
The previous use of talloc_steal could cause a steal of a pointer that
had references. This ensures that doesn't happen
2009-07-01 15:15:36 +10:00
Andrew Bartlett
7a54cd041e
Remove unused headers
2009-04-19 22:01:09 +02:00
Andrew Bartlett
dbcd80ed01
Fix Samba4 build errors with common libcli/samsync
2009-04-16 10:17:17 +10:00
Andrew Bartlett
5095d7b1c8
Rework Samba4 to use the new common libcli/auth code
...
In particular, this is the rename from creds_ to netlogon_creds_, as
well as other links to use the new common crypto.
Andrew Bartlett
2009-04-14 16:23:44 +10:00
Andrew Bartlett
9feea7fa4c
Move MSRPC-PARSE into the common libcli/auth
...
This is a depenceny of smbencrypt.c
2009-04-14 14:19:39 +10:00
Jelmer Vernooij
7ab8f373c8
Use common header file for character set handling in Samba 3 and Samba 4.
2009-03-01 22:24:34 +01:00
Andrew Bartlett
71632a1697
Remove auth/ntlm as a dependency of GENSEC by means of function pointers.
...
When starting GENSEC on the server, the auth subsystem context must be
passed in, which now includes function pointers to the key elements.
This should (when the other dependencies are fixed up) allow GENSEC to
exist as a client or server library without bundling in too much of
our server code.
Andrew Bartlett
2009-02-13 10:24:16 +11:00
Stefan Metzmacher
582b27be24
s4:auth: try to fix the build on Solaris
...
MAXHOSTNAMELEN comes in via system/network.h now.
metze
2009-01-31 11:34:12 +01:00
Jelmer Vernooij
b034c519f5
Add gensec_settings structure. This wraps loadparm_context for now, but
...
should in the future only contain some settings required for gensec.
2008-11-02 02:05:48 +01:00
Jelmer Vernooij
3a6b88f9f9
Remove unused argument iconv_convenience.
2008-11-01 20:58:41 +01:00
Jelmer Vernooij
23302413b3
Remove unused include param/param.h.
2008-10-24 16:37:56 +02:00
Jelmer Vernooij
922a29992e
Remove iconv_convenience parameter from simple string push/pull
...
functions.
2008-10-24 03:40:09 +02:00
Jelmer Vernooij
87ec1d2532
Make sure prototypes are always included, make some functions static and
...
remove some unused functions.
2008-10-20 18:59:51 +02:00
Jelmer Vernooij
6925202bde
Move source4/lib/crypto to lib/crypto.
2008-09-24 15:30:23 +02:00
Stefan Metzmacher
23e31350f5
ntlmssp: only give away the session key, when the authentication is done
...
metze
2008-09-23 11:30:01 +02:00
Matthias Dieter Wallnöfer
d173644f10
NTLMSSP Server: Correctly fills in the DNS server name and server domain
...
Don't rely on "get*" system calls but rather on SAMBA "lp_*" calls.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-09-19 16:33:30 +02:00
Stefan Metzmacher
d087545deb
auth/ntlmssp: don't crash when the backend give no challenge
...
metze
(This used to be commit c01fee80a79cd9e0f7bb295333bb03bd37328d05)
2008-08-01 16:10:59 +02:00
Andrew Bartlett
9caa8d3da1
Try to make NTLMSSP less fussy for unimportant messages.
...
We don't really care (because nobody uses them) what we send as the
domain and workstation in the negotiate packet.
Andrew Bartlett
(This used to be commit 9ac07e14873df2c18d0e9501691c2d4c4047e218)
2008-07-15 15:04:06 +10:00
Michael Adam
db7bd968da
ntlmssp: get rid of "cast to pointer from integer of different size" warning on 64 bit
...
Not sure if this check is actually necessary, though:
the second should be sufficient.
Michael
(This used to be commit 2813882ef3cc3609a74ad83bcee6be0c2cd53494)
2008-06-27 14:27:30 +02:00
Jelmer Vernooij
1323e3e736
Fix proto generation.
...
(This used to be commit 7385d9641d49b94c83fd2c75e57c9623d21fcdb0)
2008-05-20 01:02:05 +02:00
Jelmer Vernooij
4c70cda986
Fix a couple (well, little more than that..) of typos.
...
(This used to be commit a6b52119940a900fb0de3864b8bca94e2965cc24)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147
Create prototype headers from Makefile directory, without smb_build in the middle.
...
(This used to be commit f4a77b96f9c17d853348b70794026e5b9e384942)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
78f804c497
Typo, formatting fixes.
...
(This used to be commit 5c961c0b41e0a41bd41705a103595af7405132a4)
2008-05-18 21:10:09 +02:00
Jelmer Vernooij
137ec6e340
Use variables for source directory in a couple more places.
...
(This used to be commit 2860a7db5968c7007522cdb300eba390da929ab8)
2008-05-18 19:46:09 +02:00
Andrew Bartlett
714b3a87d2
Fix the build after the auth/ -> auth/ntlm/ rename
...
I need to fix up the header inclusion, but this fixes things for now.
Andrew Bartlett
(This used to be commit 7c07edb24b31e7dc3e9b836ec4a6680ee2b04276)
2008-05-05 19:28:38 +10:00
Andrew Bartlett
7c5704499a
Fix dependencies on gensec_krb5 and the NTLMSSP code.
...
This is so that gensec_krb5 does not depend on the NTLM authentication
code.
Andrew Bartlett
(This used to be commit 71ec5bfb3e973bd68649a598d006efcdda18f1b6)
2008-04-26 09:50:15 +01:00
Jelmer Vernooij
21fc767378
Specify event_context to ldb_wrap_connect explicitly.
...
(This used to be commit b4e1ae07a284c044704322446c94351c2decff91)
2008-04-17 12:23:44 +02:00
Jelmer Vernooij
ffc5cbfe80
Move object files lists to makefile rather than smb_build.
...
(This used to be commit 5628d58990144463fd87f8c847c9384ac2193681)
2008-04-14 16:53:00 +02:00
Jelmer Vernooij
afe3e8172d
Install public header files again and include required prototypes.
...
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2008-04-02 04:53:27 +02:00
Jelmer Vernooij
39a6495c86
Make more module init functions public, since they are compiled with -fvisibility=hidden. Not doing this causes failures on Mac OS X.
...
(This used to be commit da1a9438bd89569077ef1eaa9dc977b5f9d62836)
2008-02-20 19:40:20 +01:00