On 05/12/2019 17:19, Rowland penny via samba wrote:> > On 05/12/2019 17:04, Nick Howitt via samba wrote: >> I am trying to determine which tdb files must be backed up in order >> to perform a proper system restore. I am running Centos's >> samba-4.9.1-6.el7.x86_64 as a PDC. > > Is this an actual NT4-style PDC, or an AD DC you are erroneously > calling a PDC ? > > We need to know this to give you the correct help. > > If it is an actual PDC, then is LDAP involved ? > > Rowland > > > >It is an NT4-style PDC with an LDAP back end.
On Thu, 2019-12-05 at 17:22 +0000, Nick Howitt via samba wrote:> On 05/12/2019 17:19, Rowland penny via samba wrote: > > > > On 05/12/2019 17:04, Nick Howitt via samba wrote: > > > I am trying to determine which tdb files must be backed up in > > > order > > > to perform a proper system restore. I am running Centos's > > > samba-4.9.1-6.el7.x86_64 as a PDC. > > > > It is an NT4-style PDC with an LDAP back end.When backing up Samba TDB files always use tdbbackup. Thankfully, the most critical data is all in your OpenLDAP, which I'm sure you are backing up already. The rest of the files are organised per the FHS rules, which tells you which files need which lifetime. I hope this helps, Andrew Bartlett -- Andrew Bartlett https://samba.org/~abartlet/ Authentication Developer, Samba Team https://samba.org Samba Developer, Catalyst IT https://catalyst.net.nz/services/samba
On 05/12/2019 17:22, Nick Howitt via samba wrote:> On 05/12/2019 17:19, Rowland penny via samba wrote: >> >> On 05/12/2019 17:04, Nick Howitt via samba wrote: >>> I am trying to determine which tdb files must be backed up in order >>> to perform a proper system restore. I am running Centos's >>> samba-4.9.1-6.el7.x86_64 as a PDC. >> >> Is this an actual NT4-style PDC, or an AD DC you are erroneously >> calling a PDC ? >> >> We need to know this to give you the correct help. >> >> If it is an actual PDC, then is LDAP involved ? >> >> Rowland >> >> >> >> > It is an NT4-style PDC with an LDAP back end. > >Then you only need to backup your smb.conf and your LDAP, the tdb files will be recreated from ldap. Rowland
Mandi! Rowland penny via samba In chel di` si favelave...> Then you only need to backup your smb.conf and your LDAP, the tdb files will > be recreated from ldap.AFAIK minus: a) 'smbpasswd -w', samba need to know how to access OpenLDAP. ;-) b) rights ('net rpc rights'). c) printers (per se, but in particular printer drivers), if you use it d) policy ('pdbedit -P'), but these can be esported to LDAP, i don't know if they are automatically 'reimported'... -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bont?, 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)