15 . `dirname $0`/subunit.sh
17 samba_net="$BINDIR/net"
19 DN=$(echo "${REALM}" | tr '[:upper:]' '[:lower:]' | sed -e 's!^!DC=!' -e 's!\.!,DC=!g')
21 "net_ads_search.ntlmssp" \
22 "distinguishedName: ${DN}" \
24 $samba_net ads search --use-kerberos=off -P \
25 --server "${SERVER}.${REALM}" \
26 '(objectClass=domain)' distinguishedName || \
27 failed=$((failed + 1))
29 "net_ads_search.krb5" \
30 "distinguishedName: ${DN}" \
32 $samba_net ads search --use-kerberos=required -P \
33 --server "${SERVER}.${REALM}" \
34 '(objectClass=domain)' distinguishedName || \
35 failed=$((failed + 1))
38 "net_ads_search.ntlmssp.ldaps" \
39 "distinguishedName: ${DN}" \
41 $samba_net ads search --use-kerberos=off -P \
42 --option="tlsverifypeer=no_check" \
43 --option="clientldapsaslwrapping=ldaps" \
44 --server "${SERVER}.${REALM}" \
45 '(objectClass=domain)' distinguishedName || \
46 failed=$((failed + 1))
48 "net_ads_search.krb5.ldaps" \
49 "distinguishedName: ${DN}" \
51 $samba_net ads search --use-kerberos=required -P \
52 --option="tlsverifypeer=no_check" \
53 --option="clientldapsaslwrapping=ldaps" \
54 --server "${SERVER}.${REALM}" \
55 '(objectClass=domain)' distinguishedName || \
56 failed=$((failed + 1))
59 "net_ads_search.ntlmssp.starttls" \
60 "distinguishedName: ${DN}" \
62 $samba_net ads search --use-kerberos=off -P \
63 --option="tlsverifypeer=no_check" \
64 --option="clientldapsaslwrapping=starttls" \
65 --server "${SERVER}.${REALM}" \
66 '(objectClass=domain)' distinguishedName || \
67 failed=$((failed + 1))
69 "net_ads_search.krb5.starttls" \
70 "distinguishedName: ${DN}" \
72 $samba_net ads search --use-kerberos=required -P \
73 --option="tlsverifypeer=no_check" \
74 --option="clientldapsaslwrapping=starttls" \
75 --server "${SERVER}.${REALM}" \
76 '(objectClass=domain)' distinguishedName || \
77 failed=$((failed + 1))