## In nodm, use full screen chromium web browser as session
# webui=http://localhost/
-## When using NIS modules the directory server should be given
+## When using NIS modules the directory server and NIS domain should be given
# nis_server=nismaster
+# nis_domain=example.com
+
+## also when using SMB the main server must be given
+# smb_server=smbmaster
## If the approxmodule is enabled, then one (and only one) apt-source
## can be choosen to install packages from
ifndef nis_server
nis_server := nismaster
endif
+ifndef nis_domain
+ nis_domain := ${nis_server}
+endif
+ifndef smb_server
+ smb_server := ${nis_server}
+endif
define DEBCONF +=
-nis nis/domain string .${nis_server}
+nis nis/domain string ${nis_domain}
endef
export smb_nis_pamscript smb_nis_pammount
# forced through bash, to hide euid from smbpasswd
/bin/bash -c '
printf "%s\n" "$$PAM_OLDAUTHTOK" "$$PAM_AUTHTOK" "$$PAM_AUTHTOK" \
- | smbpasswd -sr ${nis_server} -U "$$PAM_USER"
+ | smbpasswd -sr ${smb_server} -U "$$PAM_USER"
'
exit $?
define smb_nis_pammount :=
<pam_mount> <debug enable="0" />
<!-- Volume definitions -->
- <volume options="user=%(USER)" fstype="cifs" server="${nis_server}" path="%(USER)" mountpoint="~" />
+ <volume options="user=%(USER)" fstype="cifs" server="${smb_server}" path="%(USER)" mountpoint="~" />
<mntoptions require="nosuid,nodev" />
<logout wait="0" hup="no" term="no" kill="no" />
<mkmountpoint enable="1" remove="true" />
printf 'ypserver %s\n' "${nis_server}" >"$@"
${CFGROOT}/etc/defaultdomain: ${CFGROOT} .FORCE
- printf '.%s\n' "${nis_server}" >"$@"
+ printf '.%s\n' "${nis_domain}" >"$@"