Command line tool for managing htdigest files
Go
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
htfile.go
main.go
passwd.go
passwd_unix.go
passwd_windows.go

README.md

htdigest-go

Command line tool for managing htdigest files.

Usage

htdigest <htfile> <add|del> <realm> <user>
  • htfile
    • Filename with htdigest records.
  • add|del
    • Action to perform (add or delete user, realm pair).
      Adding existing user will overwrite him.
  • realm
    • Realm name, no comments needed, I hope.
  • user
    • User name, also no comments needed.

Examples

# add user 'Magik' to 'Roorback' realm
htdigest my_digest_file add Roorback Magik

# add user 'Magik' to 'Team' realm
htdigest my_digest_file add Team Magik

# add user 'Shadow' to 'Team' realm
htdigest my_digest_file add Team Shadow

# change password for user 'Magik' in 'Roorback' realm
htdigest my_digest_file add Roorback Magik

# delete user 'Shadow' from 'Team' realm
htdigest my_digest_file del Team Shadow    

Installation

go get github.com/MagikBSD/htdigest-go