www.linuxbase.org -> Application Battery -> LSB 4 Functional Verification Test for lsb-samba

Functional Verification Test for lsb-samba

Install & Setup

  1. Download the lsb-samba application package that corresponds to the LSB version and processor architecture for which certification is being sought from the Download Page.
  2. Install package on system. Example command line:
    rpm -ivh lsb-samba-3.0.28a-1.lsb4.i486.rpm
    
    NOTE: Application MUST be installed without use of --nodeps option, the dependency checks are part of the test.
    - Expected result: application should be installed to
    /opt/lsb/appbat
    /etc/opt/lsb/appbat
    /var/opt/lsb/appbat
    
  3. Create a test user for the FVT. Run the command: useradd -m smbuser
  4. Use the passwd command to set the password for smbuser to smb4lsb
  5. Populate the /home/smbuser directory. Run the command: cp /opt/lsb/appbat/man/man1/* /home/smbuser
  6. Create the file /etc/opt/lsb/appbat/smb.conf with the following contents:
    [global]
            workgroup = WORKGROUP
    	interfaces = eth0
    
    [homes]
            guest ok = no
            read only = no
    
    NOTE: The smb.conf file assumes eth0 is the network interface available on the test system. If a different interface is being used, such as eth1, then it should be used on the interfaces line.
  7. If it does not already exist, create the file /etc/pam.d/samba with the following contents:
    #%PAM-1.0
    auth       required     pam_unix.so
    account    required     pam_unix.so
    
  8. Run the command: grep "^nobody" /etc/passwd
    - Expected result: Output shows user "nobody" already exists. If it is not present on the system, run the command: "useradd nobody" to create the nobody user.
  9. If the Samba SMB/CIFS server (smbd) and NetBIOS name server (nmbd) are already running on the system under test, they should be stopped so that they don't interfere with the running of the test.
  10. If the TMPDIR environment variable is set to some value, it should be cleared to avoid problems with some of the tests. To clear the TMPDIR environment variable, run the command: unset TMPDIR

Functional Verification Test (FVT)

  Expected result  
achieved?
Test case scenerio
1. Yes No Run the command: /opt/lsb/appbat/bin/testparm
- Expected result: The following output should be seen:
Load smb config files from /etc/opt/lsb/appbat/smb.conf
Processing section "[homes]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
After pressing "ENTER" you should see a list of the service definitions.
2. Yes No Run the command: /opt/lsb/appbat/sbin/smbd -D
- Expected result: The samba SMB/CIFS server starts as a daemon (This can be verified by running the ps command)
3. Yes No Run the command: /opt/lsb/appbat/sbin/nmbd -D
- Expected result: The samba NetBIOS name server starts as a daemon (This can be verified by running the ps command)
4. Yes No Run the command: /opt/lsb/appbat/bin/smbpasswd -a smbuser
- Expected result: You will be prompted twice to enter the SMB password for the smbuser. Use the same password as in setup step #4 above, smb4lsb.
5. Yes No Run the command: /opt/lsb/appbat/bin/smbclient -L localhost -U smbuser
- Expected result: After entering the password for smbuser it will list all the items being shared by the system.
6. Yes No Run the command: /opt/lsb/appbat/bin/smbclient //localhost/smbuser -U smbuser
- Expected result: After entering the password for smbuser you will be presented with the smb prompt. If you type "dir" at the prompt it will list all the files in the /home/smbuser directory. Type "exit" to disconnect from the samba server.

Results

1. Yes No Were there any errors recorded above?
2. Yes No Were there any deviations in the install, setup, or test described above?
If yes, please describe.

Cleanup

  1. Stop the test smbd and nmdb daemons. Use ps and kill for this.
  2. If the test system's Samba SMB/CIFS server (smbd) and NetBIOS name server (nmbd) were stopped prior to running the test, re-enable them now.

Reporting Test Results

Include the results of testing this application in the Conformance Statement submitted to the LSB Certification Authority when seeking LSB Runtime Environment Certification. Note this is not a submittable form, instead you affirm on the certification form that you have followed these steps.


last change 2008-03-10 Stew Benedict