HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python2.7/dist-packages/hgext/factotum.pyc
ó
ÛXc@@s·dZddlmZddlZddlmZddlmZmZm	Z	m
Z
e
jZe	jZdZ
daaad„Zd„Zd	„Zeeƒd
„ƒZd„ZdS(sâhttp authentication with factotum

This extension allows the factotum(4) facility on Plan 9 from Bell Labs
platforms to provide authentication information for HTTP access. Configuration
entries specified in the auth section as well as authentication information
provided in the repository URL are fully supported. If no prefix is specified,
a value of "*" will be assumed.

By default, keys are specified as::

  proto=pass service=hg prefix=<prefix> user=<username> !password=<password>

If the factotum extension is unable to read the required key, one will be
requested interactively.

A configuration section is available to customize runtime behavior. By
default, these entries are::

  [factotum]
  executable = /bin/auth/factotum
  mountpoint = /mnt/factotum
  service = hg

The executable entry defines the full path to the factotum binary. The
mountpoint entry defines the path to the factotum file service. Lastly, the
service entry controls the service name used when reading keys.

i(tabsolute_importN(t_(terrorthttpconnectionturltutili€cC@se|jjƒs'tjtdƒƒ‚nd|kr@d|}nd|}tjdt|fƒdS(Nsfactotum not interactivesuser=s%s user?s
%s !password?s
%s -g '%s'(tuitinteractiveRtAbortRtostsystemt_executable(tselftparams((s2/usr/lib/python2.7/dist-packages/hgext/factotum.pytauth_getkeyBs

cC@sgd|}xVtrbtjdttjƒ}zyâtj|d|ƒtj|tƒjƒ}|ddkrtj|dƒtj|tƒjddƒ\}}}|dkr|j
dƒr|jdƒrë|d	d
!jddƒ}qt
jtdƒƒ‚n||fSnWn,ttfk
r?t
jtd
ƒƒ‚nXWdtj|ƒX|||ƒq
WdS(Ns
proto=pass %ss%s/rpcsstart %sitoktreadit'iiÿÿÿÿs''smalformed password stringsfactotum not responding(tTrueR	topent_mountpointtO_RDWRtwriteRtERRMAXtsplittNonet
startswithtendswithtreplaceRRRtOSErrortIOErrortclose(RtgetkeyR
tfdtltstatustusertpasswd((s2/usr/lib/python2.7/dist-packages/hgext/factotum.pytauth_getuserpasswdJs(
	'c@s‡fd†}|S(Nc@stˆ|j|ƒ|S(N(tsetattrt__name__(tfunc(tcls(s2/usr/lib/python2.7/dist-packages/hgext/factotum.pyt	decoratorbs((R*R+((R*s2/usr/lib/python2.7/dist-packages/hgext/factotum.pytmonkeypatch_methodasc
C@sF|jj||ƒ\}}|rA|rA|j||ƒ||fSd}tj|j||ƒ}|r¢|\}}|jdƒ}|jdƒ|jdƒ}}n|s°|r|sÒ|jdƒdjƒ}ndt	|f}	|rûd|	|f}	nt
|t|	ƒ\}}n|j||||ƒ|j||ƒ||fS(	Nttprefixtusernametpasswordt isservice=%s prefix=%ss
%s user=%s(
tpasswddbtfind_user_passwordt_writedebugRtreadauthforuriRtgetRtlowert_serviceR&Rtadd_password(
RtrealmtauthuriR$R%R.tresRtauthR
((s2/usr/lib/python2.7/dist-packages/hgext/factotum.pyR3gs(
"cC@sC|jdddƒa|jdddƒa|jdddƒadS(Ntfactotumt
executables/bin/auth/factotumt
mountpoints
/mnt/factotumtservicethg(tconfigRRR8(R((s2/usr/lib/python2.7/dist-packages/hgext/factotum.pytuisetup€s(t__doc__t
__future__RR	tmercurial.i18nRt	mercurialRRRRturlreqtpasswordmgrRRRRR8RR&R,R3RD(((s2/usr/lib/python2.7/dist-packages/hgext/factotum.pyt<module>.s"