§
    šMdË  ã                   óB   — d dl Z d dlZd dlZd dlZ G d„ de¦  «        ZdS )é    Nc                   ó    — e Zd Zd„ Zd„ Zd„ ZdS )ÚUserc                 ó(  — t          j        ¦   «         | _        |rt          j        |¦  «        }n d| _        t          j        | j        ¦  «        }|\  | _        | _        | _	        | _
        | _        | _        | _        | j        | j	        k    | _        d S )NF)ÚosÚgetuidÚmyuidÚpwdÚgetpwnamÚasrootÚgetpwuidÚusernameÚpasswordÚuidÚgidÚgecosÚhomedirÚshell)Úselfr   Úuserinfos      ú/usr/share/nslcd-utils/users.pyÚ__init__zUser.__init__   sy   € Ý”Y‘[”[ˆŒ
Øð 	0Ý”| HÑ-Ô-ˆHˆHàˆDŒKÝ”| D¤JÑ/Ô/ˆHà(0ñ	&ˆŒ˜œ t¤x°´¸4¼:ØŒL˜$œ*à”j D¤HÒ,ˆŒˆˆó    c                 ó®   — | j         rK| j        dk    rBt          t          j        d         ›d| j        ›d�¦  «         t          j        d¦  «         dS dS dS )z‘Check whether we can modify the user.

        Check if the user is an LDAP user and whether we may modify the user
        information.
        r   z: you may not modify user 'z'.
é   N)r   r   ÚprintÚsysÚargvr   Úexit©r   s    r   Úcheckz
User.check*   sc   € ð Œ;ð 	˜4œ:¨š?˜?ÝÝ”8˜A”;�;�; ¤  ð/ñ 0ô 0ð 0åŒH�Q‰KŒKˆKˆKˆKð	ð 	˜?˜?r   c                 óL   — t          j         | j        rdn	d| j        z  ¦  «        S )z>Ask and return a password that is required to change the user.zLDAP administrator password: zLDAP password for %s: )Úgetpassr   r   r   s    r   Ú
get_passwdzUser.get_passwd6   s2   € õ ŒàŒ{ð5Ð+Ð+à$ t¤}Ñ4ñ6ô 6ð 	6r   N)Ú__name__Ú
__module__Ú__qualname__r   r    r#   © r   r   r   r      sA   € € € € € ð
-ð 
-ð 
-ð	ð 	ð 	ð6ð 6ð 6ð 6ð 6r   r   )r"   r   r	   r   Úobjectr   r'   r   r   ú<module>r)      s_   ðð, €€€Ø 	€	€	€	Ø 
€
€
€
Ø 
€
€
€
ð!6ð !6ð !6ð !6ð !6ˆ6ñ !6ô !6ð !6ð !6ð !6r   