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 | dc36d8768aa13000c48b520f09f6678ea9ffbf28 (patch) | |
tree | 786401083ef3d894fc9e6aea3c0d93df0b339ecf /source3/script/addtosmbpass | |
parent | d8f66be1415c5e205e9255499911b84a5227638d (diff) | |
download | samba-dc36d8768aa13000c48b520f09f6678ea9ffbf28.tar.gz samba-dc36d8768aa13000c48b520f09f6678ea9ffbf28.tar.bz2 samba-dc36d8768aa13000c48b520f09f6678ea9ffbf28.zip |
Integration of Anders Blomdell <anders.blomdell@control.lth.se>'s
smbpasswd changes. Not exactly the same as his code - several
changes.
Jeremy.
(This used to be commit e96747a8e3b9ea5a79c4258e55d7e8f3bf0bf193)
Diffstat (limited to 'source3/script/addtosmbpass')
-rw-r--r-- | source3/script/addtosmbpass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/script/addtosmbpass b/source3/script/addtosmbpass index 42af518397..5a41022a27 100644 --- a/source3/script/addtosmbpass +++ b/source3/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); } |