From 082047ec2146c52b4c8b3219e43fe773470f3cef Mon Sep 17 00:00:00 2001 From: Nagy Karoly Gabriel Date: Fri, 23 Apr 2010 12:18:57 +0300 Subject: [PATCH] ecn-robots: begun implementing the postgres hba manager. --- phba.py | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 phba.py diff --git a/phba.py b/phba.py new file mode 100644 index 0000000..c8e8cfb --- /dev/null +++ b/phba.py @@ -0,0 +1,34 @@ +# !/usr/bin/env python -tt +# -*- encoding: utf-8 -*- + +auth_methods = ( + u'trust', + u'reject', + u'md5', + u'crypt', + u'password', + u'gss', + u'sspi', + u'krb5', + u'ident', + u'pam', + u'ldap', +) + +net_connection_types = ( + u'host', + u'hostssl', + u'hostnossl', +) +no_net_connection_types = ( + u'local', +) +connection_types = no_net_connection_types + net_connection_types + +connection_type_equiv = { + u'local' : (u'local',), + u'host' : (u'host', u'hostssl', u'hostnossl'), + u'hostssl' : (u'host', u'hostssl',), + u'hostnossl' : (u'host', u'hostnossl',), +} +