summaryrefslogtreecommitdiff
path: root/dfs_server
Commit message (Collapse)AuthorAgeFilesLines
* dsdb: Allow the disable of the Windows server site fallbackGarming Sam2018-05-041-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>
* Avoid including libds/common/roles.h in public loadparm.h header.Jelmer Vernooij2016-01-131-0/+1
| | | | | | Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-By: Andrew Bartlett <abartlet@samba.org> Reviewed-By: Stefan Metzmacher <metze@samba.org>
* dfs_server: Use multi-byte string handlingRobin McCorkell2015-07-101-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
* Fix MSDFS with POSIX paths in vfs_dfs_samba4Robin McCorkell2015-07-101-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>
* dfs_server: Fix whitespaceRobin McCorkell2015-07-101-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>
* Replace random() and related calls with generate_random_buffer()Robin McCorkell2015-07-101-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>
* dfs_server: Only build in case we build an AD DC too.Andreas Schneider2014-11-261-2/+2
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* dfs_server: get_dcs: fix pointer list terminationArvid Requate2014-04-031-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>
* dfs_server: randomize the server redirect setArvid Requate2014-03-211-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>
* Remove a number of NT_STATUS_HAVE_NO_MEMORY_AND_FREE macros from the codebase.Garming Sam2014-03-051-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>
* dfs_server: Use dsdb_search_one to catch 0 results as well as NO_SUCH_OBJECT ↵Andrew Bartlett2013-08-021-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
* s4-dfs_server: check for netbios aliases in ad_get_referralsBjörn Baumbach2013-06-111-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
* dfs_server: Don't allocate a subcontext twice.Andreas Schneider2012-12-121-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
* dfs_server_ad: s/acct/aname as acct() is a functionStefan Metzmacher2012-07-301-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
* dfs_server_ad: return STATUS_NOT_FOUND if the client connects to an ip addressStefan Metzmacher2012-07-301-0/+8
| | | | metze
* lib/param: Create a seperate server role for "active directory domain ↵Andrew Bartlett2012-06-151-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
* dfs_server: fix the response to please XP and Windows 2008R2 doing so avoid ↵Matthieu Patou2012-04-261-4/+12
| | | | continious DFS requests from W2K8R2
* dfs_server: add generic dfs_server_ad_get_referrals() callStefan Metzmacher2011-10-083-0/+877
This is a generic function to implement the domain, dc and sysvol DFS referrals. metze