Advertisement
Guest User

Untitled

a guest
Sep 16th, 2015
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. /usr/bin/ktutil
  2. addent -password -p acoder@EXAMPLE.COM -k 1 -e rc4-hmac
  3. addent -password -p acoder@EXAMPLE.COM -k 1 -e aes256-cts
  4. wkt /etc/krb5.keytab
  5.  
  6. [acoder@clientbox]# klist -kte
  7. Keytab name: FILE:/etc/krb5.keytab
  8. KVNO Timestamp Principal
  9. ---- ----------------- --------------------------------------------------------
  10. 1 09/16/15 16:24:32 acoder@EXAMPLE.COM (arcfour-hmac)
  11. 1 09/16/15 16:25:46 acoder@EXAMPLE.COM (aes256-cts-hmac-sha1-96)
  12.  
  13. #OP TYPE DESCRIPTION CALLOUT INFO PROGRAM ARG1 ARG2 ARG3 ...
  14. #====== ======= =============== =============== ===============================
  15. create user debug:* negate /bin/keyctl negate %k 30 %S
  16. create user debug:loop:* * |/bin/cat
  17. create user debug:* * /usr/share/keyutils/request-key-debug.sh %k %d %c %S
  18. negate * * * /bin/keyctl negate %k 30 %S
  19. create cifs.spnego * * /usr/sbin/cifs.upcall %k
  20. create dns_resolver * * /usr/sbin/cifs.upcall %k
  21.  
  22. # klist | grep "Ticket cache:"
  23. Ticket cache: FILE:/tmp/krb5cc_0
  24.  
  25. mount error(126): Required key not available
  26. Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
  27.  
  28. Sep 16 16:33:44 clientbox kernel: CIFS VFS: Error -2 during NTLM authentication
  29. Sep 16 16:33:44 clientbox kernel: CIFS VFS: Send error in SessSetup = -2
  30. Sep 16 16:33:44 clientbox kernel: CIFS VFS: cifs_mount failed w/return code = -2
  31. Sep 16 16:33:49 clientbox kernel: CIFS VFS: Send error in SessSetup = -126
  32. Sep 16 16:33:49 clientbox kernel: CIFS VFS: cifs_mount failed w/return code = -126
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement