xref: /illumos-gate/usr/src/test/libmlrpc-tests/doc/README (revision ce8560eeb961d528e27685fcdd2ffb03e9478dbf)
1*ce8560eeSMatt Barden#
2*ce8560eeSMatt Barden# This file and its contents are supplied under the terms of the
3*ce8560eeSMatt Barden# Common Development and Distribution License ("CDDL"), version 1.0.
4*ce8560eeSMatt Barden# You may only use this file in accordance with the terms of version
5*ce8560eeSMatt Barden# 1.0 of the CDDL.
6*ce8560eeSMatt Barden#
7*ce8560eeSMatt Barden# A full copy of the text of the CDDL should have accompanied this
8*ce8560eeSMatt Barden# source.  A copy of the CDDL is also available via the Internet at
9*ce8560eeSMatt Barden# http://www.illumos.org/license/CDDL.
10*ce8560eeSMatt Barden#
11*ce8560eeSMatt Barden
12*ce8560eeSMatt Barden#
13*ce8560eeSMatt Barden# Copyright (c) 2012 by Delphix. All rights reserved.
14*ce8560eeSMatt Barden# Copyright 2020 Tintri by DDN, Inc. All rights reserved.
15*ce8560eeSMatt Barden#
16*ce8560eeSMatt Barden
17*ce8560eeSMatt Bardenlibmlrpc Unit Test Suite README
18*ce8560eeSMatt Barden
19*ce8560eeSMatt Barden1. Building and installing this Unit Test Suite
20*ce8560eeSMatt Barden2. Running this Unit Test Suite
21*ce8560eeSMatt Barden3. Test results
22*ce8560eeSMatt Barden
23*ce8560eeSMatt Barden--------------------------------------------------------------------------------
24*ce8560eeSMatt Barden
25*ce8560eeSMatt Barden1. Building and installing this Unit Test Suite
26*ce8560eeSMatt Barden
27*ce8560eeSMatt BardenThis Test Suite runs under the testrunner framework (which can be installed
28*ce8560eeSMatt Bardenas pkg:/system/test/testrunner). To build both this Unit Test Suite and the
29*ce8560eeSMatt Bardentestrunner without running a full nightly:
30*ce8560eeSMatt Barden
31*ce8560eeSMatt Barden	build_machine$ bldenv [-d] <your_env_file>
32*ce8560eeSMatt Barden	build_machine$ cd $SRC/test
33*ce8560eeSMatt Barden	build_machine$ dmake install
34*ce8560eeSMatt Barden	build_machine$ cd $SRC/pkg
35*ce8560eeSMatt Barden	build_machine$ dmake install
36*ce8560eeSMatt Barden
37*ce8560eeSMatt BardenThen set the publisher on the test machine to point to your repository and
38*ce8560eeSMatt Bardeninstall the Utils Unit Test Suite.
39*ce8560eeSMatt Barden
40*ce8560eeSMatt Barden	test_machine# pkg install pkg:/system/test/libmlrpctest
41*ce8560eeSMatt Barden
42*ce8560eeSMatt BardenNote, the framework will be installed automatically, as this test suite
43*ce8560eeSMatt Bardendepends on it.
44*ce8560eeSMatt Barden
45*ce8560eeSMatt Barden2. Running this Unit Test Suite
46*ce8560eeSMatt Barden
47*ce8560eeSMatt BardenThe pre-requisites for running the this Unit Test Suite are:
48*ce8560eeSMatt Barden	- A non-root user with the ability to sudo(1M) to root without a
49*ce8560eeSMatt Barden	  password or the root user must run the test.
50*ce8560eeSMatt Barden	    (The samlogon test requires a user with 'solaris.smf.read.smb'
51*ce8560eeSMatt Barden	    authorization, such as root.)
52*ce8560eeSMatt Barden	- The libmlrpc library must be installed.
53*ce8560eeSMatt Barden	- The system must be joined to the domain.
54*ce8560eeSMatt Barden	- Certain information must be collected from a packet capture performing
55*ce8560eeSMatt Barden	    NTLM authentication against the system using a domain user, all from
56*ce8560eeSMatt Barden	    the NetrSamLogon(Ex) request:
57*ce8560eeSMatt Barden		- IDENTITY_INFO/Domain
58*ce8560eeSMatt Barden		- IDENTITY_INFO/Acct Name
59*ce8560eeSMatt Barden		- IDENTITY_INFO/Wkst Name
60*ce8560eeSMatt Barden		- three binary files, exported from Wireshark:
61*ce8560eeSMatt Barden		  1. NETWORK_INFO/Challenge (8 bytes)
62*ce8560eeSMatt Barden		  2. First NETWORK_INFO/'LM Chal resp'/Bytes array/'LM Chal resp'
63*ce8560eeSMatt Barden		      (variable - the first is NT)
64*ce8560eeSMatt Barden		  3. Second NETWORK_INFO/'LM Chal resp'/Bytes array/'LM Chal resp'
65*ce8560eeSMatt Barden		      (variable - the second is LM)
66*ce8560eeSMatt Barden	- Enter configuration data in /opt/libmlrpc-tests/cfg/samlogon.config.
67*ce8560eeSMatt Barden
68*ce8560eeSMatt BardenOnce the pre-requisites are satisfied, simply run the script:
69*ce8560eeSMatt Barden
70*ce8560eeSMatt Barden	test_machine$ /opt/libmlrpc-tests/bin/libmlrpctest
71*ce8560eeSMatt Barden
72*ce8560eeSMatt Barden3. Test results
73*ce8560eeSMatt Barden
74*ce8560eeSMatt BardenWhile the Unit Test Suite is running, one informational line is printed at
75*ce8560eeSMatt Bardenthe end of each test, and a results summary is printed at the end of the run.
76*ce8560eeSMatt BardenThe results summary includes the location of the complete logs, which is of the
77*ce8560eeSMatt Bardenform /var/tmp/test_results/<ISO 8601 date>.