Solved this, you have to manually import them from Ldap; here's my solution
using Bash and curl, you'll have to adapt it to fit your ldap structure.
First log in using the password to your guacadmin account; to get a token
to use in the other steps; Note the login doesn't use Json for some reason.
curl -X POST --data-urlencode "username=guacadmin" --data-urlencode
"password=<guacadmin password>" 127.0.0.1:8080/guacamole/api/tokens
Create a json file, I've called it addUserTest
{
"username": "usertemplate",
"password": "",
"attributes": {
"disabled": "",
"expired": "",
"access-window-start": "",
"access-window-end": "",
"valid-from": "",
"valid-until": "",
"timezone": ""
}
}
Note I'm using postgresql as the data store
for user in $(ldapsearch -Wx -D "cn=admin,dc=yada-yada" -b "dc=yada-yada"
-H ldap://yada-yada -LLL | grep uid: | awk '{print $2}'); do sed
"s/usertemplate/$user/g" addUserTest | curl -X POST --data "$(</dev/stdin)"
-H"Content-Type: application/json"
127.0.0.1:8080/guacamole/api/session/data/postgresql/users?token=<token
from previous>; done
On Mon, 9 Mar 2020 at 12:48, James Allsopp <[email protected]>
wrote:
> Hi,
>
> I’ve got guacamole all set up and nearly working perfectly, but I can’t
> see any users from my LDAP server when logged in as guacadmin, and if I
> can’t see the users, I can’t add them to any connections or a group.
>
>
>
> I can successfully log in using an LDAP users account, so that connection
> is working. If I delete the docker container and bring it back up, I can
> still see a connection, so the connection to postgres is there.
>
>
>
> How do I get guacamole to show me the users in LDAP so I can start
> assigning them to groups when logged in as guacadmin? I’ve created an ldap
> account which matches guacadmin.
>
>
>
> Thanks
>
> James
>