Bug 10870 - Realm must not be equal to short domain name
Realm must not be equal to short domain name
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: DNS server
x86 Linux
: P5 major
: ---
Assigned To: Kai Blin
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2014-10-12 03:02 UTC by Jonas
Modified: 2015-07-31 08:54 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jonas 2014-10-12 03:02:10 UTC

i am upgrading my Samba 3 domain controller to a Samba 4 AD DC. My server has the following informations:

hostname = abc
netbios name = ABC

When i try:

/usr/local/samba/bin/samba-tool domain classicupgrade --dbdir=/etc/samba.PDC/dbdir/ --use-xattrs=yes --realm=abc.com --dns-backend=SAMBA_INTERNAL /etc/samba.PDC/smb.PDC.conf

this is the error output:

ERROR(<class 'samba.provision.ProvisioningError'>): uncaught exception - ProvisioningError: guess_names: Realm 'ABC.COM' must not be equal to short domain name 'ABC.COM'!

Why can't i use the same name to the realm and the domain?

So, i tried to use another realm name:

/usr/local/samba/bin/samba-tool domain classicupgrade --dbdir=/etc/samba.PDC/dbdir/ --use-xattrs=yes --realm=realm.abc.com --dns-backend=SAMBA_INTERNAL /etc/samba.PDC/smb.PDC.conf

and it successfully ends.

But it does not change only the realm name. Look:

Hostname:            abc
NetBIOS Domain:      ABC.COM
DNS Domain:          realm.abc.com

Why "DNS Domain" is shown like realm.abc.com? Is it not only my realm?


$ host -t SRV _ldap._tcp.realm.abc.com.
_ldap._tcp.realm.abc.com has SRV record 0 100 389 abc.realm.abc.com.

$ host -t SRV _kerberos._udp.realm.abc.com.
_kerberos._udp.realm.abc.com has SRV record 0 100 88 abc.realm.abc.com.

$ host -A tcc.realm.abc.com.
tcc.realm.abc.com has address

My new smb.conf shows:

netbios name = ABC
realm = realm.abc.com

In my smb.conf, my domain is ABC.COM, but in my internal DNS, my domain is realm.abc.com. I did not understand it.

If i try to test host -A abc.abc.com, it does not work. So, in my DNS my domain is set to realm.abc.com and in my smb.conf abc.com?????

How can i solve this problem? Can't i use abc.com to the domain and the realm name??????

I hope you have understand...
Comment 1 Stefan Metzmacher 2015-07-31 08:54:27 UTC
This is not a regression, it never worked before...