upperm / guacamole-powershell Goto Github PK
View Code? Open in Web Editor NEWPowerShell functions useful to manage Apache Guacamole
PowerShell functions useful to manage Apache Guacamole
Hi, I'm fairly new to Guacamole, but got everything up-and-running and created 2 users and 2 connections, 1 for each user. From the Guac admin console, I can see the connection linked to a user, but not when I'm running get-user or get-connection from PShell.
Also, when running get-connection, it is not showing all settings I defined from the GUI (ignore cert, security,...); any idea how to get that information?
It looks like you've got an extra slash in line 34 of Get-GuacUser.ps1
, which is causing malformed URLs to be used when calling the API resulting in HTTP 500 errors.
You should change this:
begin
{
$Uri = "$Server/api/session/data/$($DataSource)/users/$($Username)/"
if ($Details)
{
$Uri = "$Uri/$Details"
}
to this (notice the first $Uri =
line and the removal of the last slash on the right):
begin
{
$Uri = "$Server/api/session/data/$($DataSource)/users/$($Username)"
if ($Details)
{
$Uri = "$Uri/$Details"
}
Also, huge thank you for sharing your awesome powershell module with the world.
i knew this scripts are just made for mysql users in guacamole.
we have connected the ldap for authentication to guacamole to have same users and passwords for access.
with your cmdlets we could now provide automatically a new connection to a RDP Host (and delete it too). THX
now i still missing how we can add a ldap user to a connection or user-group stored in mysql (generated over your cmdlets)
Please add function for remove user from GuacUserGroup
When you get a token and don't supply a password in the invocation script, it prompts you for a password. At this time, that password is displayed in the powershell window in plain text. In New-GuacToken.ps1, you should consider making password a non-required parameter, and instead doing an if-check on it as a param. If it's not passed, request it as a secure string with
Read-Host "Enter Password" -AsSecureString
or something like that.
plans to implement reset totp's users ?
The commands work independently...if I use the command "New-GuacUser -DataSource mysql -Parameters $GuacParameters" to create a single user, it works fine. I start getting the error when I put the command into a foreach loop and pull in names from a text file.
Other functions, like "Add-GuacUserConnection" in a foreach loop work just fine.
$password = "secretpassword"
$userlist=(get-content userlist.txt)
foreach ($user in $userlist) {
$GuacParameters = @{
"username"= $user
"password"= $password
"attributes"= @{
"disabled"= ""
"expired"= ""
"access-window-start"= ""
"access-window-end"= ""
"valid-from"= ""
"valid-until"= ""
"timezone"= ""
"guac-full-name"= ""
"guac-organization"= ""
"guac-organizational-role"= ""
}
}
write-host ". . . . .Adding $user to Guacamole Server"
New-GuacUser -DataSource mysql -Parameters $GuacParameters
}
With Guacamole 1.3.0 I cannot create new connections. I get error message:
VERBOSE: POST with -1-byte payload
WARNING: The remote server returned an error: (500) Internal Server Error.
Tried new tokens, but nothing seems to work.
It's dont needed to reset password
The Update-GuacUserPassword is using the "PATCH" method, and it should be using "PUT".
I manually changed that on my server and its working.
Since I have no idea how to make a pull request, I jut opened this issue.
Cheers!
Is it possible to access PS guacamole via docker container with apache guacamole Installed in container.
Thanks in advance
When enabling wake on lan with Set-GuacComputerWakeOnLan, the configuariont is wiped
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.