knuedge/lita-activedirectory

View on GitHub
locales/en.yml

Summary

Maintainability
Test Coverage
en:
  lita:
    handlers:
      activedirectory:
        help:
          user_locked?:
            syntax: is <username> locked?
            desc: queries active directory to see if a user is locked
          unlock:
            syntax: unlock <username>
            desc: unlocks an active directory user account
          user_groups:
            syntax: <username> groups
            desc: lists all group memberships for the given username
          group_members:
            syntax: group <groupname> members
            desc: lists all members of the given group
          add_member:
            syntax: add <username> to <groupname>
            desc: add a user to an LDAP group
          remove_member:
            syntax: remove <username> from <groupname>
            desc: remove a user from an LDAP group
          disable_user:
            syntax: disable user <username>
            desc: disable an active directory user
          enable_user:
            syntax: enable user <username>
            desc: enable an active directory user
        replies:
          user_locked?:
            working: let me check on that
            locked: "looks like '%{user}' is locked"
            notlocked: "'%{user}' is not locked"
            error: "'%{user}' does not appear to be a valid user"
          unlock:
            working: lets see what we can do
            success: "'%{user}' has been unlocked"
            fail: "could not unlock '%{user}', check active directory directly"
          user_groups:
            working: Give me a second to search
            success: "'%{user}' is a member of"
            not_found: "could not find any groups that '%{user}' is a member of"
            error: "That did not work, double check that '%{user}' is a valid samAccountName"
          group_members:
            working: Give me a second to search
            error: "That did not work, double check the '%{group}' is a valid group name"
          add_member:
            working: I'll get that user added
            error: "That did not work, double check that '%{user}' and '%{group}' are valid"
            success: "'%{user}' is now a member of '%{group}'"
          remove_member:
            working: Give me just a second to remove that user from the group
            error: "That did not work, double check that '%{user}' and '%{group}' are valid"
            success: "'%{user}' is no longer a member of '%{group}'"
          disable_user:
            working: Let's stop that user from logging in then
            error: "That did not work, double check that '%{user}' is a valid user"
            success: "'%{user}' is now disabled"
          enable_user:
            working: I'll allow this user to login again
            error: "That did not work, double check that '%{user}' is a valid user"
            success: "'%{user}' is now enabled"