< Back

New-NSauthenticationpolicy

Sat Jan 11, 2020 12:00 am

NAME New-NSauthenticationpolicy



SYNOPSIS

The new-NSauthenticaitonpolicy creates an advanced authentication policy.





SYNTAX

New-NSauthenticationpolicy -action <string> -name <string> -rule <string> [-comment <string>] [-logaction

<string>] [-returnobject <SwitchParameter>] [-session <nitro_service>] [<CommonParameters>]





DESCRIPTION

This command works will most of the different type of authentication policies and will establish the type based on

the action specified.





PARAMETERS

-session <nitro_service>

This mandatory parameter requires a nitro_service object. This can be requested using the get-nitrosession and

pipelined into this command.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-name <string>



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-action <string>

Specify the action, or in case of ldap the server. (created using new-nsldapserver)



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-comment <string>



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-logaction <string>



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-rule <string>



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-returnobject <SwitchParameter>

If set to true, the object that is updated is returned. This is useful to testing purposes.



Required? false

Position? named

Default value False

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

com.citrix.netscaler.nitro.service.nitro_service

This mandatory parameter requires a nitro_service object. This can be requested using the get-nitrosession and

pipelined into this command.



System.String



System.String

Specify the action, or in case of ldap the server. (created using new-nsldapserver)



System.String



System.String



System.String



System.Management.Automation.SwitchParameter

If set to true, the object that is updated is returned. This is useful to testing purposes.





OUTPUTS



---------- EXAMPLE 1 ----------



creating an advanced authentication policynew-nsauthenticationpolicy -session $session -name "LDAP-apol" -action

"LDAP-asrv" -rule "true"





RELATED LINKS