summaryrefslogtreecommitdiffstats
path: root/source4/torture/auth/ntlmssp.c
Commit message (Collapse)AuthorAgeFilesLines
* auth/gensec: introduce gensec_internal.hStefan Metzmacher2013-08-101-0/+1
| | | | | | | | | | We should treat most gensec related structures private. It's a long way, but this is a start. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* auth: Make more of the ntlmssp code private or staticAndrew Bartlett2012-02-171-0/+1
| | | | | | | | | | Now that there is only one gensec_ntlmssp server, some of these functions can be static For the rest, put the implemtnation of the gensec_ntlmssp code into ntlmssp_private.h Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* gensec: move event context from gensec_*_init() to gensec_update()Andrew Bartlett2011-10-181-2/+2
| | | | | | | | | | | | This avoids keeping the event context around on a the gensec_security context structure long term. In the Samba3 server, the event context we either supply is a NULL pointer as no server-side modules currently use the event context. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* gensec: Remove mem_ctx from calls that do not return memoryAndrew Bartlett2011-08-031-4/+4
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* source4/torture: Fix prototypes for all functions.Jelmer Vernooij2011-03-191-0/+1
|
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-111-2/+1
| | | | | | | | This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-2/+2
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:ntlmssp: rename gensec_ntlmssp_state => ntlmssp_stateStefan Metzmacher2010-03-241-14/+14
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: keep struct gensec_ntlmssp_context in gensec_security->private_dataStefan Metzmacher2010-03-241-2/+7
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell2009-10-201-1/+0
| | | | This reduces compile time somewhat.
* Add gensec_settings structure. This wraps loadparm_context for now, butJelmer Vernooij2008-11-021-2/+3
| | | | should in the future only contain some settings required for gensec.
* Add TALLOC_CTX pointer to strhex_to_data_blob for consistency with SambaJelmer Vernooij2008-10-181-6/+6
| | | | 3.
* Remove more event_context_init() uses from function calls within deep down ↵Simo Sorce2008-04-211-2/+4
| | | | | | | | the code. Make sure we pass around the event_context where we need it instead. All test but a few python ones fail. Jelmer promised to fix them. (This used to be commit 3045d391626fba169aa26be52174883e18d323e9)
* Use torture_assert_mem_equal() in a couple more places.Jelmer Vernooij2008-04-131-2/+2
| | | | (This used to be commit e2c3fab9d1bf0482c15a115e7d373562ffe50b29)
* Install public header files again and include required prototypes.Jelmer Vernooij2008-04-021-1/+2
| | | | (This used to be commit 47ffbbf67435904754469544390b67d34c958343)
* r26260: Store loadparm context in gensec context.Jelmer Vernooij2007-12-211-2/+2
| | | | (This used to be commit b9e3a4862e267be39d603fed8207a237c3d72081)
* r25035: Fix some more warnings, use service pointer rather than service ↵Jelmer Vernooij2007-10-101-2/+2
| | | | | | number in more places. (This used to be commit df9cebcb97e20564359097148665bd519f31bc6f)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r21039: Test some more failure paths (trying to increase the lcov score).Andrew Bartlett2007-10-101-0/+7
| | | | | Andrew Bartlett (This used to be commit 76812a0337fbfcb19939c6ee7a57975b6d690a4d)
* r20949: Looking over some lcov output, try and walk some error paths.Andrew Bartlett2007-10-101-0/+17
| | | | | Andrew Bartlett (This used to be commit 9ed9a032c249461e69242afc2e0ccdd47524064e)
* r19598: Ahead of a merge to current lorikeet-heimdal:Andrew Bartlett2007-10-101-1/+1
| | | | | | | | | Break up auth/auth.h not to include the world. Add credentials_krb5.h with the kerberos dependent prototypes. Andrew Bartlett (This used to be commit 2b569c42e0fbb596ea82484d0e1cb22e193037b9)
* r19507: Merge my DSO fixes branch. Building Samba's libraries as shared ↵Jelmer Vernooij2007-10-101-1/+1
| | | | | | | libraries works again now, by specifying --enable-dso to configure. (This used to be commit 7a01235067a4800b07b8919a6a475954bfb0b04c)
* r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grainedJelmer Vernooij2007-10-101-28/+18
| | | | | | | | | | | | | | | | | | | output in the testsuite rather than just True or False for a set of tests. The aim is to use this for: * known failure lists (run all tests and detect tests that started working or started failing). This would allow us to get rid of the RPC-SAMBA3-* tests * nicer torture output * simplification of the testsuite system * compatibility with other unit testing systems * easier usage of smbtorture (being able to run one test and automatically set up the environment for that) This is still a work-in-progress; expect more updates over the next couple of days. (This used to be commit 0eb6097305776325c75081356309115f445a7218)
* r16328: Wrap all existing tests in simple single-function testsuites.Jelmer Vernooij2007-10-101-4/+4
| | | | (This used to be commit 7e811adf59841936b7e634fca4e95630f890c5af)
* r16304: Improve testing UI API. This now allows registering the fullJelmer Vernooij2007-10-101-10/+14
| | | | | | | test suite tree, looks a bit more like other unit testing API's, fixes some memory responsibility issues, introduces testcases, and removes the need for tests to call torture_ok(). (This used to be commit 0445b1a56a02552f895f400960b9ced39244a144)
* r16161: Convert to UI APIJelmer Vernooij2007-10-101-38/+32
| | | | (This used to be commit 8ed3fc0f86532bb224ea68584bdaf618903bd914)
* r14720: Add torture_context argument to all torture testsJelmer Vernooij2007-10-101-1/+2
| | | | (This used to be commit 3c7a5ce29108dd82210dc3e1f00414f545949e1d)
* r8520: fixed a pile of warnings from the build farm gcc -Wall output onAndrew Tridgell2007-10-101-2/+4
| | | | | | | | | | | | | | S390. This is an attempt to avoid the panic we're seeing in the automatic builds. The main fixes are: - assumptions that sizeof(size_t) == sizeof(int), mostly in printf formats - use of NULL format statements to perform dn searches. - assumption that sizeof() returns an int (This used to be commit a58ea6b3854973b694d2b1e22323ed7eb00e3a3f)
* r7633: this patch started as an attempt to make the dcerpc code use a givenAndrew Tridgell2007-10-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | event_context for the socket_connect() call, so that when things that use dcerpc are running alongside anything else it doesn't block the whole process during a connect. Then of course I needed to change any code that created a dcerpc connection (such as the auth code) to also take an event context, and anything that called that and so on .... thus the size of the patch. There were 3 places where I punted: - abartlet wanted me to add a gensec_set_event_context() call instead of adding it to the gensec init calls. Andrew, my apologies for not doing this. I didn't do it as adding a new parameter allowed me to catch all the callers with the compiler. Now that its done, we could go back and use gensec_set_event_context() - the ejs code calls auth initialisation, which means it should pass in the event context from the web server. I punted on that. Needs fixing. - I used a NULL event context in dcom_get_pipe(). This is equivalent to what we did already, but should be fixed to use a callers event context. Jelmer, can you think of a clean way to do that? I also cleaned up a couple of things: - libnet_context_destroy() makes no sense. I removed it. - removed some unused vars in various places (This used to be commit 3a3025485bdb8f600ab528c0b4b4eef0c65e3fc9)
* r6799: Remove a rudundent variable from the context structure - we can figureAndrew Bartlett2007-10-101-4/+10
| | | | | | | this out by asking GENSEC, just like everybody else. Andrew Bartlett (This used to be commit 0268d6c46b73bf2097247639df2532b5e8591531)
* r6468: Fix LOCAL-NTLMSSP test with new NTLMSSP structure.Andrew Bartlett2007-10-101-15/+12
| | | | | Andrew Bartlett (This used to be commit 8d503fb153c25580c06dd13ca83df47f9e434c7a)
* r6458: Split up NTLMSSP into a new directory, and into seperate files for theAndrew Bartlett2007-10-101-0/+1
| | | | | | | | | client and server logic code. In future, this may allow us to build only the NTLMSSP client, and not the server, but in the short-term, it allows me greater sainity in moving around these files. Andrew Bartlett (This used to be commit 2f22841c6753e3d5816c12bd463b71f74e1d8796)
* r6454: Start to migrate NTLMSSP away from it's own API to just use GENSEC.Andrew Bartlett2007-10-101-7/+38
| | | | | | | | The aim here is to remove the extra layer of abstraction, and to then use the credentials code directly in the NTLMSSP layer. Andrew Bartlett (This used to be commit b14c530dfd3e56975dea7e30aa8d62d4f2827700)
* r3453: - split out the auth and popt includesAndrew Tridgell2007-10-101-0/+1
| | | | | | | | - tidied up some of the system includes - moved a few more structures back from misc.idl to netlogon.idl and samr.idl now that pidl knows about inter-IDL dependencies (This used to be commit 7b7477ac42d96faac1b0ff361525d2c63cedfc64)
* r3324: made the smbtorture code completely warning freeAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 7067bb9b52223cafa28470f264f0b60646a07a01)
* r2645: converted the NTLMSSP code to the new style of tallocAndrew Tridgell2007-10-101-4/+4
| | | | (This used to be commit b378aae95d4001c4cf4e6e59ed80ee1bd55382ee)
* r2284: Thanks to some great detective work by tridge, NTLM2 signing now works.Andrew Bartlett2007-10-101-2/+2
| | | | | | | | | | | | | | | | This means that 'require NTLMv2 session security' now works for RPC pipe signing. We don't yet have sealing, but it can't be much further. This is almost all tridge's code, munged into a form that can work with the GENSEC API. This commit also includes more lsakey fixes - that key is used for all DCE-RPC level authenticated connections, even over CIFS/ncacn_np. No doubt I missed something, but I'm going to get some sleep :-) Andrew Bartlett (This used to be commit a1fe175eec884280fb7e9ca8f528134cf4600beb)
* r2098: The first 8 bytes of this sig is not used in the 'is it correct' ↵Andrew Bartlett2007-10-101-1/+1
| | | | | | | calculation. Andrew Bartlett (This used to be commit 16ef31a79ed959e80904b84b0230cadb1a7dd8d1)
* r1992: Make the NTLMSSP torture test show more detail, and return failure etc.Andrew Bartlett2007-10-101-4/+22
| | | | | Andrew Bartlett (This used to be commit a8e76085a7414068aa96b6544b28afc1e1e1010c)
* r1161: Include a few more self-check NTLMSSP examples.Andrew Bartlett2007-10-101-0/+28
| | | | | Andrew Bartlett (This used to be commit 81678f8dc6fc7ef7218c7fad2b2766355927f21c)
* r1005: there was one NTLMSSP_STATE left in:-(Stefan Metzmacher2007-10-101-1/+1
| | | | | | | ...fix the build metze (This used to be commit 49118189444e020b4d3159b6edbc6f7559dbb1a6)
* r892: Actually add the NTLMSSP self-check torture code this time...Andrew Bartlett2007-10-101-0/+57
Andrew Bartlett (This used to be commit 9df5cbbd7694202c17a7c47ed0469d6f80412c54)