how to check ldap attrib and take action on accounting start