<netAPI> [Guenther-sir] NetShareAdd not working samba 3.5.8

TAKAHASHI Motonobu monyo at monyo.com
Thu May 5 10:26:09 MDT 2011

From: okmanoj at indiatimes.com
Date: Thu, 5 May 2011 08:21:55 +0530 (IST)

> Now I want to un-join my device form win2k8servr and delete my account i am using below API format
> NetUnjoinDomain ("MANOJTESTAPI"     /*Name of my device to join*/,
>                "username"         /*Admin username of the server account*/,
>                "password"         /*password of the above username*/,
>                 NETSETUP_ACCT_DELETE |NETSETUP_JOIN_DOMAIN /*flags for un-join*/)
> But with this I am not able to delete the account in server. I am
> getting error "failed to disable machine account via rpc: No such
> domain"

I'm not sure but I think fUnjoinOptions should be
"NETSETUP_ACCT_DELETE" or nothing only.


TAKAHASHI Motonobu <monyo at samba.gr.jp>

More information about the samba-technical mailing list