Verified Commit 087f1536 authored by Jakob Moser's avatar Jakob Moser
Browse files

Add usage details

parent 28831266
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -53,6 +53,19 @@ def main(
    ],
) -> None:
    """
    Get details on a single user from Uni Heidelberg LDAP, given their Uni ID.

    Usage:

    1. Install uv (https://docs.astral.sh/uv/#installation).
    
    2. $ export BIND_UNI_ID="ab123"

    3. $ read -s BIND_PASSWORD; export BIND_PASSWORD

    (Step 1 only needs to be run once, steps 2 and 3 only once per session.)

    4. Now, check any Uni ID you want: $ ./password_change_date.py xy789
    """
    credentials = _get_credentials()
    connection = _get_connection(*credentials)