Ñò Ã#xPc@s_ddklZdZdZd„Zd„Zd„Zd„Zd„Zd „Z d „Z d S( iÿÿÿÿ(truns@stusercCs(tddtgdtƒ\}}}|S(s Dump all keys tkeyctltlistt raiseonerr(RtKEYRINGtFalse(tstdouttstderrtrc((s</usr/lib/python2.6/site-packages/ipapython/kernel_keyring.pyt dump_keys!s$cCsOtddtt|gdtƒ\}}}|otd|ƒ‚n|iƒS(sv One cannot request a key based on the description it was created with so find the one we're looking for. RtsearchRskey %s not found(RRtKEYTYPERt ValueErrortrstrip(tkeyRRR ((s</usr/lib/python2.6/site-packages/ipapython/kernel_keyring.pyt get_real_key(s*cCs-yt|ƒtSWntj otSXdS(sC Returns True/False whether the key exists in the keyring. N(RtTrueR R(R((s</usr/lib/python2.6/site-packages/ipapython/kernel_keyring.pythas_key2s  cCsOt|ƒ}tdd|gdtƒ\}}}|otd|ƒ‚n|S(s‚ Read the keyring and return the value for key. Use pipe instead of print here to ensure we always get the raw data. RtpipeRskeyctl pipe failed: %s(RRRR (Rtreal_keyRRR ((s</usr/lib/python2.6/site-packages/ipapython/kernel_keyring.pytread_key<s  $cCsst|ƒoUt|ƒ}tdd|gd|dtƒ\}}}|otd|ƒ‚qont||ƒdS(sK Update the keyring data. If they key doesn't exist it is created. RtpupdatetstdinRskeyctl pupdate failed: %sN(RRRRR tadd_key(RtvalueRRRR ((s</usr/lib/python2.6/site-packages/ipapython/kernel_keyring.pyt update_keyIs   *cCspt|ƒotd|ƒ‚ntddt|tgd|dtƒ\}}}|otd|ƒ‚ndS(s* Add a key to the kernel keyring. skey %s already existsRtpaddRRskeyctl padd failed: %sN(RR RR RR(RRRRR ((s</usr/lib/python2.6/site-packages/ipapython/kernel_keyring.pyRUs  0cCsRt|ƒ}tdd|tgdtƒ\}}}|otd|ƒ‚ndS(s' Remove a key from the keyring RtunlinkRskeyctl unlink failed: %sN(RRRRR (RRRRR ((s</usr/lib/python2.6/site-packages/ipapython/kernel_keyring.pytdel_key_s 'N( tipapython.ipautilRRR R RRRRRR(((s</usr/lib/python2.6/site-packages/ipapython/kernel_keyring.pyts