leaveDomain

Leaves the specified domain that is identified by the domain distinguished name. This command must be issued to the physical server that owns the server object. The mode of the server is left in local mode after leaving the domain. If the server is not participating in the domain, the command fails. Also, if the server is the PDC of the domain, the command fails. The PDC cannot leave a domain.

Request

<leaveDomain>
   <server/>
   <domain/>
   <unp/>
   <user/>
   <password/>
</leaveDomain>

Reply

<leaveDomain>
   <result value=" ">
      <description/>
   </result> 
</leaveDomain>

Elements

server

(Optional) Specifies the distinguished name of the eDirectory server object. The name must be a fully distinguished name, including the leading dot before the object name and the trailing dot after the tree name (or with no leading or trailing dot but a complete identity of the object within the current tree). The default is the eDirectory object for the physical server.

domain

Specifies the eDirectory name (in typeless, distinguished-name format) of the domain object that represents the domain to leave.

unp

(Optional) Specifies the NMAS-encrypted username and password that has rights to perform the operation at the specified context.

user

(Optional) Specifies the clear-text user name of a user that has rights to perform the operation. This element is used only if the unp element is not specified.

password

(Optional/Required if user is specified) Specifies the clear-text password of a user that has rights to perform the operation.

result

Specifies a zError or eDirectory value or 0 (for no error).

description

Specifies a text description of the result.