NetDfsSetFtContainerSecurity function

Sets the security descriptor of the container object for the domain-based DFS namespaces in the specified Active Directory domain.

Syntax


NET_API_STATUS NetDfsSetFtContainerSecurity(
  _In_ LPWSTR               DomainName,
  _In_ SECURITY_INFORMATION SecurityInformation,
  _In_ PSECURITY_DESCRIPTOR pSecurityDescriptor
);

Parameters

DomainName [in]

Pointer to a string that specifies the Active Directory domain name.

SecurityInformation [in]

SECURITY_INFORMATION structure that contains bit flags that indicate the type of security information to set.

pSecurityDescriptor [in]

Pointer to a SECURITY_DESCRIPTOR structure that contains the security attributes to set as specified in the SecurityInformation parameter.

Return value

If the function succeeds, the return value is NERR_Success.

If the function fails, the return value is a system error code. For a list of error codes, see System Error Codes.

Remarks

The security descriptor is set on the "CN=DFS-Configuration,CN=System,DC=domain" object in Active Directory from the primary domain controller (PDC) of the domain specified in the DomainName parameter, where <domain> is the distinguished name of the domain specified in the DomainName parameter.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008, Windows Server 2008

Header

LmDfs.h (include LmDfs.h or Lm.h)

Library

Netapi32.lib

DLL

Netapi32.dll

See also

Network Management Overview
Network Management Functions
Distributed File System (DFS) Functions

 

 

Show: