Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
reserves:serveurs [2019/07/08 09:56] – chabrol | reserves:serveurs [2019/10/09 10:44] (Version actuelle) – [Installation avec montage NFS] chabrol | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Serveurs ====== | ====== Serveurs ====== | ||
+ | |||
+ | ===== Installation avec montage NFS ===== | ||
+ | Permet de montage automatique de homedir depuis olympe, sous ubuntu 18 | ||
+ | < | ||
+ | sudo apt install ldap-utils autofs-ldap ldap-auth-client nscd libnss-ldapd libpam-ldapd libpam-mount | ||
+ | </ | ||
- | ===== Luminy ===== | + | lors de la configuration de nslcd répondre : |
- | ^ Serveur ^ IP ^ Emplacement ^ login ^ Service | + | URI du serveur LDAP : '' |
- | | iml228 | 139.124.6.228 | Luminy, bureau P. Barthelemy | voir fichier | + | |
+ | Base de recherche du serveur LDAP : '' | ||
+ | |||
+ | Services de nom à configurer : | ||
+ | |||
+ | lors de la configuration de ldap-auth-config répondre : | ||
+ | |||
+ | LDAP server Uniform Resource Identifier : '' | ||
+ | |||
+ | Distinguished name of the search base: '' | ||
+ | |||
+ | LDAP version to use: '' | ||
+ | |||
+ | Make local root Database admin: '' | ||
+ | |||
+ | Does the LDAP database require | ||
+ | |||
+ | LDAP account for root: '' | ||
+ | |||
+ | LDAP root account password: '' | ||
+ | |||
+ | Puis configurer le LDAP pour NSS en lancant la commande suivante : | ||
+ | < | ||
+ | sudo auth-client-config -t nss -p lac_ldap | ||
+ | </ | ||
+ | |||
+ | Configurer le LDAP pour l' | ||
+ | < | ||
+ | sudo pam-auth-update | ||
+ | </ | ||
+ | lors de la configuration de PAM | ||
+ | Profils PAM à activer : '' | ||
+ | |||
+ | Mettre à jour le fichier ''/ | ||
+ | < | ||
+ | # | ||
+ | # LDAP Defaults | ||
+ | # | ||
+ | |||
+ | # See ldap.conf(5) for details | ||
+ | # This file should be world readable but not world writable. | ||
+ | |||
+ | BASE dc=i2m, | ||
+ | URI ldap:// | ||
+ | ldap_version 3 | ||
+ | scope sub | ||
+ | bind_policy soft | ||
+ | pam_filter objectclass=posixAccount | ||
+ | pam_login_attribute uid | ||
+ | pam_password md5 | ||
+ | nss_base_passwd ou=accounts, | ||
+ | nss_base_shadow ou=accounts, | ||
+ | nss_base_group | ||
+ | |||
+ | ssl start_tls | ||
+ | tls_reqcert allow | ||
+ | tls_checkpeer yes | ||
+ | |||
+ | |||
+ | # TLS certificates (needed for GnuTLS) | ||
+ | TLS_CACERT | ||
+ | tls_cacertdir / | ||
+ | |||
+ | nss_initgroups_ignoreusers avahi, | ||
+ | </ | ||
+ | |||
+ | Mettre à jour le fichier ''/ | ||
+ | < | ||
+ | # Init syatem options | ||
+ | # | ||
+ | |||
+ | master_map_name="/ | ||
+ | |||
+ | timeout=300 | ||
+ | |||
+ | browse_mode=" | ||
+ | |||
+ | logging=" | ||
+ | |||
+ | LDAP_URI=" | ||
+ | |||
+ | MAP_OBJECT_CLASS=" | ||
+ | ENTRY_OBJECT_CLASS=" | ||
+ | MAP_ATTRIBUTE=" | ||
+ | ENTRY_ATTRIBUTE=" | ||
+ | VALUE_ATTRIBUTE=" | ||
+ | |||
+ | USE_MISC_DEVICE=" | ||
+ | # | ||
+ | # Use OPTIONS to add automount(8) command line options that | ||
+ | # will be used when the daemon is started. | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | </ | ||
+ | Mettre à jour le fichier ''/ | ||
+ | < | ||
+ | # | ||
+ | # Sample auto.master file | ||
+ | # This is a ' | ||
+ | # mount-point [map-type[, | ||
+ | # For details of the format look at auto.master(5). | ||
+ | # | ||
+ | #/ | ||
+ | # | ||
+ | # NOTE: mounts done from a hosts map will be mounted with the | ||
+ | # " | ||
+ | # | ||
+ | # | ||
+ | /net -hosts | ||
+ | # | ||
+ | # Include / | ||
+ | # The included files must conform to the format of this file. | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # Include central master map if it can be found using | ||
+ | # nsswitch sources. | ||
+ | # | ||
+ | # Note that if there are entries for /net or /misc (as | ||
+ | # above) in the included master map any keys that are the | ||
+ | # same will not be seen as the first read key seen takes | ||
+ | # precedence. | ||
+ | # | ||
+ | # | ||
+ | /home | ||
+ | </ | ||
+ | |||
+ | Modification du fichier ''/ | ||
+ | < | ||
+ | <?xml version=" | ||
+ | <!-- | ||
+ | This files contains a single entry with multiple attributes tied to it. | ||
+ | See autofs_ldap_auth.conf(5) for more information. | ||
+ | --> | ||
+ | |||
+ | < | ||
+ | usetls=" | ||
+ | tlsrequired=" | ||
+ | authrequired=" | ||
+ | /> | ||
+ | </ | ||
+ | |||
+ | Modification du fichier ''/ | ||
+ | < | ||
+ | #/ | ||
+ | # | ||
+ | # Example configuration of GNU Name Service | ||
+ | # If you have the `glibc-doc-reference' | ||
+ | # `info libc "Name Service Switch"' | ||
+ | |||
+ | # pre_auth-client-config # passwd: | ||
+ | passwd: files ldap | ||
+ | # pre_auth-client-config # group: | ||
+ | group: files ldap | ||
+ | # pre_auth-client-config # shadow: | ||
+ | shadow: files ldap | ||
+ | gshadow: | ||
+ | |||
+ | hosts: | ||
+ | networks: | ||
+ | |||
+ | protocols: | ||
+ | services: | ||
+ | ethers: | ||
+ | rpc: db files | ||
+ | |||
+ | # pre_auth-client-config # netgroup: | ||
+ | netgroup: nis | ||
+ | |||
+ | automount: | ||
+ | </ | ||
+ | |||
+ | On exécute la commande '' | ||
+ | |||
+ | Modification du fichier ''/ | ||
+ | < | ||
+ | # /etc/nslcd.conf | ||
+ | # nslcd configuration file. See nslcd.conf(5) | ||
+ | # for details. | ||
+ | |||
+ | # The user and group nslcd should run as. | ||
+ | uid nslcd | ||
+ | gid nslcd | ||
+ | |||
+ | # The location at which the LDAP server(s) should be reachable. | ||
+ | uri ldap:// | ||
+ | |||
+ | # The search base that will be used for all queries. | ||
+ | base dc=i2m,dc=univ-amu, | ||
+ | |||
+ | # The LDAP protocol version to use. | ||
+ | ldap_version 3 | ||
+ | |||
+ | # The DN to bind with for normal lookups. | ||
+ | #binddn cn=annonymous, | ||
+ | #bindpw secret | ||
+ | |||
+ | # The DN used for password modifications by root. | ||
+ | # | ||
+ | |||
+ | # SSL options | ||
+ | ssl start_tls | ||
+ | tls_reqcert allow | ||
+ | tls_cacertfile / | ||
+ | |||
+ | # The search scope. | ||
+ | #scope sub | ||
+ | </ | ||
+ | |||
+ | On redémarre les services nslcd et nscd : '' | ||
+ | |||
+ | On lance la commande '' | ||
+ | |||
+ | On modifie le fichier | ||
+ | < | ||
+ | # | ||
+ | # / | ||
+ | # | ||
+ | # This file is included from other service-specific PAM config files, | ||
+ | # and should contain a list of modules that define tasks to be performed | ||
+ | # at the start and end of sessions of *any* kind (both interactive and | ||
+ | # non-interactive). | ||
+ | # | ||
+ | # As of pam 1.0.1-6, this file is managed by pam-auth-update by default. | ||
+ | # To take advantage of this, it is recommended that you configure any | ||
+ | # local modules either before or after the default block, and use | ||
+ | # pam-auth-update to manage selection of other modules. | ||
+ | # pam-auth-update(8) for details. | ||
+ | |||
+ | # here are the per-package modules (the " | ||
+ | session [default=1] | ||
+ | # here's the fallback if no module succeeds | ||
+ | session requisite | ||
+ | # prime the stack with a positive return value if there isn't one already; | ||
+ | # this avoids us returning an error just because nothing sets a success code | ||
+ | # since the modules above will each just jump around | ||
+ | session required | ||
+ | # The pam_umask module will set the umask according to the system default in | ||
+ | # / | ||
+ | # umask settings with different shells, display managers, remote sessions etc. | ||
+ | # See "man pam_umask" | ||
+ | session optional | ||
+ | # and here are more per-package modules (the " | ||
+ | session required | ||
+ | session optional | ||
+ | session [success=ok default=ignore] | ||
+ | session optional | ||
+ | # end of pam-auth-update config | ||
+ | </ | ||
- | ===== Château Gombert ===== |