You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.7 KiB
58 lines
1.7 KiB
diff --git a/daemon/gvfsbackendsmb.c b/daemon/gvfsbackendsmb.c
|
|
index 776b67bc..a1e3eacd 100644
|
|
--- a/daemon/gvfsbackendsmb.c
|
|
+++ b/daemon/gvfsbackendsmb.c
|
|
@@ -80,7 +80,6 @@ struct _GVfsBackendSmb
|
|
int mount_try;
|
|
gboolean mount_try_again;
|
|
gboolean mount_cancelled;
|
|
- gboolean use_anonymous;
|
|
|
|
gboolean password_in_keyring;
|
|
GPasswordSave password_save;
|
|
@@ -215,13 +214,6 @@ auth_callback (SMBCCTX *context,
|
|
backend->mount_try_again = TRUE;
|
|
g_debug ("auth_callback - kerberos pass\n");
|
|
}
|
|
- else if (backend->use_anonymous)
|
|
- {
|
|
- /* Try again if anonymous login fails */
|
|
- backend->use_anonymous = FALSE;
|
|
- backend->mount_try_again = TRUE;
|
|
- g_debug ("auth_callback - anonymous login pass\n");
|
|
- }
|
|
else
|
|
{
|
|
gboolean in_keyring = FALSE;
|
|
@@ -304,10 +296,13 @@ auth_callback (SMBCCTX *context,
|
|
/* Try again if this fails */
|
|
backend->mount_try_again = TRUE;
|
|
|
|
+ smbc_setOptionNoAutoAnonymousLogin (backend->smb_context,
|
|
+ !anonymous);
|
|
+
|
|
if (anonymous)
|
|
{
|
|
- backend->use_anonymous = TRUE;
|
|
backend->password_save = FALSE;
|
|
+ g_debug ("auth_callback - anonymous enabled\n");
|
|
}
|
|
else
|
|
{
|
|
@@ -535,12 +530,6 @@ do_mount (GVfsBackend *backend,
|
|
smbc_setOptionFallbackAfterKerberos (op_backend->smb_context, 1);
|
|
}
|
|
|
|
- /* If the AskPassword reply requested anonymous login, enable the
|
|
- * anonymous fallback and try again.
|
|
- */
|
|
- smbc_setOptionNoAutoAnonymousLogin (op_backend->smb_context,
|
|
- !op_backend->use_anonymous);
|
|
-
|
|
op_backend->mount_try ++;
|
|
}
|
|
while (op_backend->mount_try_again);
|
|
--
|
|
2.36.0
|
|
|