Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Linuxアカウントに基づいて(PAMと同様に)認証認証を行いたいのですが、これはPythonで実現する必要があります。または、Linux の暗号化アルゴリズムを作成する必要があります。つまり、各ディストリビューションは同じ暗号化方法を所有していますか?
ctype (システムの PAM を呼び出します) によって実現される pam というモジュールを見つけました。
スニペット:
import pam if pam.authenticate('username','password'): print 'authentication correct' else: print 'authentication incorrect'