Call for testsuites!

Ben Gould ben at abduction.org
Thu Jun 19 15:06:35 GMT 2003


hello, i have some time to look at this (as i would like to eventually 
send back some patches for some issues i've hacked around outside or 
inside libsmbclient)

> Just setup a template file in basicsmb.fns, and the template subdir,
> then copy an existing test.  It should be easy...
>
> (If this much hasn't scared you, I'll give you a hand with the slightly
> messy environment required to manually run the scripts).

it looks like it should be easy; i almost got there installing a 
samba_3_0 branch from today like this:

<<<
ben at freeman:~/build/pkgs/samba-tag-SAMBA_3_0/samba/testsuite/build_farm 
$ uname -a
Linux freeman 2.4.10-64GB-SMP #1 SMP Fri Sep 28 17:26:36 GMT 2001 i686 
unknown

ben at freeman:~/build/pkgs/samba-tag-SAMBA_3_0/samba/testsuite/build_farm 
$ export prefix=/opt/samba_3_0; export 
LIBSMB_PROG=/opt/samba_3_0/sbin/smbd; sh ./basicsmb-invalidusers.test
LIBSMB_PROG=/opt/samba_3_0/sbin/smbd
test_smb_conf_setup: Configuring:
     PREFIX=/opt/samba_3_0
     BUILD_FARM=
     WHOAMI=ben
     LOGLEVEL=1
     TREE=
template_setup: Created /opt/samba_3_0/lib/smb.conf
template_setup: Created /opt/samba_3_0/lib/smb.conf.hostsequiv
template_setup: Created /opt/samba_3_0/lib/smb.conf.validusers
template_setup: Created /opt/samba_3_0/lib/smb.conf.invalidusers
template_setup: Created /opt/samba_3_0/lib/smb.conf.preexec
template_setup: Created /opt/samba_3_0/lib/smb.conf.preexec_close
template_setup: Created /opt/samba_3_0/lib/smb.conf.preexec_cl_fl
template_setup: Created /opt/samba_3_0/lib/smb.conf.share
template_setup: Created /opt/samba_3_0/lib/smb.conf.user
template_setup: Created /opt/samba_3_0/lib/smb.conf.server
template_setup: Created /opt/samba_3_0/lib/smb.conf.domain
template_setup: Created /opt/samba_3_0/lib/preexec
( echo samba ; echo samba; ) | /opt/samba_3_0/bin/smbpasswd -L -s -a ben
startsmbfilepwent_internal: unable to open file 
/opt/samba_3_0/private/smbpasswd. Error was No such file or directory
unable to open passdb database.
startsmbfilepwent_internal: unable to open file 
/opt/samba_3_0/private/smbpasswd. Error was No such file or directory
Added user ben.
smbpasswd correctly set initial password (samba)
/opt/samba_3_0/bin/smbclient //invalidusers/samba -n buildclient 
-Uben%samba -c ls
OS=[Unix] Server=[Samba 3.0.0beta2]
tree connect failed: NT_STATUS_ACCESS_DENIED
listing files with smbd failed with status 1 (correct)
/opt/samba_3_0/bin/smbclient //validusers/samba -n buildclient 
-Uben%samba -c ls
OS=[Unix] Server=[Samba 3.0.0beta2]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
listing files with smbd failed with status 1
 >>>

-- ben




More information about the samba-technical mailing list