dunex-auth ~master
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());
- Registered by Clipsey
- ~master released 5 years ago
- dunex-project/dunex-auth
- BSL-1.0
- Copyright © 2019, DUNEX Contributors
- Authors:
- Dependencies:
- none
- Versions:
-
1.0.0 2019-Nov-12 ~master 2019-Dec-04 - 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