⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 samba最新软件
💻
字号:
This framework uses a VMware Server hosted Windows guest VM to test thebehaviour of Windows -> Samba and Samba -> Windows interactions. To setup aWindows host for testing, vm_setup.tar.gz contain some scripts which createan administrative user account, and enable and start the installed telnetservice on the Windows host. Optionally, the hostname and workgroup name canalso be set. vm_setup.tar.gz is currently located in the SOC/bnh branch ofSamba's SVN repository.PREREQUISITESTo use these scripts, VMware Server needs to be running with a Windows guestVM installed, IP addressed, and VMware tools needs to be installed and runningon the guest VM. The Windows OS I used to test with was Windows Server 2003,but I think this should work with any version of Windows that has theMicrosoft telnet service installed. The VMware Server versions I used fortesting was 1.0.0 build-27828, and 1.0.0 build-28343.PLEASE NOTE: Due to problems with my original revert_snapshot() code, the initialsetup now requires that the VM configuration setting 'When Powering Off' ismanually set to 'Revert to snapshot' (snapshot.action="autoRevert" in theguest's .vmx file).  This should not be a permanent change, but the originalrevert_snapshot() code I wrote no longer works and i'm not sure why.On the machine that these scripts are running on (this need not be the samemachine as the VMware host), the VMware perl scripting api needs to beinstalled, as well as the vix-perl api. These come with the VMware Serverconsole package.After unzipping this file, the libraries are installed by extracting theVMware-vix-e.x.p-<revision number>.tar.gz andVMware-VmPerlAPI-e.x.p-<revision number>.tar.gz archives, and running thevmware-install.pl scripts inside their respective directories.On Slackware 10.2, I encountered a problem in that when I tried to use the vixapi libraries, I would get the following error:SSLLoadSharedLibrary: Failed to load library /<client program directory>/libcrypto.so.0.9.7:/<client program directory>/libcrypto.so.0.9.7: cannot open a shared object file: No such file or directory.The fix found on the VMware knowledge base (search http://kb.vmware.com forDoc ID: 1837104) states that it's a known problem with the scripting libraries,and can be resolved by installing VMware Server on the host, which properlysets up the SSL module loader. This is what I would suggest if you encounterthis, as it solved the problem for me (I don't have VMware Server actuallyrunning on that host though).INSTALLATIONTo use these scripts, modify initial_setup.conf to match your environment. TheGUEST_HOSTNAME, GUEST_WORKGROUP, HOST_SERVER_NAME, HOST_SERVER_PORT,HOST_USERNAME, and HOST_PASSWORD variables are optional, and are commented outin this release.Running initial_setup.sh will:*  Get the IP address of the Windows guest VM.*  Take a snapshot of the pristine Windows guest.*  Copy the windows scripts from the windows-scripts directory on the unix host        to the directory on the Windows guest specified by the        GUEST_SCRIPT_PATH option. This path will be created on the guest if        it does not already exist.*  Execute win_setup.wsf on the Windows guest in order to create the        administrator account specified by GUEST_USERNAME and GUEST_PASSWORD,        enable and start the telnet service, and set the GUEST_HOSTNAME and        GUEST_WORKGROUP if configured.*  If these operations are successful so far, another snapshot is taken at this	point. This is the snapshot which is restored if the tests encounter	problems they are unable to recover from.These operations leave the Windows guest in a state such that it can beremotely administered with telnet. Specifically, this will allow us to use'make wintest' in Samba 4 to perform smbtorture tests against a Windows host,and perform tests from a Windows client to a Samba server.INTEGRATING WITH THE BUILD FARMFollow the standard steps to add a host to the build farm. The majordifference is that we will need to run these tests as root. To run theWindows tests in the build farm, a .fns file will need to be created foryour new host that exports a WINTESTCONF environment variable pointing to aconfig file used by 'make wintest'. An example of this config file can befound at source/selftest/win/test_win.conf in the Samba 4 source tree. I've also included the bnhtest.fns file that I'm using for my build farm hostbelow, as an example. It was modified from generic.fns.action_test_windows() {        do_make wintest        w_status=$?        echo "WINTEST STATUS: $w_status"        return $w_status;}per_run_hooksystem=`uname`export WINTESTCONF="/home/build/win/test_win.conf"for compiler in gcc cc icc; do  # arrgh, "which" gives no err code on solaris  path=`which $compiler`  if [ -x "$path" ]; then    if $compiler -v 2>&1 | grep gcc.version > /dev/null; then       isgcc=1       CFLAGS="-Wall"       export CFLAGS    else       CFLAGS=""       export CFLAGS       isgcc=0    fi    if [ $compiler = gcc -o $isgcc = 0 ]; then      # only attempt samba4 if we have perl      if which perl > /dev/null; then        test_tree samba4 source $compiler configure build install test_windows test      fi    fi  fidone

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -