dunex-auth 1.0.0

DUNEX Authentication Library


To use this package, run the following command in your project's root directory:

DUNEX Auth

DUNEX Auth is a native D toolkit to manage POSIX/UNIX authentication

DUNEX Auth supports:

  • Reading and manipulating /etc/passwd and /etc/shadow
  • Comparison and creation of password hashes
  • Creation of compatible UNIX salts for crypt

libcrypt is neccesary for DUNEX Auth to work.

Opening a database

// dunex.auth.passwd

// Open password database read-only.
auto db = PasswdDB.openro();

// Find the entry for the root user
auto entry = db.find("root");

// isInShadow returns true if the password is present in the shadow file
writeln(entry.isInShadow());
Authors:
  • Clipsey
Dependencies:
none
Versions:
1.0.0 2019-Nov-12
~master 2019-Dec-04
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 2 downloads this week

  • 6 downloads this month

  • 6 downloads total

Score:
0.1
Short URL:
dunex-auth.dub.pm