Univention Bugzilla – Attachment 9923 Details for
Bug 48989
26univention-samba.inst passes value of /etc/machine.secret unquoted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix-quoting-26univention-samba.inst
fix-quoting-26univention-samba.inst (text/plain), 1.26 KB, created by
Arvid Requate
on 2019-03-14 10:58:52 CET
(
hide
)
Description:
fix-quoting-26univention-samba.inst
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2019-03-14 10:58:52 CET
Size:
1.26 KB
patch
obsolete
>diff --git a/services/univention-samba/26univention-samba.inst b/services/univention-samba/26univention-samba.inst >index 1abe544ceb..dc1bf055f2 100755 >--- a/services/univention-samba/26univention-samba.inst >+++ b/services/univention-samba/26univention-samba.inst >@@ -239,20 +239,20 @@ fi > if [ "$server_role" = "domaincontroller_slave" -o "$samba_role" = "memberserver" ]; then > univention-config-registry set samba/user="$ldap_hostdn" \ > samba/user/pwdfile?"/etc/machine.secret" >- smbpasswd -w $(cat /etc/machine.secret) >+ smbpasswd -w "$(cat /etc/machine.secret)" > > echo "setting idmap secret for '*' from /etc/machine.secret" >- net idmap set secret '*' $(cat /etc/machine.secret) 2>/dev/null >+ net idmap set secret '*' "$(cat /etc/machine.secret)" 2>/dev/null > > else > univention-config-registry set samba/user?"cn=admin,$ldap_base" \ > samba/user/pwdfile?"/etc/ldap.secret" > /etc/init.d/samba restart >/dev/null 2>&1 > >- smbpasswd -w $(cat /etc/ldap.secret) >+ smbpasswd -w "$(cat /etc/ldap.secret)" > > echo "setting idmap secret for '*' from /etc/ldap.secret" >- net idmap set secret '*' $(cat /etc/ldap.secret) 2>/dev/null >+ net idmap set secret '*' "$(cat /etc/ldap.secret)" 2>/dev/null > fi > > eval "$(univention-config-registry shell samba/user/pwdfile samba/user)"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 48989
: 9923