[cups-devel] [UNKN] STR #4574: lppasswd - bug with usernames longer than 16 character

Alex Go noreply at cups.org
Tue Feb 10 06:24:27 PST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

when creating a user new user with lppasswd one can chose a username longer
than 16 characters, which also gets added to the /etc/cupsd/passwd.md5
correctly.

However when adding another user later on, this username does not get
written to the new password file, as the lppasswd utility looks for a
string along the lines of %s[16]:%s[16]:%s[32] and only writes these back
to the file.

Please remove this constraint, or at least adjust it to the current unix
default of 32 characters.

steps to reproduce:

# lppasswd -a testuserwithmorethan16characters
# grep "testuserwithmorethan16characters" /etc/cups.d/passwd.md5 
[this should show the user]

# lppasswd -a anotheruserwithmorethan16characters
# grep "testuserwithmorethan16characters" /etc/cups.d/passwd.md5 
[testuser is now gone]


Thanks for your help and continued effort 

Alex

Link: https://www.cups.org/str.php?L4574
Version: 1.7.5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJU2hSbAAoJENujp6sI12IjE/UQAI9dE5L2WFnWqnL3chmoRb9m
kubtUSimgLTn2iHwQaAH0GSX9M8xpq0nhCGp2YvQx9eMKTNpFbko/cL5Jm04vAXo
BSXfeQ/760L7ed54VoQpKMxRk/QgrE+T4fPei9ZEHSXJqgtlo4cnCB0APFZPQEuO
nolqjTJNvCIvZ0aBIjj/Xgj/3jO94yxfefntow4R/574mMbnxdn1waC2ARM1lgCP
lnJx0NHGL8HrzpuZA3TjKG3YflbeCqWnvmol4pGJnnCCizHG4fcDwQK6IHQyIhts
dpMUatfYbVHYmgCrvXFrH+GiiagyBo7Dm+NRrnilaU+SDPDXe7Q43bPZkm4Nxc85
AETFy+2YITFP3QMKf60JRVTdSou+wwtznMktO9KPSchldZWgsXxRKLuabOX9cxvN
gkpenEqHVbkgeilgTpdJ10nwQ7Q8yPmWt6kJU1VSXJ5MQ55zuHs+He/GHfvgKLRN
SJOhA+4cfhJPyHAE8pXHMNSeyUFW+IwoyIfVYTm1e+o2cc7fLR5tkeG+svxXh6tF
0f7ZsEpK3kBc2z7P4BhqCr/F0Rr1OE71hhKlktJS9qNB/RLiGdchh1x3bxbVUdnF
DMGOpvOfUcGgkjm/gyxnuGWCrWnlgQr0kLLrjHX8atKYOEfhq52muCI0ZsxI1hQh
ud3LFnAs29SYTTFFbcOI
=tk8+
-----END PGP SIGNATURE-----




More information about the cups-devel mailing list