~vcs-imports/samba/main

« back to all changes in this revision

Viewing changes to testsuite/build_farm/basicsmb-domainsec.test

  • Committer: jerry
  • Date: 2006-07-14 21:48:39 UTC
  • Revision ID: vcs-imports@canonical.com-20060714214839-586d8c489a8fcead
gutting trunk to move to svn:externals

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
. basicsmb.fns
3
 
 
4
 
test_joindomain() {
5
 
        test_join_domain_password="$1"
6
 
 
7
 
        echo "$prefix/bin/net rpc join -S localhost  -U $whoami%$test_join_domain_password"
8
 
        $prefix/bin/net rpc join -S localhost  -U $whoami%$test_join_domain_password
9
 
        status=$?
10
 
        if [ $status = 0 ]; then
11
 
            echo "'net rpc join' correctly joined the domain"
12
 
        else
13
 
            echo "'net rpc join' failed to join the domain! (status $status)"
14
 
            return 1
15
 
        fi
16
 
        return 0
17
 
}
18
 
 
19
 
password=samba
20
 
(test_smb_conf_setup && test_smbpasswd $password ) || exit 1
21
 
 
22
 
test_joindomain $password || exit 1
23
 
 
24
 
security=DOMAIN
25
 
test_listfilesauth $security  || exit 1
26
 
test_listfilesnpw $security  || exit 1
27