[Samba] [Fwd: Re: Samba3 -> Samba4 migration]

Rowland Penny rowlandpenny at googlemail.com
Tue May 20 09:07:44 MDT 2014


On 20/05/14 14:38, miranda wrote:
> -------- Forwarded Message --------
> From: miranda <miranda at prodemge.gov.br>
> To: Rowland Penny <rowlandpenny at googlemail.com>
> Subject: Re: [Samba] Samba3 -> Samba4 migration
> Date: Tue, 20 May 2014 10:21:09 -0300
>
> Sorry , here i go :
>
> Original samba3 environment :
>
> root at centaurus:~# cat /etc/issue
> Debian GNU/Linux 5.0 \n \l
>
> root at centaurus:~# smbd -V
> Version 3.2.5
>
> backend : LDAP ( no ssl )
>
> original smb.conf ( excerpt )
> [global]
>
>     # Dominio, Nome e Descricao
>          workgroup=ESPMG
>          realm = espmg.lan
>          netbios name=centaurus
>          server string = LDAP-AUTH-FILE-SRV
>
>     # Nao mostrar no servidor o Wizard "Adicionar Impressora"
>          show add printer wizard = No
>
>     # Quais interfaces de rede utilizar
>          interfaces = lo, eth0
>          bind interfaces only = Yes
>     # Nivel de Mensagens
>          log level = 1
>          log file = /var/log/samba/%m.log
>          max log size = 0
>          debug level = 1
>          syslog = 0
>
>     # Atuar como um Servidor de Domínio
>          domain master = yes
>          security = user
>          domain logons = yes
>          preferred master = yes
>          os level = 100
>     # Atuar como um PDC - caso seja BDC altere para "no"
>       announce as = NT
>     # Tratamento das senhas
>          encrypt passwords = yes
>
>     # Equivalencia de usuarios Windows X Linux
>          username map = /etc/samba/smbusers
>
>     # Evitar o perfil ambulante do Windows NT/XP
>          logon path =
>          logon drive =
>          logon home =
>
>     # Script de logon em rede (deve ficar no compartilhamento netlogon -
> em formato DOS)
>          logon script = centaurus.BAT
>
>     # Configuracoes para o LDAP
>          ldap ssl = no
>          passdb backend = ldapsam:ldap://localhost
>          ldap passwd sync = yes
>          ldap delete dn = Yes
>          ldap admin dn = cn=administrator,dc=espmg,dc=lan
>          ldap suffix = dc=espmg,dc=lan
>          ldap machine suffix = ou=Computadores
>          ldap user suffix = ou=Usuarios
>          ldap group suffix = ou=Grupos
>          ldap idmap suffix = sambaDomainName=ESPMG
>          idmap backend = ldap:ldap://localhost
>          idmap uid = 10000-20000
>          idmap gid = 10000-20000
>          guest account = nobody
>    # Permitir que usuarios do grupo "Administradores do Dominio" possam
> ingressar maquinas
>     # WinXP/Win2000 ao dominio samba
>     # to the domain
>          enable privileges = yes
> admin users = suporte,willy.moura,leonardo.calonge,administrator
>
>     # Scrips utilizados para Gerenciar Usuarios da M$
>     # adiconar/remover Usuarios
>          add user script = /usr/sbin/smbldap-useradd -m "%u"
>          delete user script = /usr/sbin/smbldap-userdel "%u"
>     # adiconar/remover Grupos
>          add group script = /usr/sbin/smbldap-groupadd -p "%g"
>          delete group script = /usr/sbin/smbldap-groupdel "%g"
>     # Scripts para adiconar/remover Usuarios nos Grupos
>          add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%
> g"
>          delete user from group script = /usr/sbin/smbldap-groupmod -x "%
> u" "%g"
>     # Script para definir o grupo primario do usuario
>          set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%
> u"
>     # Script par adicionar maquina Win NT/XP ingressar no Dominio
>          add machine script = /usr/sbin/smbldap-useradd -w "%u"
>
>     # Otimizacoes recomendadas em
>          smb ports = 445 139
>          name resolve order = host wins bcast lmhosts
>          utmp = Yes
>          time server = Yes
>          template shell = /bin/false
>          winbind use default domain = no
>          map acl inherit = Yes
>          strict locking = Yes
>          #hosts deny = ALL
>          hosts allow = 10.26.20.0/22 127.0.0.1
>          remote announce = 10.26.20.255/ESPMG 10.26.21.255/ESPMG
> 10.26.22.255/ESPMG 10.26.23.255/ESPMG
>          remote browse sync = 10.26.20.255 10.26.21.255 10.26.22.255
> 10.26.23.255
>
>     # Como o cliente ira' se comunicar com o servidor
>          socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>
>     # Servidor Wins da Rede
>     # Samba pode ser ou um Servidor WINS, ou Cliente WINS, mas não ambos
>          wins support = Yes
>
>     # Ativar a internacionalizacao: permitir caracteres acentuados pelo
> Windows
>          dos charset = CP850
>          unix charset = ISO8859-1
>          display charset = utf-8
>
>     # Nao tentar fazer um lock nestes arquivos
>          veto files = /*.eml/*.nws/*.{*}/
>          veto oplock files = /*.doc/*.xls/*.mdb/
>
>     # Tratar os arquivos que comecam com "." como ocultos para maquinas
> Windows
>          hidedotfiles = yes
>
> #=============================
> #==== Adaptacao Windows 7 ====
> #=============================
> #level0 oplocks = no
> ntlm auth = YES
> lanman auth = YES
> client ntlmv2 auth = YES
>
>
>
>
>
> New  environment :
>
> Red Hat Enterprise Linux Server release 6.5 (Santiago)
>
> samba 4.1.6  compiled from source using
> configure && make && make install
>
> I had to use this patch after getting the erros mentioned :
> https://patchwork.samba.org/patch/269/
>
> Here is my /etc/fstab
>
> /dev/mapper/VGint-lvroot /                       ext4
> defaults,acl,user_xattr,barrier=1        1 1
> UUID=9db6e7fd-4e2a-4a70-82d8-03d2848ebf4b /boot                   ext4
> defaults        1 2
> /dev/mapper/VGint-lvprodutos /produtos               ext4    defaults
> 1 2
> /dev/mapper/VGint-lvvar /var                    ext4    defaults
> 1 2
> /dev/mapper/VGint-lvweb /web                    ext4
> defaults,user_xattr,acl        1 2
> UUID=70e90553-1fb8-4a60-97fa-796806262016 swap                    swap
> defaults        0 0
> tmpfs                   /dev/shm                tmpfs   defaults
> 0 0
> devpts                  /dev/pts                devpts  gid=5,mode=620
> 0 0
> sysfs                   /sys                    sysfs   defaults
> 0 0
> proc                    /proc                   proc    defaults
> 0 0
>
> Thanks in advance
>
>
>
> On Tue, 2014-05-20 at 13:55 +0100, Rowland Penny wrote:
>
>> On 20/05/14 13:45, miranda wrote:
>>> Hi, everybody
>>>
>>> Im getting many troubles trying to upgrade to samba4 using
>>> "classicupgrade" :
>>>
>>> samba-tool domain classicupgrade --debuglevel=7
>>> --dbdir=/produtos/backup/var/lib/samba/
>>> --use-xattrs=yes  /produtos/backup/etc/samba/smb.conf
>>>
>>> After some messages im getting an Segmentaion fault
>>>
>>> Any hint in what should i investigate ?
>> How about investigating giving us a bit more info??
>>
>> what OS ?, what version of samba 3 ?, what samba backend on original
>> system etc etc
>>
>> Rowland
>>> Here is  my stdin :
>>>
>>> Initialising default vfs hooks
>>> Successfully added vfs backend 'posixacl'
>>> Successfully added vfs backend '/[Default VFS]/'
>>> Successfully added vfs backend 'dfs_samba4'
>>> Initialising custom vfs hooks from [/[Default VFS]/]
>>> Successfully loaded vfs module [/[Default VFS]/] with the new modules
>>> system
>>> Initialising custom vfs hooks from [full_audit]
>>> vfs module [full_audit] not loaded - trying to load...
>>> Loading module 'full_audit'
>>> Loading module 'full_audit': Trying to load
>>> from /usr/local/samba/lib/vfs/full_audit.so
>>> Module 'full_audit' loaded
>>> Successfully added vfs backend 'full_audit'
>>> Successfully loaded vfs module [full_audit] with the new modules system
>>> Segmentation fault
>>>
OK, I had a look at that patch, can I ask how you applied it ? only 
asking because I do not think that you needed to apply it, your troubles 
could be all of your own making. I suggest that you start again, this 
time with 4.1.7 (latest) and do not apply the patch.

Rowland


More information about the samba mailing list