tuto:ipasserelle:telephonie:deploiement_de_config_polycom

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
tuto:ipasserelle:telephonie:deploiement_de_config_polycom [20/11/2009 22:16]
dani
tuto:ipasserelle:telephonie:deploiement_de_config_polycom [12/07/2012 18:33] (Version actuelle)
dani Page moved from deploiement_de_config_polycom to tuto:ipasserelle:telephonie:deploiement_de_config_polycom
Ligne 5: Ligne 5:
 expand-template /etc/ssh/sshd_config expand-template /etc/ssh/sshd_config
 sv t /service/sshd sv t /service/sshd
 +</code>
 +
 +===== Créer le répertoire de déploiement =====
 +<code bash>
 mkdir -p /var/lib/phone/polycom/ mkdir -p /var/lib/phone/polycom/
 +</code>
  
 +===== Configurer le serveur DHCP =====
 +<code bash>
 mkdir -p /etc/e-smith/templates-custom/etc/dhcpd.conf/ mkdir -p /etc/e-smith/templates-custom/etc/dhcpd.conf/
 cat <<EOF > /etc/e-smith/templates-custom/etc/dhcpd.conf/80polycom cat <<EOF > /etc/e-smith/templates-custom/etc/dhcpd.conf/80polycom
Ligne 12: Ligne 19:
 group \{ group \{
  
-option boot-server "ftp://PlcmSpIp:p4PLcPr0v1510ning@{ \$LocalIP }";+option boot-server "ftp://PlcmSpIp:__SECRET__@{ \$LocalIP }";
  
 host phone-1 \{ host phone-1 \{
Ligne 20: Ligne 27:
 \} \}
 EOF EOF
 +SECRET=$(/usr/bin/openssl rand -base64 60 | tr -c -d '[:graph:]')
 +sed -i -e "s/__SECRET__/$SECRET/" /etc/e-smith/templates-custom/etc/dhcpd.conf/80polycom
 +echo $SECRET > ~/polycom.secret
 +chmod 600 ~/polycom.secret
 +unset SECRET
 +</code>
  
 +===== Configuration du serveur FTP =====
 +<code bash>
 mkdir -p /etc/e-smith/templates-custom/etc/proftpd.conf/ mkdir -p /etc/e-smith/templates-custom/etc/proftpd.conf/
 cat <<EOF > /etc/e-smith/templates-custom/etc/proftpd.conf/04polycomRoot cat <<EOF > /etc/e-smith/templates-custom/etc/proftpd.conf/04polycomRoot
Ligne 42: Ligne 57:
 PlcmSpIp PlcmSpIp
 EOF EOF
 +</code>
  
 +===== Création de l'(utilisateur système PlcmSpIp =====
 +
 +<code bash>
 groupadd PlcmSpIp groupadd PlcmSpIp
 useradd -c 'Provisioning User For Polycom' -s /bin/false -m -g PlcmSpIp -d /var/lib/phone/polycom PlcmSpIp useradd -c 'Provisioning User For Polycom' -s /bin/false -m -g PlcmSpIp -d /var/lib/phone/polycom PlcmSpIp
-echo p4PLcPr0v1510ning | passwd --stdin PlcmSpIp+cat ~/polycom.secret | passwd --stdin PlcmSpIp
 db accounts set PlcmSpIp system-user comment 'user for polycom phones' PasswordSet yes db accounts set PlcmSpIp system-user comment 'user for polycom phones' PasswordSet yes
 +</code>
  
 +===== Redémarrage du serveur FTP ===== 
 +<code bash>
 expand-template /etc/ftpusers expand-template /etc/ftpusers
 expand-template /etc/e-smith/pam/accounts.allow expand-template /etc/e-smith/pam/accounts.allow
Ligne 54: Ligne 75:
 expand-template /etc/proftpd.conf expand-template /etc/proftpd.conf
 sv t /service/ftp sv t /service/ftp
 +</code>
  
 +===== Restriction des permissions ===== 
 +<code bash>
 cd /var/lib/phone/polycom cd /var/lib/phone/polycom
 chown -R root:PlcmSpIp ./* chown -R root:PlcmSpIp ./*
Ligne 63: Ligne 86:
 chown PlcmSpIp ./contacts chown PlcmSpIp ./contacts
 chmod u-w ../polycom chmod u-w ../polycom
- 
- 
- 
 </code> </code>
  • tuto/ipasserelle/telephonie/deploiement_de_config_polycom.1258751796.txt.gz
  • Dernière modification: 20/11/2009 22:16
  • de dani