As sysvol replication seems to be safest when using rsync, how can I determine the PDC (to avoid accidentally starting the replication on a slave)? Windows' ADUC has the "Operations Masters" window which shows them, how do I query this from within Samba? -- Mit freundlichen Gr??en, / Best Regards, Sven Schwedas Systemadministrator TAO Beratungs- und Management GmbH | Lendplatz 45 | A - 8020 Graz Mail/XMPP: sven.schwedas at tao.at | +43 (0)680 301 7167 http://software.tao.at -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20140425/846f5300/attachment.pgp>
samba-tool fsmo show On 25/04/14 11:58, Sven Schwedas wrote:> As sysvol replication seems to be safest when using rsync, how can I > determine the PDC (to avoid accidentally starting the replication on a > slave)? Windows' ADUC has the "Operations Masters" window which shows > them, how do I query this from within Samba?
Okay, I've found> own=$(samba-tool domain info 127.0.0.1 | grep netbios | cut -d: -f2 | tr -d ' ') > samba-tool fsmo show | grep PdcEmulationMasterRole | grep -q $own && echo "PDC"Which /seems/ to work. Is there a better way? On 2014-04-25 11:58, Sven Schwedas wrote:> As sysvol replication seems to be safest when using rsync, how can I > determine the PDC (to avoid accidentally starting the replication on a > slave)? Windows' ADUC has the "Operations Masters" window which shows > them, how do I query this from within Samba? > > >-- Mit freundlichen Gr??en, / Best Regards, Sven Schwedas Systemadministrator TAO Beratungs- und Management GmbH | Lendplatz 45 | A - 8020 Graz Mail/XMPP: sven.schwedas at tao.at | +43 (0)680 301 7167 http://software.tao.at -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20140425/a4b09f87/attachment.pgp>