Gre7g Luterman <[EMAIL PROTECTED]> writes: > I am sure it would be more convenient to pull passwords via vchkpw, > but I really don't know how to do that. I believe vchkpw uses the > same interface as checkpwd, but I haven't clue one on how to spawn a > checkpwd program and then write to its file descriptor #3 in Python. > > Does anyone out there on this list know how to do it?
The TMDA/Auth.py module contains methods to do these sorts of things. See bin/tmda-manager for an example of how to use Auth. run_authprog() in Auth does what you describe above. However, it needs to be updated to look like the run_authprog() function in bin/tmda-ofmipd. Yes, this is a bit messy currently with the code duplication and such, but we haven't gotten around yet to using Auth.py in tmda-ofmipd and other programs. _________________________________________________ tmda-workers mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-workers
