bugy / script-server

Web UI for your scripts with execution management
Other
1.6k stars 249 forks source link

access LDAP groups from script #534

Open fnpanic opened 2 years ago

fnpanic commented 2 years ago

Hi,

i can pass the username to a script which is very handy but i cannot for example pass all the LDAP groups the user is in to a script

I see that you get all the groups with this function

def _fetch_user_group

in script-server/src/auth/auth_ldap.py

It would be great to have them aviable to the script because to get them i would need to ask for the password again which is very odd i think and a bad workaround.

bugy commented 2 years ago

Hi @fnpanic unfortunately I won't be able to work on it. If you submit a PR, that would be great