< Back

Invoke-FreeIPAAPIsudorule_mod

Sat Jan 18, 2020 11:21 am

NAME Invoke-FreeIPAAPIsudorule_mod



SYNOPSIS





SYNTAX

Invoke-FreeIPAAPIsudorule_mod [[-desc] <String>] [-ipaenabledflag] [[-usercat] <String>] [[-hostcat] <String>]

[[-cmdcat] <String>] [[-runasusercat] <String>] [[-runasgroupcat] <String>] [[-order] <Int32>] [[-externaluser]

<String>] [[-externalhost] <String[]>] [[-runasexternaluser] <String>] [[-runasexternalgroup] <String>]

[[-setattr] <String[]>] [[-addattr] <String[]>] [[-delattr] <String[]>] [-rights] [-all] [-raw] [[-version]

<String>] [-no_members] [[-rename] <String>] [-sudorule_name] <String> [-FullResultsOutput] [<CommonParameters>]





DESCRIPTION

Modify Sudo Rule.





PARAMETERS

-desc <String>

Description



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ipaenabledflag [<SwitchParameter>]

Enabled



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-usercat <String>

User category the rule applies to



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-hostcat <String>

Host category the rule applies to



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-cmdcat <String>

Command category the rule applies to



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-runasusercat <String>

RunAs User category the rule applies to



Required? false

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



-runasgroupcat <String>

RunAs Group category the rule applies to



Required? false

Position? 6

Default value

Accept pipeline input? false

Accept wildcard characters? false



-order <Int32>

integer to order the Sudo rules



Required? false

Position? 7

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-externaluser <String>

External User the rule applies to (sudorule-find only)



Required? false

Position? 8

Default value

Accept pipeline input? false

Accept wildcard characters? false



-externalhost <String[]>

External host



Required? false

Position? 9

Default value

Accept pipeline input? false

Accept wildcard characters? false



-runasexternaluser <String>

External User the commands can run as (sudorule-find only)



Required? false

Position? 10

Default value

Accept pipeline input? false

Accept wildcard characters? false



-runasexternalgroup <String>

External Group the commands can run as (sudorule-find only)



Required? false

Position? 11

Default value

Accept pipeline input? false

Accept wildcard characters? false



-setattr <String[]>

Set an attribute to a name/value pair. Format is attr=value.

For multi-valued attributes, the command replaces the values already present.



Required? false

Position? 12

Default value

Accept pipeline input? false

Accept wildcard characters? false



-addattr <String[]>

Add an attribute/value pair. Format is attr=value. The attribute

must be part of the schema.



Required? false

Position? 13

Default value

Accept pipeline input? false

Accept wildcard characters? false



-delattr <String[]>

Delete an attribute/value pair. The option will be evaluated

last, after all sets and adds.



Required? false

Position? 14

Default value

Accept pipeline input? false

Accept wildcard characters? false



-rights [<SwitchParameter>]

Display the access rights of this entry (requires -all). See ipa man page for details.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-all [<SwitchParameter>]

Retrieve and print all attributes from the server. Affects command output.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-raw [<SwitchParameter>]

Print entries as stored on the server. Only affects output format.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-version <String>

Client version. Used to determine if server will accept request.



Required? false

Position? 15

Default value

Accept pipeline input? false

Accept wildcard characters? false



-no_members [<SwitchParameter>]

Suppress processing of membership attributes.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-rename <String>

Rename the sudo rule object



Required? false

Position? 16

Default value

Accept pipeline input? false

Accept wildcard characters? false



-sudorule_name <String>

Rule name



Required? true

Position? 17

Default value

Accept pipeline input? false

Accept wildcard characters? false



-FullResultsOutput [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

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



OUTPUTS

System.Management.Automation.PSObject







RELATED LINKS