dunex-auth 1.0.0

DUNEX Authentication Library


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

Manual usage
Put the following dependency into your project's dependences section:

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

  • 0 downloads this week

  • 0 downloads this month

  • 23 downloads total

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