On Wed, May 2, 2018 at 11:22 AM, Tezarin <[email protected]> wrote:

>  Hi,
> Do you guys have a scrip that can do some group search and implementation?
>
> # enumerate the (already existing) LDAP group "VPN Users"## get all user
> "samaccountname" (e.g. joe.smith, etc.)# enumerate all the (already
> existing) LDAP groups that match the pattern "*-OS-Admin"# for each LDAP
> group:## ensure there is a guacamole group with this name# for each user:
> ## if they are in an LDAP group "FOO-OS-Admin", add them to the guac group
> "FOO-OS-Admin"
> Thanks
>
>
There aren't any official scripts for this, but I think it's something that
others on the lists have done in the past - it is something that has been
asked before, and I'm fairly certain I've seen people post their
solutions.  In any case, it should be pretty easy - use ldapsearch (or your
favorite LDAP searching tool) to search the tree for specific users and get
whatever attributes you want, parse that out, then convert it to a SQL
script and insert the data.

-Nick

Reply via email to