summaryrefslogtreecommitdiff
path: root/source4/torture/ldap/cldap.c
AgeCommit message (Collapse)AuthorFilesLines
2012-01-04LDAP-CLDAP: demonstrate that pdc name is not an unc pathStefan Metzmacher1-0/+9
For LOGON_SAM_LOGON_RESPONSE_EX and LOGON_SAM_LOGON_USER_UNKNOWN_EX, pdc name is not in unc path form. [MS-ADTS] 7.3.1.* uses UnicodeLogonServer, which seems to be in unc form, while NetbiosComputerName is not in unc form. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jan 4 20:06:14 CET 2012 on sn-devel-104
2012-01-04LDAP-CLDAP: demonstrate that pdc name is an unc pathStefan Metzmacher1-0/+6
For LOGON_SAM_LOGON_RESPONSE and LOGON_SAM_LOGON_USER_UNKNOWN, I assume all levels without _EX in the name, pdc name is in unc path form. [MS-ADTS] 7.3.1.* uses UnicodeLogonServer, which seems to be in unc form, while NetbiosComputerName is not in unc form. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jan 4 13:37:42 CET 2012 on sn-devel-104
2011-11-27s4:torture/ldap/cldap.c - remove the ↵Matthias Dieter Wallnöfer1-87/+4
"test_cldap_netlogon_flag_ds_dns_forest" test The test is wrong since the DNS_* (DS_DNS_CONTROLLER, DS_DNS_DOMAIN, DS_DNS_FOREST_ROOT) flags are never set on the plain CLDAP pipe. They get added only over the DsRGetDCName* calls over NETLOGON RPC. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Nov 27 16:23:27 CET 2011 on sn-devel-104
2011-10-10libcli/cldap: don't pass tevent_context to cldap_socket_init()Stefan Metzmacher1-4/+4
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 10 23:23:07 CEST 2011 on sn-devel-104
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell1-5/+5
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>
2010-05-21s4:libcli/ldap Rename ldap.h to libcli_ldap.hAndrew Bartlett1-1/+1
It is a problem if a samba header is called ldap.h if we also want to use OpenLDAP's ldap.h Andrew Bartlett
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-27/+24
2010-04-27nbt: samlogon/netlogon structures - unify denominationsMatthias Dieter Wallnöfer1-6/+6
2010-02-26s4:torture: use a connected CLDAP socket.Stefan Metzmacher1-9/+33
This is needed because we don't (want) to specify an explicit local address. And the socket family (ipv4 vs. ipv6) needs to be autodetected based on the remote address before the socket() syscall. Otherwise we would try to connect to a ipv4 address through an ipv6only socket. metze
2009-10-20s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell1-2/+0
This reduces compile time somewhat.
2009-10-19s4:torture "cldap" test - restore the removed constraints and add moreMatthias Dieter Wallnöfer1-4/+34
Consider for description the post on the technical mailing list. I hope that this satisfies abartlet again.
2009-10-18s4:torture "cldap" test - rework and test more resultsMatthias Dieter Wallnöfer1-21/+17
2009-10-14s4:torture cldap test - Add checks for the right forest DNS nameMatthias Dieter Wallnöfer1-1/+6
2009-10-02ds-flags: use the new name DS_DNS_FOREST_ROOTAndrew Tridgell1-5/+5
Update to use the new DS_DNS_FOREST_ROOT name, which makes it clearer what this bit means (according to MS-ADTS doc)
2009-06-18Fixes for the "cldap" testsMatthias Dieter Wallnöfer1-1/+4
- Insert a check after the "tsocket" library call to make sure that the call terminated correctly - Add a comment to explain why on further calls of "cldap_socket_init" the destination address hasn't to be specified
2009-03-22LDAP-CLDAP: remove temporary debug statements...Stefan Metzmacher1-2/+2
metze
2009-03-19s4:cldap: rewrite the cldap library based on tsocketStefan Metzmacher1-30/+45
metze
2008-10-15idl: finally fully share nbt.idl in s3 and s4.Günther Deschner1-7/+8
Guenther
2008-10-14Sync with Samba 3.Jelmer Vernooij1-4/+4
2008-10-02The IRIX compiler does not like embedded unnamed unionsVolker Lendecke1-44/+44
2008-08-20Add a torture test for the new 'netlogon' flags.Matthias Dieter Wallnöfer1-0/+146
Signed-off-by: Andrew Bartlett <abartlet@samba.org> (This used to be commit a484334fb4dafd1df514d1bf88f7e0c4f07dff86)
2008-06-14Make up the right dependencies now that ldb depends on libeventsSimo Sorce1-1/+1
(This used to be commit 3b8eec7ca334528cad3cdcd5e3fc5ee555d8d0e0)
2008-05-21Extend the 'netlogon' CLDAP and NBT implementation.Andrew Bartlett1-1/+21
This now handles checking if the user exists, including validating the ACB mask on the user. This would be a nasty security hole, if Kerberos did not already expose this information anonymously... Andrew Bartlett (This used to be commit 441b286c00f9a7743cdefeb243545bdbd2c94c5e)
2008-05-17Modify the LDAP-CLDAP test for better coverage.Andrew Bartlett1-4/+8
This fixes up some compiled in constants and checks a couple more NT versions. Andrew Bartlett (This used to be commit ca1b3fe3add06dc22361d5a5fe7e63a6abb1697c)
2008-05-16Rework the CLDAP and NBT netlogon requests and responses.Andrew Bartlett1-33/+34
This now matches section 7.3.3 of the MS-ATDS specification, and all our current tests pass against windows. There is still more testing to do, and the server implementation to complete. Andrew Bartlett (This used to be commit 431d0c03965cbee85691cd0dc1e2a509c1a2b717)
2008-04-21Remove more event_context_init() uses from function calls within deep down ↵Simo Sorce1-2/+6
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)
2008-02-21Remove yet more uses of global_loadparm.Jelmer Vernooij1-2/+2
(This used to be commit e01c1e87c0fe9709df7eb5b863f7ce85564174cd)
2008-01-06r26683: Add another testcase. I still don't know what's wrong here.Andrew Bartlett1-0/+21
Andrew Bartlett (This used to be commit 341929c615e5573887889cf22950a25b536c6fc1)
2008-01-06r26682: Move CLDAP to the modern torture system, and add value checking.Andrew Bartlett1-14/+28
Andrew Bartlett (This used to be commit df17c4a9e84f4a4087c4a4a8ad44a82d4acb522e)
2007-12-21r26271: Remove some more uses of global_loadparm.Jelmer Vernooij1-23/+24
(This used to be commit e9875fcd56de0748ed78d7e3c9cdb4919cd96d3c)
2007-12-21r26238: Add a loadparm context parameter to torture_context, remove more ↵Jelmer Vernooij1-16/+11
uses of global_loadparm. (This used to be commit a33a5530545086b81a3b205aa109dff11c546926)
2007-12-21r26223: Move loadparm context up in the stack.Jelmer Vernooij1-0/+2
(This used to be commit 152e2b1a283675b53affb8f7225644925f171dbd)
2007-10-10r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij1-5/+5
(This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
2007-10-10r25035: Fix some more warnings, use service pointer rather than service ↵Jelmer Vernooij1-2/+2
number in more places. (This used to be commit df9cebcb97e20564359097148665bd519f31bc6f)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-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)
2007-10-10r20318: do what the printf statement says:-)Stefan Metzmacher1-1/+1
metze (This used to be commit dd9ef6e5ab471665d019fbda87c90f5c95bd57ea)
2007-10-10r19831: Big ldb_dn optimization and interfaces enhancement patchSimo Sorce1-3/+3
This patch changes a lot of the code in ldb_dn.c, and also removes and add a number of manipulation functions around. The aim is to avoid validating a dn if not necessary as the validation code is necessarily slow. This is mainly to speed up internal operations where input is not user generated and so we can assume the DNs need no validation. The code is designed to keep the data as a string if possible. The code is not yet 100% perfect, but pass all the tests so far. A memleak is certainly present, I'll work on that next. Simo. (This used to be commit a580c871d3784602a9cce32d33419e63c8236e63)
2007-10-10r19737: - add some more CLDAP rootdse testsStefan Metzmacher1-9/+26
- don't ignore CLDAP rootdse errors anymore metze (This used to be commit 712577d9e284445e9257b691aefb719511d6a57c)
2007-10-10r19392: Use torture_setting_* rather than lp_parm_* where possible.Jelmer Vernooij1-1/+1
(This used to be commit b28860978fe29c5b10abfb8c59d7182864e21dd6)
2007-10-10r15788: Do not crash when no result is returnedSimo Sorce1-0/+4
(This used to be commit efb7e39e512eb71deaeef1315bc88a902e5cd848)
2007-10-10r15530: added testing of generic CLDAP requests, looking at the rootDSE. JerryAndrew Tridgell1-5/+91
has found that w2k3 does respond to rootDSE cldap requests. This test shows that it does indeed work, but the expression handling is not what you would expect (This used to be commit 388e98e77cfd1603156ea431877e40ac886d9c08)
2007-10-10r14720: Add torture_context argument to all torture testsJelmer Vernooij1-1/+2
(This used to be commit 3c7a5ce29108dd82210dc3e1f00414f545949e1d)
2007-10-10r14464: Don't include ndr_BASENAME.h files unless strictly required, insteadJelmer Vernooij1-0/+1
try to include just the BASENAME.h files (containing only structs) (This used to be commit 3dd477ca5147f28a962b8437e2611a8222d706bd)
2007-10-10r12637: test CLDAP with both NULL and non-NULL userAndrew Tridgell1-0/+6
(This used to be commit 2b603d3ecf2f3108942422bda864e41c8addbf60)
2007-10-10r12608: Remove some unused #include lines.Jelmer Vernooij1-2/+0
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10r8368: the type filed depends on the user being present or notStefan Metzmacher1-12/+7
call ndr_print for each call metze (This used to be commit 0a07e4ef8d869d35ceb0761495e367077f2361ba)
2007-10-10r8223: fix the values of nt_version and type we reply in the server code,Stefan Metzmacher1-6/+6
also name the struct like the nt_version number metze (This used to be commit 1e3af5cc1f68b7fa54b8ba77ed9836a619a69436)
2007-10-10r6816: - fixed debug display of ndr netlogon unionAndrew Tridgell1-2/+5
- send a username when scanning to make structure elements clearer (This used to be commit 7d19eb9433b615fdf789cb07aeb331df92b05abd)
2007-10-10r6776: make the cldap torture test not dependent on the realm being setAndrew Tridgell1-27/+54
correctly - it gets the realm from an initial no-attribute search (This used to be commit 52d10c8d99521f9dd02891a30688472d96860aef)
2007-10-10r6766: some more cldap tests ...Andrew Tridgell1-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)