This file is indexed.

/usr/share/zentyal/templates/samba/samba.mas is in zentyal-samba 2.3.12+quantal1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<%args>
    $params
</%args>
<%init>
use EBox::Gettext;
</%init>
% if ($params->{'username'}) {
	<h3><% __('Active Directory/File sharing account') %></h3>
	<& .sambaDisabled, $params &>
	<table class="formTable">
	<form action='/Samba/ActiveSharing' method='post'>
	    <input type="hidden" name="user" value="<% $params->{'username'} %>">
	<tr>
	<td class="tright" width="170px">
		<% __('User account') %>:
	</td>
	<td>
        <select name="accountEnabled" enabled>
%       if ($params->{'accountEnabled'} == 1) {
            <option value='no' ><% __('Disabled') %></option>
            <option selected value='yes' ><% __('Enabled') %></option>
%       } else {
            <option selected value='no' ><% __('Disabled') %></option>
            <option value='yes' ><% __('Enabled') %></option>
%       }
        </select>
	</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<input class='inputButton' type='submit' name='change'
					value="<% __('Change') %>"
					alt="<% __('Change') %>">
		</td>
	</tr>
	</form>
	</table>

%  } else {

	<h3> <% __('Sharing directory for this group') %> </h3>
	<form action='/Samba/ActiveSharing' method='post'>
    <div class='help'>
        <%   __("You can set a share directory for this group, but you should keep in mind that Microsoft Windows 98 and Millenium will not be able to see names longer than 12 characters") %>
    </div>

    <& .sambaDisabled, $params &>

    <input type="hidden" name="group" value="<% $params->{'groupname'} %>">
%           if (length($params->{'sharename'}) > 12) {
                <div class='warning'>
                <%   __("This resource name is longer than 12 characters.") %>
                </div>
%           }
    <span class="ftitle"><% __('Directory name')%>:</span>
    <input  type="text"
            name="sharename"
            class="inputText"
            value="<% $params->{'share'} %>">
%       if (defined $params->{'share'})  {
            <input class='inputButton' type='submit' name='namechange'
                value="<% __('Change') %>"
                 alt="<% __('Change') %>">
            <input class='inputButton' type='submit' name='remove'
                value="<% __('Delete') %>"
                 alt="<% __('Delete') %>">
%       } else {
            <input class='inputButton' type='submit' name='add'
                value="<% __('Add') %>"
                 alt="<% __('Add') %>">
%       }
	</form>
%  }

<%def .sambaDisabled>
<%init>
my ($params) = @_;
return if $params->{service};

my $mod = __('file sharing module');
</%init>
<& .modWarn, mod => $mod &>
</%def>


<%def .modWarn>
<%args>
$mod
</%args>
<div class='warning'>
<% __x(
       q{The following settings will take effect only when the {mod} is enabled},
    mod => $mod,
    )
%>
</div>
</%def>