You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by michael böhm <ks...@gmx.net> on 2019/11/05 18:22:13 UTC

Hi everyone,



I've set up Guacamole with LDAP-authentication. Unfortunately I cannot adapt
the scheme in LDAP so that connections need to stay in the mariadb.



Is there still a way to configure Guacamole so that all LDAP-authenticated
users can see connections based on their LDAP-group?



If this does not work, another approach would be to sync all users-ids that
have certain groups periodically into mariadb. I think it is not a good idea
to work with sql-statements directly on the DB, so I wanted to use Guacamole's
REST-API. I found very few documentation regarding this.



This was the best resource I could find in the mailing-list:



https://github.com/apache/guacamole-
manual/pull/123/commits/fefed22356108a0e07aa8d7485523978c6163707



I was able to get an Token. However, the POST-Call on
api/session/data/mysql/users resulted in an internal error. Does someone have
a working example (with curl or something) to add users to Guacamole via API?



Thanks and best wishes



Michael

\--------------------------------------------------------------------- To
unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org For additional
commands, e-mail: user-help@guacamole.apache.org


Aw: LDAP-authentication with mysql-connections

Posted by michael böhm <ks...@gmx.net>.

// sorry, forgot the title



Hi everyone,



I've set up Guacamole with LDAP-authentication. Unfortunately I cannot adapt
the scheme in LDAP so that connections need to stay in the mariadb.



Is there still a way to configure Guacamole so that all LDAP-authenticated
users can see connections based on their LDAP-group?



If this does not work, another approach would be to sync all users-ids that
have certain groups periodically into mariadb. I think it is not a good idea
to work with sql-statements directly on the DB, so I wanted to use Guacamole's
REST-API. I found very few documentation regarding this.



This was the best resource I could find in the mailing-list:



<https://github.com/apache/guacamole-
manual/pull/123/commits/fefed22356108a0e07aa8d7485523978c6163707>



I was able to get an Token. However, the POST-Call on
api/session/data/mysql/users resulted in an internal error. Does someone have
a working example (with curl or something) to add users to Guacamole via API?



Thanks and best wishes



Michael

\--------------------------------------------------------------------- To
unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org For additional
commands, e-mail: user-help@guacamole.apache.org

\--------------------------------------------------------------------- To
unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org For additional
commands, e-mail: user-help@guacamole.apache.org


Re: LDAP-authentication with mysql-connections

Posted by Frederik <fr...@gmail.com>.
Hi Michael,

 

Maybe you can use the following python package to accomplish what you want.

https://github.com/pschmitt/guacapy

 

Kind regards,

 

Frederik

 

 

Van: michael böhm <ks...@gmx.net>
Beantwoorden - Aan: <us...@guacamole.apache.org>
Datum: dinsdag 5 november 2019 om 20:12
Aan: <us...@guacamole.apache.org>
Onderwerp: Aw: Re: LDAP-authentication with mysql-connections

 

Hi Mike,

 

thanks for your answers. I will try it out. Is there already a date when the fix your mentioned will be present in the docker-image as my installation is docker-based?

 

Do you also have some information regarding the REST-API?

 

Thanks and best wishes

 

Michael

  

Gesendet: Dienstag, 05. November 2019 um 19:48 Uhr
Von: "Mike Jumper" <mj...@apache.org>
An: user@guacamole.apache.org
Betreff: Re:

On Tue, Nov 5, 2019, 10:22 "michael böhm" <ks...@gmx.net> wrote:

Hi everyone,

 

I've set up Guacamole with LDAP-authentication. Unfortunately I cannot adapt the scheme in LDAP so that connections need to stay in the mariadb.

 

Is there still a way to configure Guacamole so that all LDAP-authenticated users can see connections based on their LDAP-group?

 

Yes:

 

https://guacamole.apache.org/doc/gug/ldap-auth.html#ldap-and-database

 

You may need to build from git for this to work as expected due to a bug which was resolved after the 1.0.0 release:

 

https://issues.apache.org/jira/browse/GUACAMOLE-715

 

- Mike

 

--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org For additional commands, e-mail: user-help@guacamole.apache.org 


Aw: Re: LDAP-authentication with mysql-connections

Posted by michael böhm <ks...@gmx.net>.
Hi Mike,



thanks for your answers. I will try it out. Is there already a date when the
fix your mentioned will be present in the docker-image as my installation is
docker-based?



Do you also have some information regarding the REST-API?



Thanks and best wishes



Michael



**Gesendet:**  Dienstag, 05. November 2019 um 19:48 Uhr  
**Von:**  "Mike Jumper" <mj...@apache.org>  
**An:**  user@guacamole.apache.org  
**Betreff:**  Re:

On Tue, Nov 5, 2019, 10:22 "michael bohm"
<[ksk2@gmx.net](mailto:ksk2@gmx.net)> wrote:

> Hi everyone,

>

>  
>

> I've set up Guacamole with LDAP-authentication. Unfortunately I cannot adapt
the scheme in LDAP so that connections need to stay in the mariadb.

>

>  
>

> Is there still a way to configure Guacamole so that all LDAP-authenticated
users can see connections based on their LDAP-group?



Yes:



<https://guacamole.apache.org/doc/gug/ldap-auth.html#ldap-and-database>



You may need to build from git for this to work as expected due to a bug which
was resolved after the 1.0.0 release:



<https://issues.apache.org/jira/browse/GUACAMOLE-715>



\- Mike



\--------------------------------------------------------------------- To
unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org For additional
commands, e-mail: user-help@guacamole.apache.org


Re:

Posted by Mike Jumper <mj...@apache.org>.
On Tue, Nov 5, 2019, 10:22 "michael böhm" <ks...@gmx.net> wrote:

> Hi everyone,
>
> I've set up Guacamole with LDAP-authentication. Unfortunately I cannot
> adapt the scheme in LDAP so that connections need to stay in the mariadb.
>
> Is there still a way to configure Guacamole so that all LDAP-authenticated
> users can see connections based on their LDAP-group?
>

Yes:

https://guacamole.apache.org/doc/gug/ldap-auth.html#ldap-and-database

You may need to build from git for this to work as expected due to a bug
which was resolved after the 1.0.0 release:

https://issues.apache.org/jira/browse/GUACAMOLE-715

- Mike