Coder Social home page Coder Social logo

rave-net / getpass3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tjpatter/getpass3

0.0 0.0 0.0 23 KB

eDirectory Universal Password retrieval utility. Python-based. Supports TLS.

License: GNU General Public License v3.0

Python 100.00%

getpass3's Introduction

getpass - Universal Password Retrieval Utility - Version 3.0 - 03/11/2022

This program retrieves a user's eDirectory Universal Password by using an LDAP extended operation.

To install, simply ensure you have a Python 3 environment with the 'argparse', 'ldap3' and 'sys' modules available.
This code will run on any system that meets these requirements, Linux, Mac, and Windows.

Example installation on Open Enterprise Server 2018 SP3 (x86_64) / SUSE Linux Enterprise Server 12 SP5 (x86_64),
run as root:

python3 -m ensurepip --upgrade
pip3 install ldap3

Usage (at a shell type):
:~> python3 getpass.py

The following arguments are required:
-u/--admin-user, CN of an administrative user, ex: cn=admin,o=lab
-p/--admin-pass, Password for the administrative user
-s/--server-host, Hostname of the target server. ex: oes.lab.local
-P/--server-port, TLS port of the target server. ex: 636
-t/--target-user, CN of the target user password you want to retrieve. ex: cn=test,ou=users,o=lab
-e/--env-file, Use .env file for connection info

Example output:
oes:~> python3 getpass.py -u cn=admin,o=lab -p Mylabpass -s oes.lab.local -P 636 -t cn=test,ou=users,o=lab
SuperSecret!


NOTE: The eDirectory environment must be using the Universal Password feature, and the target user must have a Universal Password Policy assigned to them by using iManager. The Password Policy must also allow the administrative user to retrieve passwords.

getpass3's People

Contributors

rave-net avatar tjpatter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.