View | Details | Raw Unified | Return to bug 37995 | Differences between
and this patch

Collapse All | Expand All

(-)a/branches/ucs-4.1/ucs-4.1-0/base/univention-sudo/conffiles/etc/sudoers.d/univention (-2 / +5 lines)
 Lines 3-8    Link Here 
3
# Allow members of group "Domain Admins" to execute any command
3
# Allow members of group "Domain Admins" to execute any command
4
## %Domain\ Admins ALL=(ALL:ALL) ALL
4
## %Domain\ Admins ALL=(ALL:ALL) ALL
5
@!@
5
@!@
6
da = configRegistry.get("groups/default/domainadmins", "Domain Admins").replace(" ", "\ ")
6
import re
7
print "%{} ALL=(ALL:ALL) ALL".format(da)
7
group = configRegistry.get("groups/default/domainadmins", "Domain Admins")
8
if group:
9
	da = re.sub(r'([ !=:,()\\])', r'\\\1', group)
10
	print "%{} ALL=(ALL:ALL) ALL".format(da)
8
@!@
11
@!@
(-)a/branches/ucs-4.1/ucs-4.1-0/base/univention-sudo/debian/postinst (-38 lines)
 Lines 1-38    Link Here 
1
#!/bin/sh
2
#
3
# Univention Suso
4
#  postinst script
5
#
6
# Copyright 2015 Univention GmbH
7
#
8
# http://www.univention.de/
9
#
10
# All rights reserved.
11
#
12
# The source code of this program is made available
13
# under the terms of the GNU Affero General Public License version 3
14
# (GNU AGPL V3) as published by the Free Software Foundation.
15
#
16
# Binary versions of this program provided by Univention to you as
17
# well as other copyrighted, protected or trademarked materials like
18
# Logos, graphics, fonts, specific documentations and configurations,
19
# cryptographic keys etc. are subject to a license agreement between
20
# you and Univention and not subject to the GNU AGPL V3.
21
#
22
# In the case you use this program under the terms of the GNU AGPL V3,
23
# the program is provided in the hope that it will be useful,
24
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
# GNU Affero General Public License for more details.
27
#
28
# You should have received a copy of the GNU Affero General Public
29
# License with the Debian GNU/Linux or Univention distribution in file
30
# /usr/share/common-licenses/AGPL-3; if not, see
31
# <http://www.gnu.org/licenses/>.
32
33
#DEBHELPER#
34
35
# should already be like this, but lets make sure
36
chmod 0440 /etc/sudoers.d/*
37
38
exit 0
(-)a/branches/ucs-4.1/ucs-4.1-0/base/univention-sudo/debian/univention-sudo.univention-config-registry (+3 lines)
 Lines 1-3    Link Here 
1
Type: file
1
Type: file
2
File: etc/sudoers.d/univention
2
File: etc/sudoers.d/univention
3
Variables: groups/default/domainadmins
3
Variables: groups/default/domainadmins
4
User: root
5
Group: root
6
Mode: 0440

Return to bug 37995