univention.management.console.modules.schoolusers package#

univention.management.console.modules.schoolusers.get_udm_user_mod()[source]#
univention.management.console.modules.schoolusers.get_user_from_request(user_dn, access, as_udm_object=False)[source]#
univention.management.console.modules.schoolusers.get_extended_attributes()[source]#
univention.management.console.modules.schoolusers.get_exception_msg(exc)[source]#
univention.management.console.modules.schoolusers.udm_admin_save_user_with_extended_attributes(dn)[source]#
class univention.management.console.modules.schoolusers.Instance(*args, **kwargs)[source]#

Bases: SchoolBaseModule

query(request)[source]#

Searches for students

password_reset(request)[source]#

Reset the password of the user

passwordexpiry_to_days(timestr)[source]#

Calculates the number of days from now to the password expiration date.

The result is always rounded up to the full day. The time function used here are all based on Epoch(UTC). Since we are not interested in a specific date and only in a time difference the actual timezone is neglectable.

Parameters:

timestr (str) – The string representation of the expiration date, e.g. 2018-05-30 or None

Returns:

-1 if no expiration day is set, 0 if already expired, >0 otherwise

Return type:

int