#--- Code snippet as an example of a password-plugin that could be
#--- called during authentication if $auth_type = 6 in mpopd.conf
#--- The password supplied by the client is placed in $arg
#--- The only restriction is that it must return 0 for success and
#--- 2 for failure.

if (crypt($arg,$crypt_password) eq $crypt_password) {
	#--- Success
	return 0;
}
else {
	#--- Failure
	return 2;
}
