Giter VIP home page Giter VIP logo

libnss-iam's Introduction

Build Status

libnss-iam

Lib NSS module to integrate AWS IAM users/groups to Linux NSS subsystem.

Building

A docker ubuntu 16.04 environment is used to build the AWS c++ sdk:

# Create and launch the sdk build environment
libnss-iam$ make docker-build
libnss-iam$ make docker-shell

$USER@$aws-sdk-builder:~/libnss-iam$ make deps

Build libnss_iam.so.2:

# This can be done on an ubuntu 16.04 or 18.04 host
libnss-iam$ make

Build .deb package

# This can be done on an ubuntu 16.04 or 18.04 host
libnss-iam$ make deb

Docker Simulator

A simulator is provided to test installing and using libnss_iam.so.2

AWS: You'll need an IAM user with ssh public key set

# The user level AWS shared creds file should have [default] set correctly in '~/.aws/credentials'
[default]
assumed_role = False
aws_access_key_id = ...
aws_secret_access_key = ...
aws_session_token = ...
aws_security_token = ...
expiration = ...

Start/Configure the simulator:

# Create and launch the simulator
libnss-iam/docker$ make docker-build
libnss-iam/docker$ make docker-shell

# install libnss_iam.so.2 (Makefile)
root@bastion-service:/libnss-iam# make install
or
# install libnss_iam.so.2 (.deb package)
root@bastion-service:/# dpkg -i /libnss-iam/libnss-iam-0.1.deb

# Start sshd
root@bastion-service:/libnss-iam# /usr/sbin/sshd -d

In another terminal:

# Connect to the simulator
$ ssh -p 2222 localhost

Debugging

Running:

libnss-iam$ AWS_PROFILE=... ./iam <iam-user>
libnss-iam$ AWS_PROFILE=... ./iam <iam-user> <password> [<mfa-code>]

Links

libc:

libnss-iam's People

Contributors

gfleury avatar fred-vogt 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.