Univention Bugzilla – Attachment 6284 Details for
Bug 36395
Migration from univention-samba to univention-samba4 (In place upgrade) fails in UCS 4.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug36395.patch
bug36395.patch (text/plain), 3.22 KB, created by
Arvid Requate
on 2014-11-03 16:07:24 CET
(
hide
)
Description:
bug36395.patch
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2014-11-03 16:07:24 CET
Size:
3.22 KB
patch
obsolete
>Index: samba3upgrade/smb.conf.d/51univention-samba_domain >=================================================================== >--- samba3upgrade/smb.conf.d/51univention-samba_domain (Revision 55110) >+++ samba3upgrade/smb.conf.d/51univention-samba_domain (Arbeitskopie) >@@ -48,11 +48,17 @@ > print '\tdomain master = no' > print '\tpreferred master = no' > print '\tlocal master = no' >-@!@ > >- os level = @%@samba/os/level@%@ >- wins support = @%@windows/wins-support@%@ >-@!@ >+print '\trealm = %s' % configRegistry.get('kerberos/realm') >+ >+samba_os_level = configRegistry.get('samba/os/level') >+if samba_os_level: >+ print '\tos level = %s' % samba_os_level >+ >+wins_support = configRegistry.get('windows/wins-support') >+if wins_support: >+ print '\twins support = %s' % wins_support >+ > if configRegistry['windows/wins-support'] != 'yes' and configRegistry['windows/wins-server']: > print ' wins server = %s' % configRegistry['windows/wins-server'], > @!@ >Index: samba3upgrade/smb.conf.d/91univention-samba_shares >=================================================================== >--- samba3upgrade/smb.conf.d/91univention-samba_shares (Revision 55110) >+++ samba3upgrade/smb.conf.d/91univention-samba_shares (Arbeitskopie) >@@ -1,4 +1,8 @@ > > ; ----------------------------------------------------------------------------------------------------------- >- include = /etc/samba/base.conf >- include = /etc/samba/installs.conf >+@!@ >+import os >+for includefilepath in ('/etc/samba/base.conf', '/etc/samba/installs.conf'): >+ if os.path.exists(includefilepath): >+ print "\tinclude =", includefilepath >+@!@ >Index: samba3upgrade/smb.conf.d/92univention-samba_shares >=================================================================== >--- samba3upgrade/smb.conf.d/92univention-samba_shares (Revision 55110) >+++ samba3upgrade/smb.conf.d/92univention-samba_shares (Arbeitskopie) >@@ -1,3 +1,6 @@ >- >- include = /etc/samba/shares.conf >- include = /etc/samba/printers.conf >+@!@ >+import os >+for includefilepath in ('/etc/samba/shares.conf', '/etc/samba/printers.conf'): >+ if os.path.exists(includefilepath): >+ print "\tinclude =", includefilepath >+@!@ >Index: samba3upgrade/smb.conf.d/99univention-samba_local_shares >=================================================================== >--- samba3upgrade/smb.conf.d/99univention-samba_local_shares (Revision 55110) >+++ samba3upgrade/smb.conf.d/99univention-samba_local_shares (Arbeitskopie) >@@ -1,3 +1,6 @@ >- >- include = /etc/samba/local.conf >- >+@!@ >+import os >+for includefilepath in ('/etc/samba/local.conf', ): >+ if os.path.exists(includefilepath): >+ print "\tinclude =", includefilepath >+@!@ >Index: scripts/setup-s4.sh >=================================================================== >--- scripts/setup-s4.sh (Revision 55110) >+++ scripts/setup-s4.sh (Arbeitskopie) >@@ -277,7 +277,6 @@ > cat /usr/share/univention-samba4/samba3upgrade/smb.conf.d/* | ucr filter > /var/lib/samba3/etc/samba/smb.conf > ## fix up /var/lib/samba3/smb.conf for samba-tool > touch /etc/samba/base.conf /etc/samba/installs.conf /etc/samba/printers.conf /etc/samba/shares.conf >- echo -e "[global]\n\trealm = $kerberos_realm" >> /var/lib/samba3/etc/samba/smb.conf > > # The upgrade tool uses /var/lib/samba3/ for these files > # https://forge.univention.org/bugzilla/show_bug.cgi?id=33251
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 36395
:
6283
| 6284