Solved samba4 pdc Empty RDN

Hi all,

I tried configure samba4 (4.2.2) as pdc on my 10.1-RELEASE, with root at zfs.
I read https://forums.freebsd.org/threads/samba4-dc-in-freebsd-10.47798/ and
https://forums.freebsd.org/threads/samba4-install-guide-problems-with-kerberos.36137/
And still get this error:

Code:
[CMD]% # samba-tool domain provision --use-rfc2307 --interactive --use-ntvfs[/CMD]
Realm: YTEST.PL
 Domain [YTEST]:
 Server Role (dc, member, standalone) [dc]:
 DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]:
 DNS forwarder IP address (write 'none' to disable forwarding) [10.146.146.3]:
Administrator password:
Retype password:
Looking up IPv4 addresses
WARNING: no network interfaces found
No IPv4 address will be assigned
Looking up IPv6 addresses
WARNING: no network interfaces found
No IPv6 address will be assigned
Setting up secrets.ldb
Setting up the registry
Setting up the privileges database
Setting up idmap db
Setting up SAM db
Setting up sam.ldb partitions and settings
Setting up sam.ldb rootDSE
Pre-loading the Samba 4 and AD schema
Adding DomainDN: DC=ytest,DC=pl
Adding configuration container
Setting up sam.ldb schema
Setting up sam.ldb configuration data
Setting up display specifiers
Modifying display specifiers
Adding users container
Modifying users container
Adding computers container
Modifying computers container
Setting up sam.ldb data
Setting up well known security principals
Setting up sam.ldb users and groups
Setting up self join
ERROR(ldb): uncaught exception - Empty RDN value on CN=,OU=Domain Controllers,DC=ytest,DC=pl not permitted!
  File "/usr/local/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/samba/netcmd/domain.py", line 434, in run
    nosync=ldap_backend_nosync, ldap_dryrun_mode=ldap_dryrun_mode)
  File "/usr/local/lib/python2.7/site-packages/samba/provision/__init__.py", line 2169, in provision
    skip_sysvolacl=skip_sysvolacl)
  File "/usr/local/lib/python2.7/site-packages/samba/provision/__init__.py", line 1792, in provision_fill
    next_rid=next_rid, dc_rid=dc_rid)
  File "/usr/local/lib/python2.7/site-packages/samba/provision/__init__.py", line 1465, in fill_samdb
    ntdsguid=ntdsguid)
  File "/usr/local/lib/python2.7/site-packages/samba/provision/__init__.py", line 1073, in setup_self_join
    "RIDALLOCATIONEND": str(next_rid + 100 + 499)})
  File "/usr/local/lib/python2.7/site-packages/samba/provision/common.py", line 55, in setup_add_ldif
    ldb.add_ldif(data, controls)
  File "/usr/local/lib/python2.7/site-packages/samba/__init__.py", line 224, in add_ldif
    self.add(msg, controls)

Of course I turned on acl on zfs.
On other machine all works fine, don't know where is problem.
 
Does the server have a hostname set?
The entry listed in the error message seems to have a blank common name, which doesn't look right to me (said by someone who's never actually set up Samba4). I can't find any information on whether that should be set, or where it gets its value though.
 
Back
Top