aboutsummaryrefslogtreecommitdiff
path: root/scripts/hostclass/roadwarrior_laptop/30-roadwarrior
blob: 6f3ea30c0767e0e20a7fefc2b962ee36c43f1134 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

# Configure sudoers.
install_file -m 0600 \
  /usr/local/etc/sudoers \
  /usr/local/etc/sudoers.d/networkmgr

# Configure devd for Android USB tethering.
install_file -m 0644 /etc/devd/usb-tether.conf
service devd restart

# Configure KRB5/LDAP. But only for manual use, not for NSS/PAM.
pkg install -y \
  krb5 \
  cyrus-sasl-gssapi \
  openldap26-client \
  perl5 \
  p5-perl-ldap \
  p5-Authen-SASL

install_template -m 0644 \
  /etc/krb5.conf \
  /usr/local/etc/openldap/ldap.conf

install_file -m 0555 /usr/local/libexec/idm-ssh-known-hosts