--- /dev/null
+2005-10-30 Konstantin Triger <kostat@mainsoft.com>
+
+ * LdapConnection.cs: TARGET_JVM: if no credentials supplied,
+ try to login with current user credentials.
if ((authenticationTypes & AuthenticationTypes.Secure) != 0) {
LoginContext loginContext = null;
try {
- AuthenticationCallbackHandler callbackHandler = new AuthenticationCallbackHandler (username,password);
- loginContext = new LoginContext (SecurityAppName, callbackHandler);
+ if (username != null && password != null) {
+ AuthenticationCallbackHandler callbackHandler = new AuthenticationCallbackHandler (username,password);
+ loginContext = new LoginContext (SecurityAppName, callbackHandler);
+ }
+ else
+ loginContext = new LoginContext (SecurityAppName);
+
loginContext.login ();
}
catch (LoginException e) {