[Samba] Samba4 Centos 7 - CPU 100%

Rowland Penny rpenny at samba.org
Tue Aug 30 14:37:58 UTC 2016


On Tue, 30 Aug 2016 11:15:30 -0300
Maiquel Consalter <maiquelconsalter at gmail.com> wrote:

> >From reading his old smb.conf it appears it was, but I noticed
> >something:
> >Maiquel, can you run this command on a DC and report back with the
> >result.
> >ldbsearch -H /usr/local/samba/private/sam.ldb -b
> >'CN=ypservers,CN=ypServ30,CN=RpcServices,CN=System,DC=samdom,DC=example,DC=com'
> >-s sub '(objectClass=msSFU30DomainInfo)' cn | grep 'cn:' | awk
> >'{print $NF}'
> >Replace 'DC=samdom,DC=example,DC=com' with your domain DN
> >I also it take that ldap was running on the machine when you upgraded
> >it to an AD DC
> Follow the output.
> #> ldbsearch -H /usr/local/samba/private/sam.ldb -b \
> 'CN=ypservers,CN=ypServ30,CN=RpcServices,CN=System,DC=campus,DC=domain,DC=br'
> -s sub '(objectClass=msSFU30DomainInfo)' cn | grep 'cn:' | awk
> '{print \ $NF}'
> domain.br
> 

OK, that confirms it, in the last smb.conf you posted for the DC, there
are these lines:

        realm = DOMAIN.BR
        workgroup = DOMAIN.BR

You have just posted that your workgroup name is 'domain.br' now
leaving aside that having '.' in a workgroup name doesn't seem to be a
good idea, your workgroup and realm in smb.conf are the same, yet the
alterations you made to the command I posted are
'DC=campus,DC=domain,DC=br'.
This means your dns name is 'campus.domain.br' and as your realm is
supposed to be the uppercase dns name, the line in smb.conf should be:

       realm = CAMPUS.DOMAIN.BR

Yet you also posted that you used '--realm=domain.br' during the
classicupgrade, so I am getting really confused now ;-)

Rowland



More information about the samba mailing list