[MAPSERVER-USERS] msencrypt ogr shows password on error

David Martin David at ITBEYOND.COM.AU
Mon May 26 03:38:19 EDT 2008


I have been doing some work on installing an OGR connection to one of my
databases. So decided to use msencrypt to hide the userid and password
strings. This works OK however when the OGR breaks for what every reason the
system returns a message similar to this:

msDrawMap(): Image handling error. Failed to draw layer named 'Places'.
msOGRFileOpen(): OGR error. Open failed for OGR connection
`<OGRVRTDataSource>  <OGRVRTLayer name='Places'> 
<SrcDataSource>ODBC:vsXXXXXXXX_odbc/XXXXXXXXXX at vs285832_1</SrcDataSource> 
<SrcSQL>SELECT WaypointID, Description, Latitude, Longitude FROM
PointPlace_Waypoints WHERE poi='%poi%'</SrcSQL>

Where the XXX's shown are actually the real user information and passwords
for the connection. How can I suppress this error from appearing at all. It
seems a little strange to provide an encrypted password and then have the
system render the password when the OGR layer fails.

Any help would be great.

David Martin
-- 
View this message in context: http://www.nabble.com/msencrypt-ogr-shows-password-on-error-tp17467224p17467224.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the mapserver-users mailing list