def pam_auth():
 def pam_auth_aux(username, password):
  return authenticate(username, password)
 return pam_auth_aux

def pam_auth ( ) : def pam_auth_aux ( username , password ) : return authenticate ( username , password ) return pam_auth_aux
to use pam_login: from gluon .