[Samba] Prepopulate *all* users to a samba4 RODC

Michael Brown michael at netdirect.ca
Tue Nov 19 14:33:00 MST 2013


I was hoping this would be simpler. I'd like to prepopulate an RODC with 
all users accounts that are permitted. But I can only pre-populate one 
at a time:
samba-tool rodc preload (<SID>|<DN>|<accountname>)

sles-shire:~ # samba-tool group listmembers 'Allowed RODC Password 
Replication Group - Shire'
Allowed RODC Password Replication Group - Global
WIN7-SHIRE$
bilbo
sles-shire:~ # samba-tool group listmembers 'Allowed RODC Password 
Replication Group - Global'
frodo

I'll have to do some sort of smart enumeration here.

Before I write a script to do so (or better, add functionality into the 
samba-tool rodc command to prepopulate an entire group), does this 
functionality already exist somewhere?

M.

-- 
Michael Brown               | `One of the main causes of the fall of
Systems Consultant          | the Roman Empire was that, lacking zero,
Net Direct Inc.             | they had no way to indicate successful
☎: +1 519 883 1172 x5106    | termination of their C programs.' - Firth



More information about the samba mailing list