summaryrefslogtreecommitdiff
path: root/dfs_server
AgeCommit message (Collapse)AuthorFilesLines
2024-05-22s4:dfs_server: Use lpcfg_dns_hostname() in dfs_server_ad.cAndreas Schneider1-4/+4
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-04-27dfs_server: Fix debug statement if searched_site is NULLAndreas Schneider1-2/+5
In file included from source4/include/includes.h:61, from dfs_server/dfs_server_ad.c:21: dfs_server/dfs_server_ad.c: In function ‘get_dcs.constprop’: lib/util/debug.h:200:12: error: ‘%s’ directive argument is null [-Werror=format-overflow=] 200 | && (dbgtext body) ) | ~^~~~~~~~~~~~~ dfs_server/dfs_server_ad.c:462:25: note: in expansion of macro ‘DEBUG’ 462 | DEBUG(2,(__location__ ": Site: %s %s\n", | ^~~~~ Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2022-08-26dfs_server: Fix typosVolker Lendecke1-2/+3
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2020-08-28lib/util: remove extra safe_string.h fileMatthew DeVore1-0/+2
lib/util/safe_string.h is similar to source3/include/safe_string.h, but the former has fewer checks. It is missing bcopy, strcasecmp, and strncasecmp. Add the missing elements to lib/util/safe_string.h remove the other safe_string.h which is in the source3-specific path. To accomodate existing uses of str(n?)casecmp, add #undef lines to source files where they are used. Signed-off-by: Matthew DeVore <matvore@google.com> Reviewed-by: David Mulder <dmulder@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Aug 28 02:18:40 UTC 2020 on sn-devel-184
2018-05-04dsdb: Allow the disable of the Windows server site fallbackGarming Sam1-2/+2
A usage in GetDCNameEx2 could return the wrong result. This may need to be fixed in other places. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13365 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2016-01-13Avoid including libds/common/roles.h in public loadparm.h header.Jelmer Vernooij1-0/+1
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-By: Andrew Bartlett <abartlet@samba.org> Reviewed-By: Stefan Metzmacher <metze@samba.org>
2015-07-10dfs_server: Use multi-byte string handlingRobin McCorkell1-2/+2
Pre-empt a bug with multi-byte DFS pathname handling by using strchr_m() Signed-off-by: Robin McCorkell <rmccorkell@karoshi.org.uk> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Fri Jul 10 20:35:47 CEST 2015 on sn-devel-104
2015-07-10Fix MSDFS with POSIX paths in vfs_dfs_samba4Robin McCorkell1-3/+6
Allow for POSIX path separators when parsing a DFS query string Signed-off-by: Robin McCorkell <rmccorkell@karoshi.org.uk> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2015-07-10dfs_server: Fix whitespaceRobin McCorkell1-8/+8
Signed-off-by: Robin McCorkell <rmccorkell@karoshi.org.uk> Reviewed-by: Volker Lendecke <Volker.Lendecke@SerNet.DE> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-07-10Replace random() and related calls with generate_random_buffer()Robin McCorkell1-3/+1
Result: better seeded random numbers that are cryptographically secure (not that it matters in this case) Please let it be right this time... Signed-off-by: Robin McCorkell <rmccorkell@karoshi.org.uk> Reviewed-by: Volker Lendecke <Volker.Lendecke@SerNet.DE> Reviewed-by: Jeremy Allison <jra@samba.org>
2014-11-26dfs_server: Only build in case we build an AD DC too.Andreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2014-04-03dfs_server: get_dcs: fix pointer list terminationArvid Requate1-3/+8
Should fix a potential SEGV e.g. in case searched_site == NULL and no objects with objectClass=site are found. Signed-off-by: Arvid Requate <requate@univention.de> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2014-03-21dfs_server: randomize the server redirect setArvid Requate1-0/+20
comply with [MS-DFSC] section 3.2.1.1 Signed-off-by: Arvid Requate <requate@univention.de> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-03-05Remove a number of NT_STATUS_HAVE_NO_MEMORY_AND_FREE macros from the codebase.Garming Sam1-8/+32
Following the current coding guidelines, it is considered bad practice to return from within a macro and change control flow as they look like normal function calls. Change-Id: I133eb5a699757ae57b87d3bd3ebbcf5b556b0268 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2013-08-02dfs_server: Use dsdb_search_one to catch 0 results as well as NO_SUCH_OBJECT ↵Andrew Bartlett1-5/+5
errors This ensures we do not de-reference an invalid rs->msgs pointer if the pointed-to object was not objectclass=computer Andrew Bartlett Bug: https://bugzilla.samba.org/show_bug.cgi?id=10052 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Aug 2 13:11:20 CEST 2013 on sn-devel-104
2013-06-11s4-dfs_server: check for netbios aliases in ad_get_referralsBjörn Baumbach1-0/+35
Without this patch ad_get_referrals checks for netbios, dns names and ip, but not for netbios aliases set by netbios aliases option, whether the requested name is our dns name. Pair-programmed-with: Stefan Metzmacher <metze@samba.org> Signed-off-by: Björn Baumbach <bb@sernet.de> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Tue Jun 11 01:12:08 CEST 2013 on sn-devel-104
2012-12-12dfs_server: Don't allocate a subcontext twice.Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Wed Dec 12 11:28:39 CET 2012 on sn-devel-104
2012-07-30dfs_server_ad: s/acct/aname as acct() is a functionStefan Metzmacher1-3/+3
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Jul 30 03:17:49 CEST 2012 on sn-devel-104
2012-07-30dfs_server_ad: return STATUS_NOT_FOUND if the client connects to an ip addressStefan Metzmacher1-0/+8
metze
2012-06-15lib/param: Create a seperate server role for "active directory domain ↵Andrew Bartlett1-3/+3
controller" This will allow us to detect from the smb.conf if this is a Samba4 AD DC which will allow smarter handling of (for example) accidentially starting smbd rather than samba. To cope with upgrades from existing Samba4 installs, 'domain controller' is a synonym of 'active directory domain controller' and new parameters 'classic primary domain controller' and 'classic backup domain controller' are added. Andrew Bartlett
2012-04-26dfs_server: fix the response to please XP and Windows 2008R2 doing so avoid ↵Matthieu Patou1-4/+12
continious DFS requests from W2K8R2
2011-10-08dfs_server: add generic dfs_server_ad_get_referrals() callStefan Metzmacher3-0/+877
This is a generic function to implement the domain, dc and sysvol DFS referrals. metze