Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cupsaddsmb doesn't accept strong passwords #1236

Closed
michaelrsweet opened this issue Aug 4, 2005 · 2 comments
Closed

cupsaddsmb doesn't accept strong passwords #1236

michaelrsweet opened this issue Aug 4, 2005 · 2 comments
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.1-current
CUPS.org User: heisters

My samba admin user has a password with a single quote in it. Because of the way the password is sent to samba, the quote messes up parsing:

Running command: smbclient //localhost/print$ -N -U'smbadmin%'' -c 'mkdir W32X86;put /var/spool/cups/tmp/42f221d06746a W32X86/liblab.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file

If it were possible to pass the password on the command line (which I see is a requested feature) it might be possible to manually URI encode the quote so this wouldn't occur.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Hmm, we'll need to add a shell escape mechanism or just use fork() + exec() to bypass those issues. This won't be fixed until CUPS 1.2...

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant