error with msencrypt
Daniel Morissette
dmorissette at MAPGEARS.COM
Tue Jun 5 09:41:12 EDT 2007
Nicol Hermann wrote:
>
> I have one addition question.
> You enclosed the generated string in { ... }.
> Is this necessary? When i include the string in that way i get an
> connection error. I also include the following line.
>
> $Map -> SetConfigOption('MS_ENCRYPTION_KEY', '/tmp/mykey.txt');
>
> Anything else i have to consider?
>
Yes, the {...} are required around the encrypted block to indicate that
the included string is encrypted. This allows you to encrypt only part
of a connection string (i.e. just the password part) and not have to
encrypt the whole string.
You are using PHP MapScript, right? Did you rebuild your
php_mapscript.so, update the copy in your PHP extension_dir and restart
Apache? The decryption code needs the same fix for 64 bits as msencrypt.
Daniel
--
Daniel Morissette
http://www.mapgears.com/
More information about the mapserver-dev
mailing list