|
|
|
@ -134,15 +134,18 @@
|
|
|
|
|
; 1) need to create user directory on login
|
|
|
|
|
; 2) need to have /bin/zsh available to use as shell
|
|
|
|
|
|
|
|
|
|
(define %metznet-nslcd-config (nslcd-configuration
|
|
|
|
|
(base "dc=metznet,dc=ca")
|
|
|
|
|
(log '("/var/log/nslcd" debug))
|
|
|
|
|
(pam-services (list "su" "login" "password" "ssh" "passwd"))
|
|
|
|
|
(binddn (or (getenv "LDAP_BINDDN") ""))
|
|
|
|
|
(bindpw (or (getenv "LDAP_BINDPW") ""))
|
|
|
|
|
(uri (list "ldap://ldap.metznet.ca"))))
|
|
|
|
|
|
|
|
|
|
(define %metznet-desktop-services
|
|
|
|
|
(append (list (service openssh-service-type)
|
|
|
|
|
(service krb5-service-type %metznet-krb5-config)
|
|
|
|
|
(service nslcd-service-type (nslcd-configuration (base "dc=metznet,dc=ca")
|
|
|
|
|
(log '("/var/log/nslcd" debug))
|
|
|
|
|
(pam-services (list "su" "login" "password" "ssh" "passwd"))
|
|
|
|
|
(binddn (or (getenv "LDAP_BINDDN") ""))
|
|
|
|
|
(bindpw (or (getenv "LDAP_BINDPW") ""))
|
|
|
|
|
(uri (list "ldap://ldap.metznet.ca")))))
|
|
|
|
|
(service nslcd-service-type %metznet-nslcd-config))
|
|
|
|
|
(modify-services %desktop-services
|
|
|
|
|
(guix-service-type config => (guix-configuration
|
|
|
|
|
(inherit config)
|
|
|
|
@ -171,6 +174,7 @@
|
|
|
|
|
(define %metznet-server-services (append (list
|
|
|
|
|
(service openssh-service-type)
|
|
|
|
|
(service krb5-service-type %metznet-krb5-config)
|
|
|
|
|
(service nslcd-service-type %metznet-nslcd-config)
|
|
|
|
|
(service dhcp-client-service-type)
|
|
|
|
|
(openvpn-client-service
|
|
|
|
|
#:config (openvpn-client-configuration
|
|
|
|
|