summaryrefslogtreecommitdiffstats
path: root/source4/libcli/finddcs_cldap.c
Commit message (Collapse)AuthorAgeFilesLines
* libcli: Fix improper use of tevent_req_simple_recv_ntstatusVolker Lendecke2013-08-121-6/+10
| | | | | | | | | tevent_req_simple_recv_ntstatus is just for the simple return without anything to do after it. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:libcli/finddcs_cldap: allow io->in.server_address as hostnameStefan Metzmacher2012-12-021-3/+58
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4:libcli/finddcs_cldap: try all NBT#1C addressesStefan Metzmacher2012-12-021-12/+8
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4:libcli/finddcs_cldap.c - let "finddcs_cldap" work either with the IP ↵Matthias Dieter Wallnöfer2011-11-261-14/+27
| | | | | | | | address or the domain name This will be useful for a new "samba-tool domain info" command. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:finddcs_cldap: debug the correct server address instead of NULLStefan Metzmacher2011-11-101-1/+2
| | | | metze
* s4:finddcs_cldap: talloc free old memory before allocating a new netlogon structStefan Metzmacher2011-10-221-0/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Oct 22 04:55:54 CEST 2011 on sn-devel-104
* s4:finddcs_cldap: close the socket when it's not used anymoreStefan Metzmacher2011-10-221-1/+2
| | | | | | The amount of possible fd's might be restricted, so close them early. metze
* s4:finddcs_cldap: finddcs_cldap_recv() returns NTSTATUSStefan Metzmacher2011-10-221-1/+6
| | | | | | | We need to convert the errno based error to NTSTATUS before calling tevent_req_error (via tevent_req_nterror). metze
* s4-cldap: fix cldap_socket_init to always specify the dest if local is NULLMatthieu Patou2011-10-221-17/+18
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sat Oct 22 00:02:00 CEST 2011 on sn-devel-104
* libcli/cldap: don't pass tevent_context to cldap_socket_init()Stefan Metzmacher2011-10-101-3/+3
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 10 23:23:07 CEST 2011 on sn-devel-104
* libcli/cldap: pass tevent_context to cldap_netlogon_send()Stefan Metzmacher2011-10-101-1/+2
| | | | metze
* s4:libcli/finddc.h - fix header dependanciesMatthias Dieter Wallnöfer2010-12-121-2/+0
| | | | And optimise includes
* s4-cldap: fixed debug message to match contentAndrew Tridgell2010-11-061-1/+1
| | | | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Sat Nov 6 04:26:45 UTC 2010 on sn-devel-104
* s4-cldap: print all the DNS servers foundAndrew Tridgell2010-11-051-0/+5
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-finddcs: better debug messages to help track down DNS problemsAndrew Tridgell2010-10-151-1/+12
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libcli/security Use common security.hAndrew Bartlett2010-10-121-1/+1
| | | | | | | | | | This includes dom_sid.h and security_token.h and will be moved to the top level shortly. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 03:35:36 UTC 2010 on sn-devel-104
* s4-finddcs: allow override of server IP addressAndrew Tridgell2010-09-251-1/+35
| | | | | | this will be used to implement --ipaddress option to net commands Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s4-cldap: improved debug msgs in finddcs_cldap()Andrew Tridgell2010-09-191-3/+5
|
* s4-finddcs: added some debug messages on failureAndrew Tridgell2010-09-191-4/+7
|
* s4-finddcs: ensure we free previous cldap requests before starting a new oneAndrew Tridgell2010-09-151-1/+1
|
* s4-finddcs: show required server type bits on failureAndrew Tridgell2010-09-151-2/+3
| | | | | | | when we skip a DC because it doesn't have the required server type bits, show what bits we wanted Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-finddc: use NBT lookup for a 1C name if joining a short domain nameAndrew Tridgell2010-09-151-13/+98
| | | | | | | 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>
* s4-libcli: change finddcs.h -> finddc.hAndrew Tridgell2010-09-151-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>
* s4-finddcs: added finddcs_cldap()Andrew Tridgell2010-09-151-0/+244
this finds DCs with a specified set of server_type bit using SRV lookups and CLDAP Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>