summaryrefslogtreecommitdiffstats
path: root/source4/torture/ldap
Commit message (Collapse)AuthorAgeFilesLines
* r13924: Split more prototypes out of include/proto.h + initial work on headerJelmer Vernooij2007-10-101-0/+1
| | | | | file dependencies (This used to be commit 122835876748a3eaf5e8d31ad1abddab9acb8781)
* r13346: use private proto header files for the torture testsStefan Metzmacher2007-10-101-0/+2
| | | | | metze (This used to be commit 67837dbd2bcff8ec1917ba02884ee2eaa0776b46)
* r12637: test CLDAP with both NULL and non-NULL userAndrew Tridgell2007-10-101-0/+6
| | | | (This used to be commit 2b603d3ecf2f3108942422bda864e41c8addbf60)
* r12608: Remove some unused #include lines.Jelmer Vernooij2007-10-103-5/+0
| | | | (This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
* r12510: Change the DCE/RPC interfaces to take a pointer to aJelmer Vernooij2007-10-101-1/+0
| | | | | | | | | | | | | | | | | dcerpc_interface_table struct rather then a tuple of interface name, UUID and version. This removes the requirement for having a global list of DCE/RPC interfaces, except for these parts of the code that use that list explicitly (ndrdump and the scanner torture test). This should also allow us to remove the hack that put the authservice parameter in the dcerpc_binding struct as it can now be read directly from dcerpc_interface_table. I will now modify some of these functions to take a dcerpc_syntax_id structure rather then a full dcerpc_interface_table. (This used to be commit 8aae0f168e54c01d0866ad6e0da141dbd828574f)
* r9702: r9680@blu: tridge | 2005-08-27 18:45:08 +1000Andrew Tridgell2007-10-101-1/+1
| | | | | | | | | | | | - fixed ncacn_ip_tcp to use the generic async name resolution methods, so NBT names now work (as requested several times by abartlet!) - changed resolve_name() to take an event_context, so it doesn't cause the whole process to block - cleaned up the talloc_find_parent_bytype() calls to go via a cleaner event_context_find() call (This used to be commit b3d491b210a8b889a25efcb273e70fefbd01b7f7)
* r8520: fixed a pile of warnings from the build farm gcc -Wall output onAndrew Tridgell2007-10-101-3/+3
| | | | | | | | | | | | | | 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)
* r8368: the type filed depends on the user being present or notStefan Metzmacher2007-10-101-12/+7
| | | | | | | call ndr_print for each call metze (This used to be commit 0a07e4ef8d869d35ceb0761495e367077f2361ba)
* r8223: fix the values of nt_version and type we reply in the server code,Stefan Metzmacher2007-10-101-6/+6
| | | | | | | also name the struct like the nt_version number metze (This used to be commit 1e3af5cc1f68b7fa54b8ba77ed9836a619a69436)
* r7626: a new ldap client library. Main features are:Andrew Tridgell2007-10-102-93/+81
| | | | | | | | | | | | | - hooked into events system, so requests can be truly async and won't interfere with other processing happening at the same time - uses NTSTATUS codes for errors (previously errors were mostly ignored). In a similar fashion to the DOS error handling, I have reserved a range of the NTSTATUS code 32 bit space for LDAP error codes, so a function can return a LDAP error code in a NTSTATUS - much cleaner packet handling (This used to be commit 2e3c660b2fc20e046d82bf1cc296422b6e7dfad0)
* r7593: simplified the memory management in the ldap code. Having a mem_ctxAndrew Tridgell2007-10-101-4/+4
| | | | | element in a structure is not necessary any more. (This used to be commit 912d0427f52eac811b27bf7e385b0642f7dc7f53)
* r7527: - added a ldb_search_bytree() interface, which takes a ldb_parse_treeAndrew Tridgell2007-10-101-1/+2
| | | | | | | | | | | | | | | | instead of a search expression. This allows our ldap server to pass its ASN.1 parsed search expressions straight to ldb, instead of going via strings. - updated all the ldb modules code to handle the new interface - got rid of the separate ldb_parse.h now that the ldb_parse structures are exposed externally - moved to C99 structure initialisation in ldb - switched ldap server to using ldb_search_bytree() (This used to be commit 96620ab2ee5d440bbbc51c1bc0cad9977770f897)
* r6933: Add a couple of helper functions for creating nbt names.Tim Potter2007-10-101-3/+1
| | | | (This used to be commit b896daf11c3efb1b3ca939575da9dab82b395777)
* r6875: added a BENCH-CLDAP test. Speed of the cldap server isn't all that ↵Andrew Tridgell2007-10-101-0/+129
| | | | | | | important, but it does help find memory leaks (and in fact, there was one, fixed in next commit) (This used to be commit ab19e38c236366f2a93ea1f44911c56519779c9d)
* r6816: - fixed debug display of ndr netlogon unionAndrew Tridgell2007-10-101-2/+5
| | | | | - send a username when scanning to make structure elements clearer (This used to be commit 7d19eb9433b615fdf789cb07aeb331df92b05abd)
* r6795: Make some functions static and remove some unused ones.Jelmer Vernooij2007-10-101-3/+3
| | | | (This used to be commit 46509eb89980bfe6dabd71264d570ea356ee5a22)
* r6776: make the cldap torture test not dependent on the realm being setAndrew Tridgell2007-10-101-27/+54
| | | | | correctly - it gets the realm from an initial no-attribute search (This used to be commit 52d10c8d99521f9dd02891a30688472d96860aef)
* r6766: some more cldap tests ...Andrew Tridgell2007-10-101-2/+23
| | | | | | my best guess now is that w2k3 converts the & in the cldap query to an | for the ldap search. at least it behaves roughly like that. (This used to be commit 1d6ab9aaefee71e3d0f87c1afae8ccdbae1f0e04)
* r6765: expanded the cldap test suite to test the usage of the DomainGuid,Andrew Tridgell2007-10-101-5/+60
| | | | | | | | | AAC, and User attributes in cldap netlogon queries interestingly, while WinXP generated cldap filters with these set, the w2k3 cldap server seems to completely ignore them, so I didn't need to alter our cldap server at all to pass the test :-) (This used to be commit 177c8becd2051c9d1f261358baf4b85ca89700d8)
* r6732: - move sasl send recv code to the ldap libStefan Metzmacher2007-10-102-152/+31
| | | | | | | - support 'modrdn' ldif metze (This used to be commit b6a1734699953964fcde6fe6ea7048496492eb33)
* r6720: added support for the remaining 2 types of CLDAP netlogonAndrew Tridgell2007-10-101-13/+7
| | | | | | | | | | response. To work around the fact that the type of the returned data is not encoded in the packet, this required adding ndr_pull_union_blob() which allows us to pull a blob into a union with a specified switch value, in this case the switch value comes from the calling NtVer field. (This used to be commit bd27e626c27be72913d1a1569ee6e2e2711df84e)
* r6694: a simple CLDAP torture testAndrew Tridgell2007-10-101-0/+81
| | | | | | | | | interestingly, w2k3 seems to have 4 different varients of the netlogon cldap response. We decode two of them so far. The other two are tricky as they aren't distinguished by a command code, they use the same command codes (0x13 and 0x17) but have quite a different format. Very strange! (This used to be commit 58f1c39282e281450fe94ceab7ca0a53ec7172e1)
* r6028: A MAJOR update to intergrate the new credentails system fully withAndrew Bartlett2007-10-102-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GENSEC, and to pull SCHANNEL into GENSEC, by making it less 'special'. GENSEC now no longer has it's own handling of 'set username' etc, instead it uses cli_credentials calls. In order to link the credentails code right though Samba, a lot of interfaces have changed to remove 'username, domain, password' arguments, and these have been replaced with a single 'struct cli_credentials'. In the session setup code, a new parameter 'workgroup' contains the client/server current workgroup, which seems unrelated to the authentication exchange (it was being filled in from the auth info). This allows in particular kerberos to only call back for passwords when it actually needs to perform the kinit. The kerberos code has been modified not to use the SPNEGO provided 'principal name' (in the mechListMIC), but to instead use the name the host was connected to as. This better matches Microsoft behaviour, is more secure and allows better use of standard kerberos functions. To achieve this, I made changes to our socket code so that the hostname (before name resolution) is now recorded on the socket. In schannel, most of the code from librpc/rpc/dcerpc_schannel.c is now in libcli/auth/schannel.c, and it looks much more like a standard GENSEC module. The actual sign/seal code moved to libcli/auth/schannel_sign.c in a previous commit. The schannel credentails structure is now merged with the rest of the credentails, as many of the values (username, workstation, domain) where already present there. This makes handling this in a generic manner much easier, as there is no longer a custom entry-point. The auth_domain module continues to be developed, but is now just as functional as auth_winbind. The changes here are consequential to the schannel changes. The only removed function at this point is the RPC-LOGIN test (simulating the load of a WinXP login), which needs much more work to clean it up (it contains copies of too much code from all over the torture suite, and I havn't been able to penetrate its 'structure'). Andrew Bartlett (This used to be commit 2301a4b38a21aa60917973451687063d83d18d66)
* r5928: Use cli_credentials in:Jelmer Vernooij2007-10-101-3/+4
| | | | | | | | - gtk+ (returned by GtkHostBindingDialog as well now) - torture/ - librpc/ - lib/com/dcom/ (This used to be commit ccefd782335e01e8e6ecb2bcd28a4f999c53b1a6)
* r5305: removed libcli/ldap/ldap.h from includes.hAndrew Tridgell2007-10-102-0/+2
| | | | (This used to be commit 0df3fdd8178085c40f9cd776cc3e1486ca559c8e)
* r5107: moved the horrible ldap socket code, and the even worseAndrew Tridgell2007-10-101-6/+59
| | | | | | | asn1-tied-to-blocking-sockets code into the ldap client and torture suite, and out of the generic libs, so nobody else is tempted to use it for any new code. (This used to be commit 39d1ced21baeca40d1fca62ba65243ca8f15757e)
* r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for theAndrew Tridgell2007-10-101-1/+1
| | | | | | large commit. I thought this was worthwhile to get done for consistency. (This used to be commit ec32b22ed5ec224f6324f5e069d15e92e38e15c0)
* r4459: GENSEC refinements:Andrew Bartlett2007-10-101-31/+26
| | | | | | | | | | | | | | | | | | | In developing a GSSAPI plugin for GENSEC, it became clear that the API needed to change: - GSSAPI exposes only a wrap() and unwrap() interface, and determines the location of the signature itself. - The 'have feature' API did not correctly function in the recursive SPNEGO environment. As such, NTLMSSP has been updated to support these methods. The LDAP client and server have been updated to use the new wrap() and unwrap() methods, and now pass the LDAP-* tests in our smbtorture. (Unfortunely I still get valgrind warnings, in the code that was previously unreachable). Andrew Bartlett (This used to be commit 9923c3bc1b5a6e93a5996aadb039bd229e888ac6)
* r3583: - seperate the ldap client code and the ldap parsing codeStefan Metzmacher2007-10-102-8/+8
| | | | | | | | | (vl: we should only sync the parsing code with trunk) - use hierachical talloc in the ldap client code metze (This used to be commit 1e9c0b68ca9ddb28877d45fc1b47653b13a7446d)
* r3463: separated out some more headers (asn_1.h, messages.h, dlinklist.h and ↵Andrew Tridgell2007-10-101-1/+2
| | | | | | ioctl.h) (This used to be commit b97e395c814762024336c1cf4d7c25be8da5813a)
* r3324: made the smbtorture code completely warning freeAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 7067bb9b52223cafa28470f264f0b60646a07a01)
* r3079: make code more pretty :-)Andrew Bartlett2007-10-101-4/+4
| | | | | Andrew Bartlett (This used to be commit 9c911b361c4dbb058eb48150c113c2e95b8053da)
* r2853: add torture test to find the defaultNamingContext on the RootDSEStefan Metzmacher2007-10-102-0/+198
| | | | | | | | | | try a sasl sealed CompareRequest abartlet: we need to check how SINGING only can work, it failed for me:-( metze (This used to be commit 1dabd04e265bbc1e8335f816708c2639746d9afd)
* r2071: - change smbtorture to use the popt_common stuffStefan Metzmacher2007-10-101-1/+1
| | | | | | | | | | | | | | | | | | this means -U DOM\\user is know allowed - torture:userdomain is a new smb.conf parameter because lp_workgroup is not the domain of the user - we use torture:userdomain now in the tests instad of lp_workgroup - for backward compat the userdomain is lp_workgroup() by default and not lp_netbios_name(), which my change later to match 'net' and 'smbclient'.. - we now have dublicate options e.g. -N -s ... tridge: can we change this? metze (This used to be commit 4733dcbf5f17422a8a4c9f99664270b3aa66c586)
* r1855: fix compiler warning and output fromattingStefan Metzmacher2007-10-101-2/+4
| | | | | metze (This used to be commit 59f3d417449f55d247604966b6e9fa2fa97c5124)
* r1805: ...I just forgot to say that the sasl bind actually works now:-)Stefan Metzmacher2007-10-102-0/+45
| | | | | metze (This used to be commit a2cd725681fa7b10a5cca337554be17f628465c0)
* r1802: start to support SASL in our ldap librariesSimo Sorce2007-10-102-14/+65
| | | | | | does not work yet but we are close currently we send the right data on wire and fail to decode the answer (This used to be commit 10baf585821bf1f10a3786045a0965000cdffd12)
* r1793: try to bind multiple times as anonimous and userSimo Sorce2007-10-102-6/+54
| | | | | | | | added -D parameter to torture to be able to specify: - user dn - base dn - user secret (This used to be commit 0eaec28f5c511a28764a1d350c2eaaf37272eb62)
* r1771: OK Let's add tests for ldap.Simo Sorce2007-10-102-0/+74
Thanks to Metze and Volker for their unvaluable support :) (This used to be commit e6a6c0737ab94d58930c0d4e1ef0bb4d99510833)