summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_lookup.c
AgeCommit message (Collapse)AuthorFilesLines
2012-08-31s4-libnet: Fix memory leak of lsa_RefDomainList and lsa_String onto libnet_ctxAndrew Bartlett1-2/+2
These are only needed for as long as the call, and should be children of the private context. This was found based on a log provided by Ricky Nance <ricky.nance@weaubleau.k12.mo.us>. Thanks Ricky! Andrew Bartlett
2012-04-30s4-libnet: Add mem_ctx to libnet_DomainOpen calls (bug #8889)Andrew Bartlett1-1/+1
2012-04-30s4-libnet: Add mem_ctx to libnet_Lookup calls (bug #8889)Andrew Bartlett1-4/+6
2010-12-12s4:libcli/finddc.h - fix header dependanciesMatthias Dieter Wallnöfer1-6/+0
And optimise includes
2010-11-27s4-libnet: use the full DNS domain for CLDAP lookups if possibleAndrew Tridgell1-1/+6
many of the internal libnet interfaces use the short domain name, which leads to unreliable NBT lookups. If we are trying to look for our workgroup, then look for our DNS domain instead Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Sat Nov 27 03:47:52 CET 2010 on sn-devel-104
2010-09-25s4-libnet: added server_address option in libnet contextAndrew Tridgell1-1/+1
this is used by libnet_LookupDCs Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2010-09-19s4-libnet: use the right domain name in libnet_lookupAndrew Tridgell1-4/+1
2010-09-15s4-finddc: use NBT lookup for a 1C name if joining a short domain nameAndrew Tridgell1-1/+4
once we get the 1C lookup reply, use a CLDAP query to find the details for the server Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15s4-libcli: change finddcs.h -> finddc.hAndrew Tridgell1-1/+1
this prevents conflicts with old generated files and we can only even return one DC with this interface. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15s4-libnet: use finddcs_cldap() in libnet_lookupAndrew Tridgell1-11/+17
this may later be changed to do fallback to NBT as well, but for now cldap is sufficient Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15s4-libnet: converted finddcs call to tevent_reqAndrew Tridgell1-17/+17
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell1-3/+3
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-07-04s4:libnet - add missing "talloc_free"s for "c" contexts on "recv" operationsMatthias Dieter Wallnöfer1-3/+1
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-7/+8
2010-03-12s4:libnet/libnet_lookup.c: make use of use tevent_req based ↵Stefan Metzmacher1-12/+17
dcerpc_binding_handle stubs metze
2010-03-01s4:libnet: make use of explicit dcerpc_*_recv functionsStefan Metzmacher1-1/+1
metze
2009-09-19s4-resolve: fixed a crash bug on timeoutAndrew Tridgell1-1/+1
We were creating the name resolution context as a child of lp_ctx, which meant when we gave up on a connection the timer on name resolution kept running, and when it timed out the callback crashed as the socket was already removed.
2009-05-14s4:libnet Use str_list_make_single() in resolv codeAndrew Bartlett1-1/+1
2008-10-27s4-lsa: merge lsa_LookupNames/{2,3,4} from s3 lsa idl.Günther Deschner1-1/+3
Guenther
2008-10-12Use common strlist implementation in Samba 3 and Samba 4.Jelmer Vernooij1-1/+1
2008-02-28Remove use of global_loadparm.Jelmer Vernooij1-1/+2
(This used to be commit 3cf3922c806d0e33439073d204b44bf0af3102d5)
2007-12-21r26441: Remove global_loadparm uses.Jelmer Vernooij1-1/+2
(This used to be commit 32007c6277efa46341da7741b749a98633d71640)
2007-12-21r26435: Remove global_loadparm instance.Jelmer Vernooij1-1/+1
(This used to be commit 66fd8d480bdfeb1c95da8843da3d18abe3f997e1)
2007-12-21r26376: Add context for libcli_resolve.Jelmer Vernooij1-6/+6
(This used to be commit 459e1466a411d6f83b7372e248566e6e71c745fc)
2007-12-21r26333: No more global_loadparm in finddcs.Jelmer Vernooij1-1/+2
(This used to be commit 0c91026e587ca74692bc9223a6b5493e35943aee)
2007-12-21r26328: remove more uses of global_loadparm.Jelmer Vernooij1-1/+1
(This used to be commit 40ae12c08647c47a9c504d39ee6f61c32b4e5748)
2007-10-10r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij1-1/+1
(This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
2007-10-10r25446: Merge some changes I made on the way home from SFO:Jelmer Vernooij1-1/+4
2007-09-29 More higher-level passing around of lp_ctx. 2007-09-29 Fix warning. 2007-09-29 Pass loadparm contexts on a higher level. 2007-09-29 Avoid using global loadparm context. (This used to be commit 3468952e771ab31f90b6c374ade01c5550810f42)
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-10r22944: fix bug #4618:Stefan Metzmacher1-1/+1
rename private -> private_data metze (This used to be commit 58551f2f28fce8f1fcd04736c47ecd7458f32ea2)
2007-10-10r22811: two more memory allocation checks.Rafal Szczesniak1-0/+2
rafal (This used to be commit d66b13f6facdba407604f33211574f43163b186c)
2007-10-10r22764: - replace talloc_zero with composite_createRafal Szczesniak1-16/+5
- use event context provided with libnet context instead of creating a new one rafal (This used to be commit ce8414b3daad335eac356a393f1653e2e10e2640)
2007-10-10r20328: use prereq function instead of local implementation.Rafal Szczesniak1-42/+3
rafal (This used to be commit f79dcd41e78662c376d29cf210436c0a28cce4e8)
2007-10-10r20225: we can't use composite_error() in a _recv() function, as that wouldStefan Metzmacher1-1/+4
trigger the caller to call the _recv() function again and will be an endless loop. this is just a fix the to prevent this, and use a more usefull error code than NT_STATUS_UNSUCCESSFUL I think we should move the checks about valid responses into the function which receives the the response (here continue_name_found()), so that the _recv() function only needs to transfer the output vars to the caller without any logic to analyse the network response. metze (This used to be commit c02048f4800fe14e975f1cf0b5bd45f14261ac18)
2007-10-10r20222: return status unsuccessful when null pointers are returnedRafal Szczesniak1-1/+3
from lookup call. rafal (This used to be commit 0eb605cf423faee2111b3d70cef1c578564a0fb5)
2007-10-10r20182: make the composite api usage more consistant (only cosmetic change)Stefan Metzmacher1-0/+1
metze (This used to be commit 1f67433914bfab83bf1950263809c9e152ad6dcc)
2007-10-10r20177: return the actual function status code.Rafal Szczesniak1-0/+2
rafal (This used to be commit 2d046cc0df820edc141a74e7d204e4fba462e037)
2007-10-10r20166: we have a dom_sid_add_rid() function that adds the rid after allocatingStefan Metzmacher1-11/+9
enough memory for the new sub_auth element. the old version wrote behind the buffer. also make the output sid a pointer. metze (This used to be commit b9901d5f8c9aa777bafd3a670d27209552bc56b7)
2007-10-10r20161: Prevent potential segfault in case account is unknown.Rafal Szczesniak1-8/+12
rafal (This used to be commit 9f5f9ee9b4b815715c0b580e21ab0906fa15ae96)
2007-10-10r19482: remove pointless castStefan Metzmacher1-1/+1
metze (This used to be commit 81a975100cbf7058de9245e51992d61cbdcb6473)
2007-10-10r17856: The two new functions - libnet_LookupName and libnet_UserInfo.Rafal Szczesniak1-0/+215
These two perform name resolving in SAM database and fetching user account information, respectively. The code is quite rough yet, but it builds and basic tests work. Now, I'm working on cleaning it up... rafal (This used to be commit 4a932255a01d9f1ac91feb9e371494933f1ae74e)
2007-10-10r16895: Add continue function and prevent from segfaulting (or unpredictableRafal Szczesniak1-16/+41
behaviour) if composite context returned from _send function was NULL. rafal (This used to be commit d9fce228d006b702d76faebe4eb436327a7212d0)
2007-10-10r16693: Name type should be passed further down the lookup engine insteadRafal Szczesniak1-7/+5
of assuming only PDC name type. Also, fix the comment. rafal (This used to be commit 436c8a721114815af8eb8c96ebdfe32c1875faaa)
2007-10-10r13938: Around round of splitupsJelmer Vernooij1-0/+1
(This used to be commit 2d655f05285a86bb1bbb882e4dd843def15c9dfa)
2007-10-10r13924: Split more prototypes out of include/proto.h + initial work on headerJelmer Vernooij1-0/+1
file dependencies (This used to be commit 122835876748a3eaf5e8d31ad1abddab9acb8781)
2007-10-10r13317: Create a new function messaging_client_init() which can be used whenAndrew Bartlett1-1/+1
we don't have a server messaging context. We should replace the datagram messages with stream sockets in this case, so we don't have to create a unique socket. Andrew Bartlett (This used to be commit fd974fb64792f8f6c532b01d2a2e012be18eef7e)
2007-10-10r12861: Cope when we are not supplied the messaging context. This is justAndrew Bartlett1-3/+0
another case where we have to fallback to the node status request. Andrew Bartlett (This used to be commit 181064dbcf102de80937fc30b3d3ba5114194a72)
2007-10-10r12858: This moves the libnet_LookupPdc code to use a GetDC request to findAndrew Bartlett1-9/+39
the remote server's name, or in the absence of a local nbt_server to communicate with (or without root access), a node status request. The result is that we are in a better position to use kerberos, as well as to remove the 'password server' mandatory parameter for the samsync and samdump commands. (I need this to put these into SWAT). The only problem I have is that I must create a messaging context, which requires a server ID. As a client process, I don't expect to get messages, but it is currently required for replies, so I generate a random() number. We probably need the servers to accept connections on streamed sockets too, for client-only tasks that want IRPC. Because I wanted to test this code, I have put the NET-API-* tests into our test scripts, to ensure they pass and keep passing. They are good frontends onto the libnet system, and I see no reason not to test them. In doing so the NET-API-RPCCONNECT test was simplified to take a binding string on the command line, removing duplicate code, and testing the combinations in the scripts instead. (I have done a bit of work on the list shares code in libnet_share.c to make it pass 'make test') In the future, I would like to extend the libcli/findds.c code (based off volker's winbind/wb_async_helpers.c, which is why it shows up a bit odd in the patch) to handle getting multiple name replies, sending a getdc request to each in turn. (posted to samba-technical for review, and I'll happily update with any comments) Andrew Bartlett (This used to be commit 7ccddfd3515fc2c0d6f447c768ccbf7a220c3380)
2007-10-10r12608: Remove some unused #include lines.Jelmer Vernooij1-3/+0
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10r11794: - fixed a valgrind error in libnet, caused by using a stack variableAndrew Tridgell1-6/+5
after the function has returned (the *address variable was assigned into the state). - changed libnet to use event_context_find() instead of event_context_init(), so it works as a child of existing code that uses a event context (This used to be commit 47ceb2d3558304b4c4fb00582fb25a885cea2ef5)