summaryrefslogtreecommitdiffstats
path: root/winsup/utils/passwd.c
Commit message (Collapse)AuthorAgeFilesLines
* * passwd.c (longopts): Add --logonserver option.Corinna Vinschen2005-08-181-19/+50
| | | | | | | | | | | | (opts): Add -d option. (GetPW): Add server parameter which is given to Net functions. (ChangePW): Ditto. (PrintPW): Ditto. (SetModals): Ditto. (usage): Add description for -d/--logonserver option. (main): Add option handling for -d/--logonserver. Use LOGONSERVER environment variable content for server to contact, unless -d/--logonserver option is given. If both is missing, use NULL.
* * mkgroup.c: Avoid compiler warnings throughout.Corinna Vinschen2003-11-141-3/+3
| | | | | * mkpasswd.c: Ditto. * passwd.c: Ditto.
* * passwd.c (PrintPW): Turn around meaning printed for "Password notCorinna Vinschen2003-11-041-11/+15
| | | | | | required" option to be in line with Windows meaning. (main): Use more appropriate 1008 option when calling NetUserSetInfo to change flag values.
* * passwd.c (UF_LOCKOUT): Remove (defined in lmaccess.h).Corinna Vinschen2003-11-041-35/+118
| | | | | | | | | | | | | | | (version): Bump version number to 1.5. (longopts): Add -c, -C, -e, -E, -p, -P options. (opts): Ditto. (PrintPW): Print values of UF_PASSWD_CANT_CHANGE and UF_DONT_EXPIRE_PASSWD flags. Slightly reformat output. Don't suppress correct system password settings just because the account has admin privileges. (usage): Define as "noreturn" function. Restructure and rephrase output. Accomodate new options. (print_version): Fix copyright dates. (main): Accomodate new options for setting UF_PASSWD_CANT_CHANGE, UF_DONT_EXPIRE_PASSWD and UF_PASSWD_NOTREQD settings.
* * cygcheck.cc (usage) Add description output.Joshua Daniel Franklin2003-04-261-0/+1
|
* Add final newlines to utilsJoshua Daniel Franklin2002-09-151-1/+2
|
* * passwd.c: Rearrange includes to avoid unnecessary warnings.Corinna Vinschen2002-06-141-15/+35
| | | | | | | | | | | | (GetPW): Add parameter to (dis)allow printing of Windows username. Use defines instead of numerical constants where possible. Try avoiding impersonation problem. Rearrange to print Windows username only if it's different from Cygwin username. (ChangePW): Use defines instead of numerical constants where possible. (main): Call GetPW with additional parameter. Change error text. * passwd.c (GetPW): Handle case of user-edited /etc/passwd with cygwin_internal (CW_EXTRACT_DOMAIN_AND_USER, ...).
* * passwd.c (prog_name): New global variable.Corinna Vinschen2002-05-291-39/+105
| | | | | | | | (longopts): Ditto. (opts): Ditto. (usage): Standardize output. Accomodate new options. (print_version): New function. (main): Accomodate longopts and new --help, --version options.
* * mkgroup.c (usage): Use one just fprintf + string concatenation for outputChristopher Faylor2002-03-191-1/+1
| | | | | message. (print_version): Add void to function type and update copyright.
* * passwd.cc (ChangePW): Add parameter to differ between called forCorinna Vinschen2002-01-301-4/+6
| | | | | | | checking old password and called for changing password. If called for checking old password, return non-zero only if password is surely incorrect. (main): Call ChangePW() with additional parameter.
* * passwd.c (main): Initialize oldpwd before beeing used.Corinna Vinschen2000-07-311-0/+1
|
* import winsup-2000-02-17 snapshotChristopher Faylor2000-02-171-0/+352