K
K
Kentaro232021-06-14 23:56:39
Java
Kentaro23, 2021-06-14 23:56:39

How to make SAMBA authorization via Kerberos for jcif or jcif-ng library?

Good afternoon! How to make SAMBA authorization via Kerberos for jcif or jcif-ng library? Previously, there was NTLM authorization

NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("tifany", "test", password);

      if (path == null)
      {
        LOG.error("Не задан путь к smb серверу");

        return null;
      }
      // Ресолвим путь назначения в SmbFile
      SmbFile baseDir = new SmbFile("smb://"+path, auth);
      return baseDir.listFiles();

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question