Ńň
Ă#xPc @ sk d Z d d k Z d d k l Z d d k l Z d d k Z d Z d e f d YZ e i e d S( sX
Backend plugin for Kerberos.
This wraps the python-kerberos and python-krbV bindings.
i˙˙˙˙N( t api( t Backends UTF-8t krbc B s_ e Z d Z d Z d Z d Z d Z d Z d Z d Z d Z
d Z RS(
ső
Kerberos backend plugin.
This wraps the `krbV` bindings (and will eventually wrap the `kerberos`
bindings also). Importantly, this plugin does correct Unicode
encoding/decoding of values going-to/coming-from the bindings.
c C s t i i S( sN
Return the ``krbV.CCache`` for the default credential cache.
( t krbVt default_contextt default_ccache( t self( ( s; /usr/lib/python2.6/site-packages/ipalib/plugins/kerberos.pyt __default_ccache+ s c C s | i i S( sQ
Return the ``krb5.Principal`` for the default credential cache.
( t _krb__default_ccachet principal( R ( ( s; /usr/lib/python2.6/site-packages/ipalib/plugins/kerberos.pyt __default_principal1 s c C s
t i | S( sR
Return the ``krbV.CCache`` for the ``ccname`` credential ccache.
( R t CCache( R t ccname( ( s; /usr/lib/python2.6/site-packages/ipalib/plugins/kerberos.pyt __get_ccache7 s c C s | i | i S( sU
Return the ``krb5.Principal`` for the ``ccname`` credential ccache.
( t _krb__get_ccacheR ( R R ( ( s; /usr/lib/python2.6/site-packages/ipalib/plugins/kerberos.pyt __get_principal= s c C s
| i i S( sŰ
Return the default ccache file name.
This will return something like '/tmp/krb5cc_500'.
This cannot return anything meaningful if used in the server as a
request is processed.
( R t name( R ( ( s; /usr/lib/python2.6/site-packages/ipalib/plugins/kerberos.pyt default_ccnameC s c C s | i i i t S( s?
Return the principal name in default credential cache.
This will return something like 'admin@EXAMPLE.COM'. If no credential
cache exists for the invoking user, None is returned.
This cannot return anything meaningful if used in the server as a
request is processed.
( t _krb__default_principalR t decodet ENCODING( R ( ( s; /usr/lib/python2.6/site-packages/ipalib/plugins/kerberos.pyt default_principalN s
c C s t i i i t S( s6
Return the realm from the default credential cache.
This will return something like 'EXAMPLE.COM'. If no credential cache
exists for the invoking user, None is returned.
This cannot return anything meaningful if used in the server as a
request is processed.
( R R t
default_realmR R ( R ( ( s; /usr/lib/python2.6/site-packages/ipalib/plugins/kerberos.pyR Z s
c C s | i | i i t S( s
Return the principal from credential cache file at ``ccname``.
This will return something like 'admin@EXAMPLE.COM'.
( t _krb__get_principalR R R ( R R ( ( s; /usr/lib/python2.6/site-packages/ipalib/plugins/kerberos.pyt
get_principalf s c C s | i | i i t S( s
Return the realm from credential cache file at ``ccname``.
This will return something like 'EXAMPLE.COM'.
( R t realmR R ( R R ( ( s; /usr/lib/python2.6/site-packages/ipalib/plugins/kerberos.pyt get_realmn s ( t __name__t
__module__t __doc__R R R R R R R R R ( ( ( s; /usr/lib/python2.6/site-packages/ipalib/plugins/kerberos.pyR " s (
R t syst ipalibR t ipalib.backendR R R R t register( ( ( s; /usr/lib/python2.6/site-packages/ipalib/plugins/kerberos.pyt