[Samba] Determining PDC in Samba4?

Sven Schwedas sven.schwedas at tao.at
Fri Apr 25 04:06:13 MDT 2014


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>


More information about the samba mailing list