QA:Testcase Active Directory gvfs

From FedoraProject

Revision as of 15:37, 17 October 2012 by Tbzatek (Talk | contribs)

Jump to: navigation, search

Contents

Description

Use Files to access SMB shares using active kerberos ticket

Setup

  1. If you are linked to your Active Directory domain via VPN, then this Test case will not work.
  2. Verify that your Active Directory domain access works. If you don't have an Active Directory domain, you can set one up.
  3. Run through the test case to join the domain.
  4. Obtain kerberos ticket either using Online Accounts or manually via kinit (see the test case with no krb5.conf)
  5. Verify having active kerberos ticket by calling klist -e
  6. Setup file sharing on the Windows machine, e.g follow these steps for Windows 2008 Server:
    1. Run Windows Explorer
    2. Create a folder somewhere (e.g. C:\testfolder)
    3. Create a test file in that folder (e.g. C:\testfolder\testfile.txt)
    4. Go in the parent directory, right click on the folder, select Share with -> Specific people...
    5. Use "Find people..." combo box item to specify users you want to grant access
    6. Set Read/Write permissions for the added user
    7. Click the Share button, notice the share address when operation completes

How to test

  1. In Gnome session, open Files (Nautilus)
  2. Navigate to the Windows share, either using Connect to Server dialog or manually by entering URI in the following format:
    smb://server/share/
  3. Test if you can read (and write if you allowed it on the server) various files, performing standard file management tasks

Expected Results

  1. No password prompt should be presented, GVfs should automatically pick active kerberos ticket.



Troubleshooting

If you get password prompt or any kind of error during login, verify that console smbclient fails the same way. Use the following command to get interactive commandline access:

$ smbclient -k -U testuser '\\server\share\'

Type quit to quit smbclient. If smbclient login works, please file a bug against gvfs, otherwise please check server configuration.

For hardcore debugging, use the following command to get gvfsd-smb messages and attach them to the bugreport please:

$ GVFS_DEBUG=1 GVFS_SMB_DEBUG=99 /usr/libexec/gvfsd -r