Virtuelle Maschine einrichten UNIX-/Linux Netz (LDAP): Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „=Hostname= *hostnamectl set-hostname ldap.lab1XX.nux =Netzwerk= *cat /etc/network/interfaces <pre> # This file describes the network interfaces available on y…“)
 
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 50: Zeile 50:
 
  ldap A 10.0.1XX.5
 
  ldap A 10.0.1XX.5
 
Eintrag PTR in /var/cache/bind/1XX.0.10.in-addr.arpa
 
Eintrag PTR in /var/cache/bind/1XX.0.10.in-addr.arpa
3 PTR ldap
+
3 PTR ldap
  
 
=Software=
 
=Software=
Webserver
+
LDAP
  sudo apt install
+
  apt install slapd ldap-utils ldapscripts nslcd

Aktuelle Version vom 14. Mai 2025, 10:48 Uhr

Hostname

  • hostnamectl set-hostname ldap.lab1XX.nux

Netzwerk

  • cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp0s3
iface enp0s3 inet static 
 address 10.0.1XX.5/24
 gateway 10.0.1XX.1

Namerserver

  • cat /etc/resolv.conf
nameserver 10.0.1XX.2
search labXX.nux

Hosts

  • cat /etc/hosts
127.0.0.1	localhost
127.0.1.1	ldap.lab1XX.nux

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Reboot

  • systemctl reboot

AdminPC

Auf dem KIT Host anfügen
  • vi ~/.ssh/config
Host ldap
 Hostname 10.0.1XX.5
 Username
PubKey Übertragung
  • ssh-copy-id ldap

Danach könnt ihr euch mit ssh servername passswortlos einlogen

DNS

Eintrag A Record in /var/cache/bind/lab1XX.nux

ldap A 10.0.1XX.5

Eintrag PTR in /var/cache/bind/1XX.0.10.in-addr.arpa

3 PTR ldap

Software

LDAP

apt install slapd ldap-utils ldapscripts nslcd