Skip to main content

SAP password manager with KeePass

Project description

PyKeeSAP

The PyKeeSAP is SAP Password Manager. All SAP passwords stored in the KeePass Database.

Main features:

  • The password to the KeePass Database file you can enter each time using PyKeeSAP or set password in PyKeeSAP configuration file (settings.ini).
  • Create or delete entries in the KeePass Database.
  • Passwords stored in the KeePass Database. You can manually see SAP users and passwords in the KeePass Database at any time.
  • Automatically log in to SAP system specifing only SAP system ID with account from KeePass Database. No need to start SAP Logon, find connection, retrieve the passwords. For security reasons user passwords must contain digits, specials, upper- and lowercase letters. So it's difficult to remember. Do not forget each user account should has own password (not same).
  • If needed to change password while login PyKeeSAP set new password and update the entry in KeePass Database.
  • Change password to SAP user in one command (using transaction SU3). Password generator is integrated. In case of compromise, the password may be quickly changed in SAP system at any time in few seconds.
  • Automatically log in to SAP systems using all user accounts in the KeePass Database. Thus productive passwords won't never be expired by inactive password period (set by login/password_max_idle_productive).
  • Automatically change passwords to all user accounts in the KeePass file. Usually for security reasons the passwords of technical and service accounts must be changed at specifyed period of time (for example annually). SAP NetWeaver platform doesn't control and promt it.

Table of contents

Python installation

  1. Download last version of Python 3.x installer
  2. Run the installer
  3. While installation choose folowing option:
    • Add python 3.x to PATH

Install

Pip installation (recomended)

Installation is easy. Run in windows console (command line interpreter - cmd):

pip install PyKeeSAP

If your computer is behind a proxy set additional option --proxy in following format:

pip install sapsec --proxy http://user:password@proxyserver:port

Installation from github

If for some reason the installation was not successful (with pip) there is an opportunity to install sapsec from github source files.

  1. Download zip archive with project source codes. Or use git clone:
git clone https://github.com/gutskodv/PyKeeSAP.git
  1. Unpack files from dowloaded zip archive. And go to project directory with setup.py file.
  2. Ugrade pip, Install Wheel package, Collect sapsec package:
python -m pip install --upgrade pip
pip install wheel
python setup.py bdist_wheel
  1. Install sapsec package from generaed python wheel in dist subdirectory:
python setup.py dist\PyKeeSAP*.whl

Requirements

You can manually intall requirements if they were not installed in automatic mode.

  1. PyWin32 (Python extensions for Microsoft Windows Provides access to much of the Win32 API, the ability to create and use COM objects, and the Pythonwin environment).
pip install pywin32
  1. PySapGUI (SAP GUI Scripting Library).
pip install PySapGUI

Before running

  1. Download and install KeePass software.
  2. Manualy create KeePass Database file. Set strong password to Database and may specify additional key file.
  3. Run PyKeeSAP and understand path to settings.ini file
pykeesap -h
  1. Configure settings.ini file:
  • Set LocalSaplogonINI - Path to local saplogon.ini file
  • Set (optionally) GlobalSaplogonINI - Path to cashed additional saplogon.ini file from server
  • Set SaplogonEXE - Path to saplogon.exe file (SAP Logon Application)
  • Set KeePassFile - Path to the created KeePass Database file
  • Set (optionaally) KeePassPassword - Password to open the created KeePass Database file
  • Set (optionally) KeePassKeyFile - Path to key file (if used)
  • Modify (optionally) password policy to generated passwords
  1. Enable SAP GUI scripting to entire SAP system or some users.

Usage

  1. To print accounts in the KeePass Database execute one of the following commands:
pykeesap print
pykeesap print -s TST
  1. To create new user account in the KeePass Database execute one of the following commands:
pykeesap create TST -u TESTUSER01 -p password123
pykeesap create TST -c 000 -u TESTUSER02 -p password123
  1. To log in to SAP (using user account in the KeePass Database file) execute one of the following commands:
pykeesap login TST
pykeesap login TST -c 001
pykeesap login TST -t TESTUSER01-TST
pykeesap login TST -t TESTUSER02-TST-000
  1. To multi log in to SAP execute (reset inactive password counters):
pykeesap multilogin
  1. To multi change the user passwords:
pykeesap multichangepwd

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

PyKeeSAP-1.0.2-py3-none-any.whl (16.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page