Author Topic: Samba can't open secrets.tdb  (Read 5077 times)

peterbaldock

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Samba can't open secrets.tdb
« on: April 16, 2018, 02:14:42 pm »
On a new installation, I am trying to configure the server as an additional domain controller.

Samba says:

(preamble ....)
realm is douglas.local
 tdb(/var/lib/samba/private/secrets.tdb): tdb_open_ex: could not open file /var/lib/samba/private/secrets.tdb: No such file or directory
 Could not open tdb: No such file or directory
 ldb_wrap open of secrets.ldb
 Could not find machine account in secrets database: Failed to fetch machine account password from secrets.ldb: Could not find entry to match filter: '(&(flatname=DOUGLAS)(objectclass=primaryDomain))' base: 'cn=Primary Domains': No such object: dsdb_search at ../source4/dsdb/common/util.c:4576 and failed to open /var/lib/samba/private/secrets.tdb: NT_STATUS_CANT_ACCESS_DOMAIN_INFO
 tdb(/var/lib/samba/private/secrets.tdb): tdb_open_ex: could not open file /var/lib/samba/private/secrets.tdb: No such file or directory
 Could not open tdb: No such file or directory
 ldb_wrap open of secrets.ldb
 Could not find machine account in secrets database: Failed to fetch machine account password from secrets.ldb: Could not find entry to match filter: '(&(flatname=DOUGLAS)(objectclass=primaryDomain))' base: 'cn=Primary Domains': No such object: dsdb_search at ../source4/dsdb/common/util.c:4576 and failed to open /var/lib/samba/private/secrets.tdb: NT_STATUS_CANT_ACCESS_DOMAIN_IN
FO

I checked, and there is no .tdb file, so I created an empty one with touch, and the message is still the same.

Extra info - the existing domain controller is Windows SBS 2k3 with AD prepared for Windows 2008 R2 (I was going to use 2008 R2, until I found Zentyal).

Any suggestions, anyone? I am really reluctant to abandon, and continue with MS stuff.

Pete.


allitsk

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Samba can't open secrets.tdb
« Reply #1 on: July 17, 2018, 11:10:27 am »
We have exactly same problem, except our primary DC is another Zentyal 5.1 server.

allitsk

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Samba can't open secrets.tdb
« Reply #2 on: July 20, 2018, 03:00:55 pm »
It turned out I put ADC FQDN in Domain controller FQDN field, but should be PDC FQDN. I feel silly, but I'm glad it works now.

desperados

  • Zen Monk
  • **
  • Posts: 64
  • Karma: +4/-0
    • View Profile
Re: Samba can't open secrets.tdb
« Reply #3 on: May 16, 2019, 03:53:09 pm »
It turned out I put ADC FQDN in Domain controller FQDN field, but should be PDC FQDN. I feel silly, but I'm glad it works now.

for me, it works with PDC FQDN (e.g. srv001.domain.lan)