??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó àUdac@`sŠddlmZmZmZeZdZddlmZddl m Z ddl m Z ddl Z ddlZdefd„ƒYZdS( i(tabsolute_importtdivisiontprint_functions --- author: - Miguel Angel Munoz (@magonzalez) httpapi : fortios short_description: HttpApi Plugin for Fortinet FortiOS Appliance or VM description: - This HttpApi plugin provides methods to connect to Fortinet FortiOS Appliance or VM via REST API version_added: "2.9" (t HttpApiBase(tto_text(turllibNtHttpApicB`sGeZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cC`s#tt|ƒj|ƒd|_dS(Nt(tsuperRt__init__t _ccsrftoken(tselft connection((sC/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/fortios.pyR 4scC`sdS(sŒ Elevation is not required on Fortinet devices - Skipped :param become_context: Unused input. :return: None N(tNone(R tbecome_context((sC/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/fortios.pyt set_become9scC`sudtjj|ƒdtjj|ƒd}|jddd|ddƒ\}}|d d krqtd ƒ‚nd S( sACall a defined login endpoint to receive an authentication token.s username=s &secretkey=s&ajax=1turls /loginchecktdatatmethodtPOSTit1sWrong credentials. Please checkN(Rtparsetquotet send_requestt Exception(R tusernametpasswordRtdummyt result_data((sC/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/fortios.pytloginAs.$cC`s|jddddƒdS(s" Call to implement session logout.Rs/logoutRRN(R(R ((sC/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/fortios.pytlogoutIsc C`s?i}g}t|jdƒr-|jj}n)g|jD]}||j|f^q7}xÕ|D]Í\}}|jƒdkrÜd|krÜ||d<|jdƒ}|dkr*||tdƒjdƒd}||_q*q]|jƒdkr]d|kr]tj d |ƒ} | r*| j dƒ|_q*q]q]W|j|d <|S( sð Get cookies and obtain value for csrftoken that will be used on next requests :param response: Response given by the server. :param response_text Unused_input. :return: Dictionary containing headers t_headerss set-cookiet APSCOOKIE_tCookies ccsrftoken=iÿÿÿÿs"is"(.*)"s x-csrftoken( thasattrtheadersRtlowertfindtlentsplitR tretsearchtgroup( R tresponset response_textR#tresp_raw_headerstattrtvaltx_ccsrftoken_positiont token_stringtcsrftoken_search((sC/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/fortios.pyt update_authNs$)  ! cC`s|S(ss Not required on Fortinet devices - Skipped :param exc: Unused input. :return: exc ((R texc((sC/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/fortios.pythandle_httperrornsc K`sÄ|jddƒ}|jddƒ}|jddƒ}yh|jj||d|ƒ\}}d}t|dƒr{|j}n |jj}|t|jƒƒfSWnt k r¿}t |ƒ‚nXdS( sñ Responsible for actual sending of data to the connection httpapi base plugin. :param message_kwargs: A formatted dictionary containing request info: url, data, method :return: Status code and response data. Rt/RRRtGETtstatusN( tgetR tsendR R"R8R#RtgetvalueR( R tmessage_kwargsRRRR+t response_datatresponse_statusterr((sC/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/fortios.pyRvs!  ( t__name__t __module__R RRRR3R5R(((sC/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/fortios.pyR3s     (t __future__RRRttypet __metaclass__t DOCUMENTATIONtansible.plugins.httpapiRtansible.module_utils.basicRtansible.module_utils.six.movesRtjsonR(R(((sC/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/fortios.pyts