-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is this library supported on Android? #42
Comments
It should not be too hard to support Android. I will look into it. Thanks
for asking!
Op 2 apr. 2017 12:00 schreef "GitHub King" <notifications@github.com>:
I could not find any example, so I just guessed how it would work, and
wrote the following code.
SMBClient client = new SMBClient();
Log.d(TAG, "Trying to connect");
Connection conn = client.connect(ServerIP);
AuthenticationContext auth = new AuthenticationContext(ID,
Password.toCharArray(), null);
Log.d(TAG, "Trying to authenticate");
Session ses = conn.authenticate(auth);
But authenticate() throwed an exception.
com.hierynomus.ntlm.NtlmException:
java.security.NoSuchAlgorithmException: no such algorithm: MD4 for
provider BC
Did I do something wrong, or is this library not supported on Android?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#42>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHLo7rgs7ZwEz5RJnAaK1Nblf5JZ5-eks5rr3HAgaJpZM4MwwW8>
.
|
Hi hierynomus, 32 7.305456 192.168.1.110 192.168.1.10 SMB2 156 Find Request File: SMB2_FIND_ID_BOTH_DIRECTORY_INFO Pattern: * 33 7.308874 192.168.1.10 192.168.1.110 SMB2 131 Find Response, Error: STATUS_ACCESS_DENIED what the reason? @hierynomus |
It most probably got to do with signatures being not sent. Can you give it a try with the current master? |
@HubKing Have you tried building a recent master version to check whether it works on Android? |
Released 0.1.0 which contains these fixes, closing the issue |
I could not find any example, so I just guessed how it would work, and wrote the following code.
But
authenticate()
threw an exception.Did I do something wrong, or is this library not supported on Android?
The text was updated successfully, but these errors were encountered: