< Back

Set-FreeIPAAPICredentials

Sat Jan 18, 2020 11:28 am

NAME Set-FreeIPAAPICredentials



SYNOPSIS

Set your FreeIPA Credential in cache (powershell global variable) or external file backup (encrypted)





SYNTAX

Set-FreeIPAAPICredentials [-AdminLogin] <SecureString> [-AdminPassword] <SecureString> [[-MasterPassword]

<SecureString>] [-Remove] [-EncryptKeyInLocalFile] [<CommonParameters>]





DESCRIPTION

Set your FreeIPA Credential in cache (powershell global variable) or external file backup (encrypted) To import

your backed up credential use Import-FreeIPAAPICredentials cmdlet. File hosted in

%appdata%\\Manage-FreeIPA\\Manage-FreeIPA.xml





PARAMETERS

-AdminLogin <SecureString>

your admin login



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-AdminPassword <SecureString>

your admin password



Required? true

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Remove [<SwitchParameter>]

Use this setting to remove the content of the current global variable.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-EncryptKeyInLocalFile [<SwitchParameter>]

Use this setting to export the credential in an external encrypted (password protected) file on local hard

drive (%appdata%\\Manage-FreeIPA\\Manage-FreeIPA.xml)



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-MasterPassword <SecureString>

Master passowrd to protect your external file.



Required? false

Position? 3

Default value None

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



NOTES









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



PS C:\\Set-FreeIPAAPICredentials -AdminLogin (ConvertTo-SecureString -String "adminlogin" -AsPlainText -Force)

-AdminPassword (ConvertTo-SecureString -String "adminpass" -AsPlainText -Force) -MasterPassword

(ConvertTo-SecureString -String "keypass" -AsPlainText -Force) -EncryptKeyInLocalFile



Encrypt (password protected passphrase : keypass in example) and set your credentials (adminlogin/adminpass in

example) as global variable and export it into a config file on local hard drive.



RELATED LINKS