Merge nearly ready for 1.4.0.
This commit is contained in:
parent
f8870f6c80
commit
d92c2d2a76
11 changed files with 28 additions and 16 deletions
|
|
@ -140,7 +140,7 @@ gcc -Wall -DMAX_UID=1000 -DMIN_UID=1000 -o chkpwd chkpwd.c -lpam -lpam_misc
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
chkpwd is licensed under the Apache License, Version 2.0.
|
chkusr is licensed under the Apache License, Version 2.0.
|
||||||
|
|
||||||
See LICENSE for details.
|
See LICENSE for details.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,12 @@
|
||||||
* chkgrp-min is a program that checks if a user is a member of a group.
|
* chkgrp-min is a program that checks if a user is a member of a group.
|
||||||
*
|
*
|
||||||
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
||||||
* Homepage: https://git.xw3.org/hanez/chkgrp
|
* Homepage: https://git.xw3.org/hanez/chkusr
|
||||||
* License: Apache-2.0 (see LICENSE)
|
* License: Apache-2.0 (see LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,12 @@
|
||||||
* of a group.
|
* of a group.
|
||||||
*
|
*
|
||||||
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
||||||
* Homepage: https://git.xw3.org/hanez/chkgrp
|
* Homepage: https://git.xw3.org/hanez/chkusr
|
||||||
* License: Apache-2.0 (see LICENSE)
|
* License: Apache-2.0 (see LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,12 @@
|
||||||
* chkgrp-min-native is a program that checks if a user is a member of a group.
|
* chkgrp-min-native is a program that checks if a user is a member of a group.
|
||||||
*
|
*
|
||||||
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
||||||
* Homepage: https://git.xw3.org/hanez/chkgrp
|
* Homepage: https://git.xw3.org/hanez/chkusr
|
||||||
* License: Apache-2.0 (see LICENSE)
|
* License: Apache-2.0 (see LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,12 @@
|
||||||
* chkgrp-native is a program that checks if a user is a member of a group.
|
* chkgrp-native is a program that checks if a user is a member of a group.
|
||||||
*
|
*
|
||||||
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
||||||
* Homepage: https://git.xw3.org/hanez/chkgrp
|
* Homepage: https://git.xw3.org/hanez/chkusr
|
||||||
* License: Apache-2.0 (see LICENSE)
|
* License: Apache-2.0 (see LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,12 @@
|
||||||
* chkgrp-ng is a program that checks if a user is a member of a group.
|
* chkgrp-ng is a program that checks if a user is a member of a group.
|
||||||
*
|
*
|
||||||
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
||||||
* Homepage: https://git.xw3.org/hanez/chkgrp
|
* Homepage: https://git.xw3.org/hanez/chkusr
|
||||||
* License: Apache-2.0 (see LICENSE)
|
* License: Apache-2.0 (see LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
||||||
4
chkgrp.c
4
chkgrp.c
|
|
@ -2,10 +2,12 @@
|
||||||
* chkgrp is a program that checks if a user is a member of a group.
|
* chkgrp is a program that checks if a user is a member of a group.
|
||||||
*
|
*
|
||||||
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
||||||
* Homepage: https://git.xw3.org/hanez/chkgrp
|
* Homepage: https://git.xw3.org/hanez/chkusr
|
||||||
* License: Apache-2.0 (see LICENSE)
|
* License: Apache-2.0 (see LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
||||||
2
chkpwd.1
2
chkpwd.1
|
|
@ -1,4 +1,4 @@
|
||||||
.TH checkpw 1 "June 2025" "chkpwd 1.3.1" "chkpwd man page"
|
.TH checkpw 1 "June 2025" "chkpwd 1.4.0" "chkpwd man page"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
chkpwd \- checks the validity of a users password on a UNIX/PAM-based system.
|
chkpwd \- checks the validity of a users password on a UNIX/PAM-based system.
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
|
|
||||||
1
chkpwd.c
1
chkpwd.c
|
|
@ -8,6 +8,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "chkpwd.h"
|
#include "chkpwd.h"
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
||||||
10
chkpwd.h
10
chkpwd.h
|
|
@ -1,18 +1,16 @@
|
||||||
/**
|
/**
|
||||||
* chkpwd.h is part of chkpwd, a program that checks the validity of a users
|
* chkpwd.h is part of chkusr, a set of programs to verify information about
|
||||||
* password on a UNIX/PAM-based system.
|
* a user on UNIX based systems.
|
||||||
*
|
*
|
||||||
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
||||||
* Homepage: https://git.xw3.org/hanez/chkpwd
|
* Homepage: https://git.xw3.org/hanez/chkusr
|
||||||
* License: Apache-2.0 (see LICENSE)
|
* License: Apache-2.0 (see LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
|
#include <stdbool.h>
|
||||||
#include <security/pam_appl.h>
|
#include <security/pam_appl.h>
|
||||||
#include <security/pam_misc.h>
|
#include <security/pam_misc.h>
|
||||||
#include <stdbool.h>
|
|
||||||
|
|
||||||
#define VERSION "1.3.1"
|
|
||||||
|
|
||||||
bool checkpw_authenticate(const char *username, const char *password,
|
bool checkpw_authenticate(const char *username, const char *password,
|
||||||
bool verbose);
|
bool verbose);
|
||||||
|
|
|
||||||
1
version.h
Normal file
1
version.h
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
#define VERSION "1.4.0"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue