diff options
| author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-02-27 14:52:46 +0000 |
|---|---|---|
| committer | Jeremy Allison <jra@samba.org> | 2015-02-27 22:53:06 +0100 |
| commit | 13c9774662b74c4188d41bb275b9cb72dcc9df74 (patch) | |
| tree | 0e6a14daed66ce850d2e382c2788f8e3e7b0d6e6 /lib | |
| parent | 200d0bc3a870f1d7d3c5bcf33fceaa2b99e8299f (diff) | |
| download | samba-13c9774662b74c4188d41bb275b9cb72dcc9df74.tar.gz samba-13c9774662b74c4188d41bb275b9cb72dcc9df74.tar.xz samba-13c9774662b74c4188d41bb275b9cb72dcc9df74.zip | |
MSDFS referral shuffling
Shuffle MSDFS referral list in smbd in accordance with [MS-DFSC] 3.2.1.1
When parsing an MSDFS symlink, the names are shuffled with a Fisher-Yates
algorithm.
Signed-off-by: Robin McCorkell <rmccorkell@karoshi.org.uk>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/param/param_table.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/param/param_table.c b/lib/param/param_table.c index 18b0628791..00274ca2cb 100644 --- a/lib/param/param_table.c +++ b/lib/param/param_table.c @@ -3942,6 +3942,15 @@ struct parm_struct parm_table[] = { .flags = FLAG_ADVANCED | FLAG_SHARE, }, { + .label = "msdfs shuffle referrals", + .type = P_BOOL, + .p_class = P_LOCAL, + .offset = LOCAL_VAR(msdfs_shuffle_referrals), + .special = NULL, + .enum_list = NULL, + .flags = FLAG_ADVANCED | FLAG_SHARE, + }, + { .label = "host msdfs", .type = P_BOOL, .p_class = P_GLOBAL, |
