[mapguide-users] Re: Anonymous user without password can't connect to MGServer with MaestroAPI

carls carlshe at 163.com
Wed Sep 8 00:03:25 EDT 2010


Thank you very much, Jackie,

Could you please modify LocalNativeConnection also?

internal LocalNativeConnection(NameValueCollection initParams) 
51             : this() 
52         { 
53             if (initParams[PARAM_SESSION] != null) 
54             { 
55                 string sessionid = initParams[PARAM_SESSION]; 
56  
57                 InitConnection(sessionid); 
58             } 
59             else 
60             { 
61                 if (initParams[PARAM_CONFIG] == null) 
62                     throw new ArgumentException("Missing connection
parameter: " + PARAM_CONFIG); 
63                 if (initParams[PARAM_PASSWORD] == null) 
64                     throw new ArgumentException("Missing connection
parameter: " + PARAM_PASSWORD); 
65                 if (initParams[PARAM_USERNAME] == null) 
66                     throw new ArgumentException("Missing connection
parameter: " + PARAM_USERNAME); 
67  
68                 string configFile = initParams[PARAM_CONFIG]; 
69                 string password = initParams[PARAM_PASSWORD]; 
70                 string username = initParams[PARAM_USERNAME]; 
71                 string locale = null; 
72                 if (initParams[PARAM_LOCALE] != null) 
73                     locale = initParams[PARAM_LOCALE]; 
74  
75                 InitConnection(configFile, username, password, locale); 
76             } 
77         } 


-----

Regards, Carl SHE
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Anonymous-user-without-password-can-t-connect-to-MGServer-with-MaestroAPI-tp5507729p5509100.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list