I got output from command like below. Need to extract group names.
dsAttrTypeNative:memberOf: CN=Grupa_test,OU=Groups,DC=yellow,DC=com CN=Firefox_Install,OU=Groups,DC=yellow,DC=com CN=Network_Admin,OU=Groups,DC=yellow,DC=com
So I would like to have something like:
Grupa_test
Firefox_Install
Network_Admin
Amount of groups will be different each time so I'm not sure how to achieve that.