I'd like to add users to a MediaWiki group based on the setting of an ldap attribute.
If the user has "personType" set to "emp" in ldap then add them to the "employee" MediaWiki group and insure they are not in "contractors"
If the user has "personType" set to "con" in ldap then add them to the "contractor" MediaWiki group and insure they are not in "employees"
If the person does not have a "personType" attribute, remove them from both groups.
For another group, if the field "specialId" exists with any value, add them to the "specials" group, otherwise remove them from "specials".
Can this be done with settings? I suspect I'll need a callback function in LocalSettings.php to handle this. Is there a hook to call?