User Tools

Site Tools


group_member_samaccountname

member sAMAccountName

Purpose

Warns when the specified AD group's direct member sAMAccountName does not match the specification.

Notes

This requirement may be repeated in the same section.

For is and is not operators, one matching group member will satisfy the requirement:

# If any direct group member's sAMAccountName is 'example', Martinet will not generate a warning.
member sAMAccountName is example

# If the direct group members don't include the account with sAMAccountName 'example', Martinet will not generate a warning.
member sAMAccountName is not example


Example configuration

# Warn if there is no direct group member named 'MyUnit All Users'.
[group:"Field Consultants" "CN=Field Services OU Admins,OU=FC Groups,OU=Field Consulting,OU=Delegated,OU=TechServices,OU=Urbana,DC=ad,DC=uillinois,DC=edu" "CN=Tech Services FC Tech\*,OU=FC Groups,OU=Field Consulting,OU=Delegated,OU=TechServices,OU=Urbana,DC=ad,DC=uillinois,DC=edu" "03efc439-b0dc-4615-afed-646fd22dfe34"]
member sAMAccountName is MyUnit All Users

Example output

Line 6: Found 4 AD groups with no direct member whose sAMAccountName is “MyUnit All Users”:

ObjectGUID Name sAMAccountName
2515e8a0-1f1c-41f4-9139-eebc07ab2dc1 Field Consultants Field Consultants
d962fe33-6501-45fd-a686-962f49481e7b Field Services OU Admins Field Services OU Admins
f79cefc3-ac3c-4993-aab7-759d661ccfeb Tech Services FC TechOps FCTechOps
03efc439-b0dc-4615-afed-646fd22dfe34 FC-Unix FC-Unix


Example configuration

# Kenn Wislander (wislande) should not be listed in any of these groups. Warn if he's listed.
[group:"Field Consultants" "CN=Field Services OU Admins,OU=FC Groups,OU=Field Consulting,OU=Delegated,OU=TechServices,OU=Urbana,DC=ad,DC=uillinois,DC=edu" "CN=Tech Services FC Tech\*,OU=FC Groups,OU=Field Consulting,OU=Delegated,OU=TechServices,OU=Urbana,DC=ad,DC=uillinois,DC=edu" "03efc439-b0dc-4615-afed-646fd22dfe34"]
member sAMAccountName is not wislande

Example output

Line 6: Found 3 AD groups with an direct member whose sAMAccountName is “wislande”:

ObjectGUID Name sAMAccountName
2515e8a0-1f1c-41f4-9139-eebc07ab2dc1 Field Consultants Field Consultants
d962fe33-6501-45fd-a686-962f49481e7b Field Services OU Admins Field Services OU Admins
f79cefc3-ac3c-4993-aab7-759d661ccfeb Tech Services FC TechOps FCTechOps


Example configuration

# Direct members of these groups should not have vowels in their sAMAccountNames. Warn if member's sAMAccountNames have vowels.
[group:"Field Consultants" "CN=Field Services OU Admins,OU=FC Groups,OU=Field Consulting,OU=Delegated,OU=TechServices,OU=Urbana,DC=ad,DC=uillinois,DC=edu" "CN=Tech Services FC Tech\*,OU=FC Groups,OU=Field Consulting,OU=Delegated,OU=TechServices,OU=Urbana,DC=ad,DC=uillinois,DC=edu" "03efc439-b0dc-4615-afed-646fd22dfe34"]
member sAMAccountName not like *[aeiou]*

Example output

Line 6: Found 4 AD groups with an direct member whose sAMAccountName matches wildcard expression “*[aeiou]*”:

ObjectGUID Name sAMAccountName Matching Group Members
2515e8a0-1f1c-41f4-9139-eebc07ab2dc1 Field Consultants Field Consultants wislande; ediii; kpointer; lee400; elarson; jabrwn; gulley1; dking13; andrewr; kmark80
d962fe33-6501-45fd-a686-962f49481e7b Field Services OU Admins Field Services OU Admins CITES-FC-Sandbox-Admins; wislande
f79cefc3-ac3c-4993-aab7-759d661ccfeb Tech Services FC TechOps FCTechOps jabrwn; lee400; kpointer; wislande
03efc439-b0dc-4615-afed-646fd22dfe34 FC-Unix FC-Unix andrewr; kpointer
group_member_samaccountname.txt · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki