script-server icon indicating copy to clipboard operation
script-server copied to clipboard

access LDAP groups from script

Open fnpanic opened this issue 3 years ago • 1 comments

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.

fnpanic avatar Mar 03 '22 11:03 fnpanic

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

bugy avatar Mar 03 '22 11:03 bugy