Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

sfonteneau/samba4-sync-password

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Password Sync for Samba4

That this solution requires you to enable plaintext passwords:

samba-tool domain passwordsettings set --store-plaintext=on and check "Store password using reersible encryption" in user account.

Reads from your Samba4 AD and send user,email and password in script

If the script returns a good exit code, the password in plain text in samba4 is removed.

Python Dependencies

  • syslog
  • samba

Installation

  • git clone https://github.com/sfonteneau/samba4-sync-password.git
  • mv samba4-sync-password /opt/syncpassword
  • mkdir /etc/syncpassword
  • cd /opt/syncpassword/
  • cp -f synchro.conf /etc/syncpassword/
  • Configure /etc/syncpassword/synchro.conf with your samba settings
  • Start with "python3 /opt/syncpassword/syncpassword.py"

Note :

- The script gets the different arguments in this way:  script.sh mail password (password encode in base64)
- Create a systemctl service for the script

About

Password Sync for Samba4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages