Open Aaeeschylus opened 2 years ago
I found the problem. Someone had changed permissions in a single OU and that prevented the account from viewing the contents.
If possible, an error message that specifies access denied would be much better than "no such object on the server"
I have a script which gets run through devops daily and has been running daily for the past 6 months. The point of the script is to monitor group membership for certain groups. Recently however, it is failing but only for some groups.
The relevant part of the code is as follows:
For most groups, this will get a list of all of the members in the group and will do some further processing afterwards. However, for some groups, it throws the following error:
At first I thought there might be something wrong with one of the users that are a part of this group, however using
I can successfully retrieve every user that is part of the group on their own, just not through get_members().
I then thought it was an issue with the built-in groups (since Domain Admins is failing), however there are a couple groups that are not built-in that are failing and Domain Admins is the only failing built-in.
I tried looking through and comparing both security permissions and attributes of groups that are failing with groups that are working and nothing appeared out of the ordinary.
I am now at a loss as to what could be causing this. Any assistance would be greatly appreciated.