Status on...?
Elrond
Elrond at Wunder-Nett.org
Sat Jan 22 14:45:47 GMT 2000
On Sun, Jan 23, 2000 at 01:28:34AM +1100, Lars Kneschke wrote:
> "S. Striker" wrote:
> >
> > >> - Is it possible to do a sync between Samba BDC and NT PDC using
> > >> smbpasswd -S, or is another command te be used?
> > > http://www.kneschke.de/projekte/samba_tng/samba_bdc.php3
> >
> > I know, I've seen and read the FAQ, but I wish to do this from a
> > crontab. Can you do something like:
> > echo "samsync" | rpcclient -S THEPDCNAME -U admin%pass -W THEPDCDOMAINNAME
> I don't have the source here. But have you read the manpage for
> rpcclient.
> There must be a way to do this.
Did you ever invoke rpcclient without any arguments?
It says:
[...]
-c command string execute semicolon separated commands
[...]
So
rpcclient -S THEPDCNAME -U admin%pass -W THEPDCDOMAINNAME -c samsync
should do the trick, I hope.
Elrond
More information about the samba-ntdom
mailing list