GoldenBadger / useradm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Useradm

Modular Python User Management Tool

Useradm is used to manage Redbrick's membership.

Functions

New User Creation

  1. Queries DCU's AD server for User information;

    • Fullname
    • Student ID
    • DCU altmail
    • Course of Study
    • Year of Study.
  2. Asks user for nickname, queries if nick exists in Redbrick LDAP.

  3. If the user doesn't exist.

    • Creates the user's homedir
    • populates .forward with altmail address
    • assigns quotas.
    • broken adds the user to the announce-redbrick mailman list
    • mails user's password and account details.

Renew User

  1. Queries RB LDAP using user nickname.
  2. If Yearspaid <1, set yearsPaid=1
  3. problem if the user's shell is /usr/local/shell/expired and is renewed, shell isn't reset to /usr/local/shell/zsh
  4. problem if renewing && usertype is associat/committe it will hint at restoring usertype to member
    • For committe this wouldn't be as bad, but for associat this poses an issue frequently.

About


Languages

Language:Python 100.0%