summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* VERSION: Disable GIT_SNAPSHOT for the 4.9.11 release.samba-4.9.11Karolin Seeger2019-07-031-1/+1
| | | | Signed-off-by: Karolin Seeger <kseeger@samba.org>
* WHATSNEW: Add release notes for Samba 4.9.11.Karolin Seeger2019-07-031-3/+46
| | | | Signed-off-by: Karolin Seeger <kseeger@samba.org>
* ldb: Release ldb 1.4.7ldb-1.4.7Stefan Metzmacher2019-07-034-1/+284
| | | | | | | | | | | | | Compared to 1.4.6: * LDAP_REFERRAL_SCHEME_OPAQUE was added to ldb_module.h in order to fix bug #12478. It means that Samba >= 4.9.11 is no longer able to build with ldb 1.4.6. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12478 Signed-off-by: Stefan Metzmacher <metze@samba.org>
* VERSION: Bump version up to 4.9.11...Karolin Seeger2019-07-021-2/+2
| | | | | | and re-enable GIT_SNAPSHOT. Signed-off-by: Karolin Seeger <kseeger@samba.org>
* VERSION: Disable GIT_SNAPSHOT for the 4.9.10 release.samba-4.9.10Karolin Seeger2019-07-021-1/+1
| | | | Signed-off-by: Karolin Seeger <kseeger@samba.org>
* WHATSNEW: Add release notes for Samba 4.9.10.Karolin Seeger2019-07-021-2/+127
| | | | Signed-off-by: Karolin Seeger <kseeger@samba.org>
* python/ntacls: use correct "state directory" smb.conf option instead of ↵Björn Baumbach2019-06-261-1/+3
| | | | | | | | | | | | | | | | "state dir" samba-tool ntacl get testfile --xattr-backend=tdb --use-ntvfs Fixes: Unknown parameter encountered: "state dir" Signed-off-by: Björn Baumbach <bb@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 670a12df52df63a067b638d37bec71341bf18bdd) BUG: https://bugzilla.samba.org/show_bug.cgi?id=14002 Autobuild-User(v4-9-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-9-test): Wed Jun 26 11:40:27 UTC 2019 on sn-devel-144
* docs: Document DCEPRC binding string for rpcclientAndreas Schneider2019-06-262-59/+68
| | | | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Feb 4 02:03:56 CET 2019 on sn-devel-144 (cherry picked from commit cca48c1a1029685672e1c25e39e8be2be947238f)
* s3:mdssvc: fix flex compilation errorRalph Boehme2019-06-211-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | [4440/4495] Compiling bin/default/source3/rpc_server/mdssvc/sparql_lexer.lex.c ../../source3/rpc_server/mdssvc/sparql_lexer.l:26: error: "yyalloc" redefined [-Werror] 26 | #define yyalloc SMB_MALLOC Looks like the dirty redefine trick doesn't work anymore with newer flex versions. According to the flex manual the right thing to do is to provide own functions for yyalloc and yyrealloc when passing the options "noyyalloc noyyrealloc". BUG: https://bugzilla.samba.org/show_bug.cgi?id=13987 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Tue May 28 11:49:06 UTC 2019 on sn-devel-184 (cherry picked from commit 9053391f86a529e0a7dbcd23fa3a555d85c2207c) Autobuild-User(v4-9-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-9-test): Fri Jun 21 11:49:59 UTC 2019 on sn-devel-144
* ctdb-scripts: Fix tcp_tw_recycle existence checkRafael David Tinoco via samba-technical2019-06-211-2/+2
| | | | | | | | | | | | | | | | | net.ipv4.tcp_tw_recycle has been removed from Linux 4.12 but, still, makes sense to check its existence. Unfortunately, current check does not test for the procfs file existence. This commit fixes the issue. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13984 Signed-off-by: Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Jun 4 23:31:24 UTC 2019 on sn-devel-184 (cherry picked from commit 843fbb1207ee7ac84f3282974b66b9290d8da0ac)
* docs: Improve documentation of "lanman auth" and "ntlm auth" connectionAndrew Bartlett2019-06-212-10/+13
| | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13981 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit dbf3e81f7f0b28c69dca004b32ea3a7344b0cad3)
* vfs_fruit: remove a now unnecessary includeRalph Boehme2019-06-211-1/+0
| | | | | | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu May 30 22:12:50 UTC 2019 on sn-devel-184 (cherry picked from commit 9a2c9834cb1b77547b8b932c35870301afb9fc25)
* vfs_fruit: use VFS functions in ad_read_rsrc_adouble()Ralph Boehme2019-06-211-7/+6
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 9fe84a6345bf5d9fdb1df87a853db3380e6fb0f7)
* vfs_fruit: use fsp and remove syscalls from ad_convert_blank_rfork()Ralph Boehme2019-06-211-24/+12
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 70c4a8f0ac307009c26e857523192c95b42a92f5)
* vfs_fruit: use VFS function in ad_convert_truncate()Ralph Boehme2019-06-211-6/+4
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 3739ad90cf2bbaa2094a34197c894363d2e24a5a)
* vfs_fruit: add VFS handle to ad_convert_truncate()Ralph Boehme2019-06-211-2/+3
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 4e44b1da9357120f0ad74e24c650bc6386085c47)
* vfs_fruit: use fsp and remove mmap in ad_convert_xattr()Ralph Boehme2019-06-211-24/+5
| | | | | | | | | | No need to mmap() anyway, the xattr data is already available in ad->ad_data. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 4ff7ea0e0312c737aefd350f7b8fbed4c8602325)
* vfs_fruit: remove use of mmap() from ad_convert_move_reso()Ralph Boehme2019-06-211-23/+33
| | | | | | | | | | | We now have an fsp that we can use, so we can get rid of mmap() and sys_pread()/sys_pwrite(). Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 0041855af0b05d6c47558880d6eebd1970179272)
* vfs_fruit: convert ad_open_rsrc() to open a proper fsp with ↵Ralph Boehme2019-06-211-26/+77
| | | | | | | | | | | | | | SMB_VFS_CREATE_FILE() A first step in converting all raw syscalls to use proper VFS functions. All existing users of the raw system filedescriptor continue to use the fd from fsp->fh for now. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 29418c726be74feb1d8c3ac9f7b8c983901a2aab)
* vfs_fruit: only do cross protocol locking on non-internal opensRalph Boehme2019-06-211-1/+3
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit f5f7d1e9bf7e39933ccf7c874e682f9df80a6fec)
* vfs_fruit: remove a layer of indirectionRalph Boehme2019-06-211-11/+4
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 97d485ff2cda85edeba163ea01b6abfa705db20f)
* vfs_fruit: pass VFS handle to ad_convert_move_reso()Ralph Boehme2019-06-211-2/+3
| | | | | | | | | | Not used for now, that comes next. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 3919ea048fe3b763657e14cdfb5920184a900d27)
* vfs_fruit: remove xattr code from the AppleDouble subsystemRalph Boehme2019-06-211-27/+8
| | | | | | | | | | | | The subsystem consumers have been reworked in the previous commits, so this is not used anymore. ad_init() doesn't need a handle argument anymore due to this, remove it as well. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit e3cb1cb24f2a31d7fd03f3bdf417f4704fb4ac7c)
* vfs_fruit: remove now unused AppleDouble code for resource fork in xattrRalph Boehme2019-06-211-67/+3
| | | | | | | | | | | | | This was only needed to get the resourcefork size via the ad_* AppleDouble function. This is now done with a fstat on the low level xattr fd (remember, this is Solaris only code...), so we can remove the xattr special casing from the AppleDouble functions. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit cb9dffa1c66294b6eed85e7576aa99c642d0b541)
* vfs_fruit: use stream code for resource fork size calculation in ↵Ralph Boehme2019-06-211-1/+1
| | | | | | | | | | | | | readdir_attr_rfork_size() This works as well, using an fstat() on the filehandle to get the size. This is tested by the torture test "vfs.fruit.SMB2/CREATE context AAPL". Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit a23bcc1916a49bf3e0edece190e5434e39862d2c)
* vfs_fruit: use correct case FRUIT_RSRC_STREAM in readdir_attr_rfork_size()Ralph Boehme2019-06-211-1/+1
| | | | | | | | | | | | | | | | | | | | | This is a genuine bug, but luckily this would only impact configs which nobody uses: fruit:metadata = netatalk fruit:resource = stream With the above configuration the switch in readdir_attr_rfork_size() would hit the default case and so always report resource forks as 0 bytes in size. All deployment that I've seen that use fruit:resource=stream also use fruit:metadata=stream, so the switch takes FRUIT_META_STREAM case which runs the correct code readdir_attr_rfork_size_stream(). Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 83179a74119de84d20f796c241aae6bccb83a68b)
* vfs_fruit: ignore AppleDouble files in fruit_unlink()Ralph Boehme2019-06-211-0/+2
| | | | | | | | | | | | Otherwise, if SMB_VFS_UNLINK() is called for an AppleDouble path "._file", we try to delete "._._file" which doesn't make sense. AppleDouble files don't have AppleDouble themselves. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 797dc649456f39add4af8b54b60db0268ad4e90e)
* vfs_fruit: add a missing elseRalph Boehme2019-06-211-1/+1
| | | | | | | | | | | Luckily the missing else has the same control flow due to the previous if and else blocks calling return. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 44d8568001c87d28962dfc4e3fde6d0f7f409997)
* vfs_fruit: add and use is_adouble_file()Ralph Boehme2019-06-211-5/+22
| | | | | | | | | | | This adds a helper function that checks whether the last component of a path is an AppleDouble sidecar file with "._" name prefix. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit ad70c947c759aa0965ee57f973fb8dc1909e0e39)
* vfs_fruit: finally, remove ad_handle from struct adoubleRalph Boehme2019-06-211-2/+0
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit e266daaed149561b746dbb8d5e9523862f0057b5)
* vfs_fruit: pass handle to ad_convert_delete_adfile()Ralph Boehme2019-06-211-4/+5
| | | | | | | | | | On the course of removing ad_handle from struct adouble, step 10. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 5f4d16b40e07acf8d27fee62f1a56de175663a1d)
* vfs_fruit: pass handle to ad_convert_finderinfo()Ralph Boehme2019-06-211-3/+4
| | | | | | | | | | On the course of removing ad_handle from struct adouble, step 9. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 50874c1548d62ab0ddaaa6dd4124279ee5029fcf)
* vfs_fruit: pass handle to ad_convert_blank_rfork()Ralph Boehme2019-06-211-3/+4
| | | | | | | | | | On the course of removing ad_handle from struct adouble, step 8. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit adc7ac38b849b4dce4a85fd6442c8d4b9da57686)
* vfs_fruit: pass handle to ad_convert_xattr()Ralph Boehme2019-06-211-4/+5
| | | | | | | | | | On the course of removing ad_handle from struct adouble, step 7. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit fd2f4cf828ee4c31e3b5a27a79d3a0ee12a5877a)
* vfs_fruit: indentation fixRalph Boehme2019-06-211-2/+2
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 400b3c2f8c82b1defe1e321e0cdae486b930344f)
* vfs_fruit: pass handle to ad_read_rsrc() and all the way downRalph Boehme2019-06-211-9/+12
| | | | | | | | | | On the course of removing ad_handle from struct adouble, step 5. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 661dfa4a19673fdb30d5bf36279cdf867454b947)
* vfs_fruit: use proper VFS function in ad_read_meta()Ralph Boehme2019-06-211-1/+3
| | | | | | | | | | | Continuing to ignore a possible error for now, this is in an error codepath anyway. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 30ca328c698c2e035e240359bda7c9dcbeb646df)
* vfs_fruit: indentation fixRalph Boehme2019-06-211-1/+1
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 47721d8d359ef78b8dd4f77f92c30c2caf2c4a80)
* vfs_fruit: pass handle to ad_read_meta()Ralph Boehme2019-06-211-3/+4
| | | | | | | | | | On the course of removing ad_handle from struct adouble, step 4. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit f8df09157f31b53dbe73eaf4349fc071bfcc1b90)
* vfs_fruit: pass handle to ad_read()Ralph Boehme2019-06-211-2/+4
| | | | | | | | | | On the course of removing ad_handle from struct adouble, step 3. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit d0abf945e683766029d28915541a4baf9f3879ab)
* vfs_fruit: pass handle to ad_set()Ralph Boehme2019-06-211-4/+8
| | | | | | | | | | On the course of removing ad_handle from struct adouble, step 2. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit c78ba30ac4534b7037b979ac96b77b834b2eb2fe)
* vfs_fruit: pass handle to ad_fset()Ralph Boehme2019-06-211-8/+12
| | | | | | | | | | On the course of removing ad_handle from struct adouble, step 1. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 585d4d49770b4ddc3f7d9dcbb3e322f072767781)
* s3:auth: explicitly add BUILTIN\Guests to the guest tokenRalph Boehme2019-06-212-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | This changes ensures that smbd always adds BUILTIN\Guests to the guest token which is required for guest authentication. Currently the guest token depends on the on-disk configured group mappings. If there's an existing group mapping for BUILTIN\Guests, but LOCALSAM\Guest is not a member, the final guest token won't contain BUILTIN\Guests. For SMB2 the flag SMB2_SESSION_FLAG_IS_GUEST will not be set in the final SMB2 SESSION_SETUP response, because smbd sets it based on the token containing the BUILTIN\Guests SID S-1-5-32-546. At the same time, the packet is not signed which causes Windows clients and smbclient to reject the unsigned SMB2 SESSION_SETUP response. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13944 Pair-programmed-with: Stefan Metzmacher <metze@samba.org> Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jun 5 16:55:26 UTC 2019 on sn-devel-184 (cherry picked from commit a66af4c96accba4ee64eeb1958458b69f3ccec1d)
* tests: add a test for guest authenticationRalph Boehme2019-06-213-0/+109
| | | | | | | | | | | | | | | This verifies that smbd always adds BUILTIN\Guests to the guest token which is required for guest authentication. Currently the guest token depends on the on-disk configured group mappings. If there's an existing group mapping for BUILTIN\Guests, but LOCALSAM\Guest is not a member, the final guest token won't contain BUILTIN\Guests. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13944 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit 0e88f98855e24cfddb55bef65c5910b8e662c630)
* selftest: allow guest login in the ad_member_idmap_rid envRalph Boehme2019-06-211-0/+1
| | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13944 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (backported from commit ac2167eb2349dc1c453e14a65692f16c8ba6532e)
* s3:smbd: call reinit_guest_session_info() in the conf updated handlerRalph Boehme2019-06-211-0/+6
| | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13944 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit f4e340a48b6f059a1daa66deb9c26da9e8fcd5e7)
* s3:auth: add reinit_guest_session_info()Ralph Boehme2019-06-212-0/+12
| | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13944 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit 8096cc7eb2b36b074ff17a52dc3540be4ecff6bb)
* dsdb:audit_log: avoid printing "... remote host [Unknown] SID [(NULL SID)] ..."Stefan Metzmacher2019-06-211-1/+3
| | | | | | | | | | | | We better print "... remote host [Unknown] SID [S-1-5-18] ..." in 'dsdb_audit' message, this matches what we print for 'dsdb_json_audit'. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13916 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> (cherry picked from commit 706aba5bf62e674ae12786f6ab275752b8714464)
* ldap server: generate correct referral schemesGary Lockyer2019-06-216-6/+41
| | | | | | | | | | | | | | | | Ensure that the referrals returned in a search request use the same scheme as the request, i.e. referrals recieved via ldap are prefixed with "ldap://" and those over ldaps are prefixed with "ldaps://" BUG: https://bugzilla.samba.org/show_bug.cgi?id=12478 Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri May 24 05:12:14 UTC 2019 on sn-devel-184 (cherry picked from commit 1958cd8a7fb81ec51b81944ecf4dd0fb5c4208fa)
* ldap tests: test scheme for referralsGary Lockyer2019-06-213-0/+101
| | | | | | | | | | | | Ensure that the referrals returned in a search request use the same scheme as the request, i.e. referrals recieved via ldap are prefixed with "ldap://" and those over ldaps are prefixed with "ldaps://" BUG: https://bugzilla.samba.org/show_bug.cgi?id=12478 Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit 6ccf74cf878c295903673e3a1d1ed924a5e87547)