diff options
author | Jeremy Allison <jra@samba.org> | 1998-09-24 22:33:13 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-09-24 22:33:13 +0000 |
commit | e96747a8e3b9ea5a79c4258e55d7e8f3bf0bf193 (patch) | |
tree | deeeb4ce724bfdf1dd56cb96ea4f6c5b2317bd1c /source/script | |
parent | 203a97e39e7ae7e5511f74dffea0778e7fa6db07 (diff) | |
download | samba-e96747a8e3b9ea5a79c4258e55d7e8f3bf0bf193.tar.gz |
Integration of Anders Blomdell <anders.blomdell@control.lth.se>'s
smbpasswd changes. Not exactly the same as his code - several
changes.
Jeremy.
Diffstat (limited to 'source/script')
-rw-r--r-- | source/script/addtosmbpass | 6 | ||||
-rwxr-xr-x | source/script/mksmbpasswd.sh | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/script/addtosmbpass b/source/script/addtosmbpass index 42af518397c..5a41022a270 100644 --- a/source/script/addtosmbpass +++ b/source/script/addtosmbpass @@ -48,11 +48,11 @@ BEGIN { } END { fmt = "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:"; - fmt = fmt "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:%s:%s:%s\n"; + fmt = fmt "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U]:LCT-00000000:%s:\n"; for(name in names) { while ((getline < pwdf) > 0) { if ($1 == name) { - printf(fmt, $1, $3, $5, $6, $7); + printf(fmt, $1, $3, $5); close(pwdf); notfound = ""; break; @@ -65,7 +65,7 @@ END { command = ypmatch " " name " passwd"; command | getline; if (NF > 0) { - printf(fmt, $1, $3, $5, $6, $7); + printf(fmt, $1, $3, $5); } close(command); } diff --git a/source/script/mksmbpasswd.sh b/source/script/mksmbpasswd.sh index 6e592acd652..10acc1257d7 100755 --- a/source/script/mksmbpasswd.sh +++ b/source/script/mksmbpasswd.sh @@ -2,5 +2,5 @@ awk 'BEGIN {FS=":" printf("#\n# SMB password file.\n#\n") } -{ printf( "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:%s:%s:%s\n", $1, $3, $5, $6, $7) } +{ printf( "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U]:LCT-00000000:%s\n", $1, $3, $5) } ' |