Code Monkey home page Code Monkey logo

sambaposix's Introduction

SambaPosix is a tool to manage POSIX attributes for
users and groups in a Samba4 based AD DC.

ATTENTION: The state of development is not even alpha.
At the current stage it helped setting up my own DC.
Documentation is restricted to what argparse produces.
I hope to improve this in future.

Please send bugs and ideas to [email protected]

The program is distributed under the GNU Public License
version 3 (GPLv3). The terms and conditions canbe found
at: http://www.gnu.org/licenses/gpl.html

Copyright (C) 2014 Dr. Lars Hanke

1) What it can do
-----------------

SambaPosix can set POSIX attributes to users and groups,
as well as removing them again.

It can also list, which attributes are set and whether
conflicting settings exist. This comes in very handy
while setting up winbind, libnss-ldap, nslcd, etc. What
SambaPosix tells you, is actually in the LDAP!

SambaPosix can convert base64 encoded SID as returned
e.g. by ldapsearch to human readable form and vice
versa.

It can address groups by SID / RID and show SID
given POSIX names or numbers.

The tool can also add or remove users from groups.

It can bind to the AD DC using Kerberos, or TLS
protected using name and password. TLS can be disabled.

2) What it cannot do
--------------------

SambaPosix can not create users or groups, nor
delete those. Use samba-tool for that purpose.

SambaPosix may use, but does not work on Kerberos. So
use passwd or samba-tool to work on passwords.

3) Examples
-----------

# POSIXify user test
./SambaPosix.py user set test -u 1000 --gecos "Test User" --home "/home/test" --shell "/bin/bash"

# POSIXify group toast
./SambaPosix.py group set toast -g 1000

# add user test to group toast
./SambaPosix.py group add toast test

# show id information about user test
./SambaPosix.py user id test

# show getent information about group toast
./SambaPosix.py group getent toast

# show complete getent passwd from LDAP
./SambaPosix.py user getent

# don't use Kerberos, but authenticate as Administrator
./SambaPosix.py -U Administrator group getent

# unposixify group toast as Administrator
./SambaPosix.py -U Administrator group set toast --unposix

sambaposix's People

Stargazers

guedressel avatar

Watchers

John M. Drescher avatar  avatar James Cloos 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.