Cache Primer for Sharepoint with ADFSv3
Project description
Overview
The first time a browser hits a sharepoint site after a restart, the caches are empty, so the page can take a while to load. One can script something to silently hit a sharepoint web-frontend, causing it to build caches and preventing any real people from experiencing that.
This tool does this for a specific circumstance where it’s kind of hard to script it without better tools - where normal NTML authentication doesn’t work, because there is ADFSv3 authentication configured, and where there may be a number of web-frontends behind a load balancer.
I don’t know why this is required. I’m not a sharepoint admin. Maybe it’s an artifact of a particular setup.
Installation
This may work in Python 2, but many distributions of Python 2 do not include urllib that has SNI support. Since this is a sysadmin tool, you probably want it to “just work”, so “just use Python 3.4”.
Simple install: pip install sharepointcacheprimer
Usage
The pypi package installs an executable in the standard python location, called ‘sharepointcacheprimer‘.
usage: sharepointcacheprimer [-h] config site [site ...] example: sharepointcacheprimer myconfig.ini mysite.com mysite2.com
This will connect to a sharepoint site, authenticate and load a page silently. It is suited to running as a cronjob/scheduled task.
The configuration file is formatted as a .ini. The packages ships with an example file that is installed in PYTHONROOT/doc/, and described below.
Configuration
>From the included doc/example.ini
Each section is either a site definition or a cookieset definition.
A Site Definition
This is a sharepoint site, with ADFS credentials and an optional reference to a cookieset to use.
[example.com] ; Site: example.com username = domain\user1 ; ADFS username password = password1 ; ADFS password url = http://example.com ; URL that for site to prime cookielist = examplecookies ; Optional sectionname for Cookie Sets
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sharepointcacheprimer-1.0b3.post5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab8be031c7887263c7dfa4d79d7f2c568d91aca074c2870aeb1e861eb71e2c05 |
|
MD5 | 8004b7f03c2fb922af6346baa08ed01a |
|
BLAKE2b-256 | 52216dc99024ee0e0cd7b6143b093d425032d603edcc8bd88513d39f0531c11e |
Hashes for sharepointcacheprimer-1.0b3.post5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 274cfcd034d0fcab93969f635081a75c7ee292fabcbbe438fc67caad6442be58 |
|
MD5 | 8bbaad6bb9874dceea43dbba1c0ac9d0 |
|
BLAKE2b-256 | 5f68981ae5fcde712974cd3a2617137dd071206e6966c4f788b438f785a39cf7 |