deleting a machine account from a domain.

vira gc nihargc at
Tue Aug 16 05:34:41 GMT 2005

  Thanks for the reply. I am looking for RPC APIs to
do the same job. I need to delete existing machine
account   using those APIs from inside a program. 
  I went through the 'net' utility implementaion. I
could see only ADS leave and no RPC leave or delete as
far as machine account is considered.
  If there are no RPC APIs then what is the best way
to delete the already existing machine account. Can we
use LDAP API's to delete?

--- Andrew Bartlett <abartlet at> wrote:

> On Fri, 2005-08-12 at 09:22 +0100, vira gc wrote:
> >  There exist "net_ads_join" and "net_ads_leave"
> > calls to add a machine to the domain and leave.
> But, I
> > do not find the same calls for RPC protocol, I can
> > only find "net_rpc_join".
> >  Is there an RPC API which I can use within a
> program
> > for deleting/leaving a computer from a domain?
> Try 'net rpc delete machine$'.
> Andrew Bartlett
> -- 
> Andrew Bartlett                               
> Samba Developer, SuSE Labs, Novell Inc.       
> Authentication Developer, Samba Team          
> Student Network Administrator, Hawker College 


Send a rakhi to your brother, buy gifts and win attractive prizes. Log on to

More information about the samba-technical mailing list