[pkg-firebird-general] certain sysdba passwords make postinst throw up

Damyan Ivanov dam at modsoftsys.com
Wed Mar 7 21:38:08 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- -=| Tamas TEVESZ,  6.03.2007 23:21 |=-
> try one with a space.
> 
> the problem seems to be morefold than i can grok right now. originally 
> i thought it's only a bad quotation (lack of it, thereof) in 
> functions.sh like
> 
> -    writeNewPassword $NewPassword $VER
> +    writeNewPassword "$NewPassword" $VER
> 
> but it turns out gsec has problems with that as well. or maybe not 
> "problems" per se, but i couldn't figure out how to make it take a 
> password of "almas pite" (sans quotes 'fcourse).
> 
> in interactive mode both "almas pite" and 'almas pite' met with an 
> invalid parameter (which, again, after patching functions like above, 
> make the gsec call throw it up), then i somehow managed to change it 
> with pw supplied on the command line like
> 
>   gsec -user sysdba -password masterkey -modify sysdba -pw "almas retes"
> 
> which seems to have run fine (no errors returned), but then i don't 
> have a freakin' idea what my sysdba password currently is. it's not
> 
> almas retes
> almas
> "almas
> "almas retes"
> 
> or anything else i could cough up.
> 
> this is bad (not the fact that i lost my sysdba password, it doesn't 
> matter, but the fact that something seems to be ad-hoc here. didn't 
> yet read doc or source, so if someone would chime in a clue or two...)

Perhaps it is written on some release notes that spaces are not
"allowed", but hey, release notes don't make it less of a bug.

I've been a little bit more lucky:

$ gsec-1.5 -user sysdba -password 94a8fbf0 -modify sysdba -pw 'almas retes'
$ gsec-1.5 -user sysdba -password 'almas re' #cleverly givin' 8 chars
Your user name and password are not defined. Ask your database
administrator to set up a Firebird login.
unable to open database
$ gsec-1.5 -user sysdba -password 'almas '
Your user name and password are not defined. Ask your database
administrator to set up a Firebird login.
unable to open database
$ gsec-1.5 -user sysdba -password 'almas'
GSEC>

Huh? Truncated to the first space.

Same with 2.0:
$ gsec-2.0 -user sysdba -password dec680b0 -modify sysdba -pw 'alma mater'
$ gsec-2.0 -user sysdba -password 'alma mater'
Your user name and password are not defined. Ask your database
administrator to set up a Firebird login.
unable to open database
$ gsec-2.0 -user sysdba -password 'alma'
GSEC>

I think adding a warning that the password will be truncated up to the
first space (and actually do it in the scripts and SYSDBA.password)
would be OK. Thoughts?


	dam
- --
Damyan Ivanov                           Modular Software Systems
phone +359(2)928-2611, 929-3993              fax +359(2)920-0994
mobile +359(88)856-6067              JID dam at jabber.minus273.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF7yKwHqjlqpcl9jsRArj6AKCC3Nol9YtWgCVWyGJyf7wmf6rQfQCbB2M/
qMVrbJvCWdDzm3xYGjFxSnc=
=xLVk
-----END PGP SIGNATURE-----



More information about the pkg-firebird-general mailing list