[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Gelöst!] NIS Master / Slave - Server



Hallo,

ich antworte mal für das Archiv, hatte wieder Zeit mich dem Problem
anzunehmen:

Bei dem Slave-Server muss in der /etc/yp.conf sich der Slave-Server auch
eintragen werden:

root@triton:~# cat /etc/yp.conf
[...]
# ypserver ypserver.network.com
ypserver triton.example.org
ypserver alpha.example.org

Schöne Grüße
Steffen

Am 28.06.2011 18:07, schrieb Steffen Hartwig:
> Hallo,
> 
> ich habe zwei Debian Squeeze Server und möchte gerne, dass mein
> NIS-Slave-Server bei Ausfall des Master-Servers weiterhin die Benutzer
> authentifiziert.
> 
> geg.:
> NIS-Domain: example.org
> alpha: NIS-Master-Server
> triton: NIS-Slave-Server
> 
> Wenn ich den NIS-Dienst (/etc/init.d/nis stop) auf dem Master-Server
> ausschalte, dann kann ich auf mich nicht auf dem Slave-Server anmelden :-(
> 
> Wenn ich bei beiden Servern im Ordner /var/yp ausführe, dann lädt er
> erfolgreich die Dateien.
> 
> Wenn der Master-Server da ist, dann klappt die Anmeldung wunderbar, aber
> wenn der Master-Server nicht funktioniert, dann kommen keine Anmeldungen
> zu stande.
> 
> Könntet Ihr vielleicht einen Wink in die richtige Richtung geben?
> 
> Vielen Dank im Voraus
> Steffen
> 
> Hier meine Konfiguration:
> 
> cat /etc/defaultdomain: example.org
> 
> 
> ### NIS Master ###
> 
> $ cat /etc/default/nis
> #
> # /etc/defaults/nis	Configuration settings for the NIS daemons.
> #
> 
> # Are we a NIS server and if so what kind (values: false, slave, master)?
> NISSERVER=master
> 
> # Are we a NIS client?
> NISCLIENT=true
> 
> # Location of the master NIS password file (for yppasswdd).
> # If you change this make sure it matches with /var/yp/Makefile.
> YPPWDDIR=/etc
> 
> # Do we allow the user to use ypchsh and/or ypchfn ? The YPCHANGEOK
> # fields are passed with -e to yppasswdd, see it's manpage.
> # Possible values: "chsh", "chfn", "chsh,chfn"
> YPCHANGEOK=chsh
> 
> # NIS master server.  If this is configured on a slave server then ypinit
> # will be run each time NIS is started.
> NISMASTER=
> 
> # Additional options to be given to ypserv when it is started.
> YPSERVARGS=
> 
> # Additional options to be given to ypbind when it is started.
> YPBINDARGS=-no-dbus
> 
> # Additional options to be given to yppasswdd when it is started.  Note
> # that if -p is set then the YPPWDDIR above should be empty.
> YPPASSWDDARGS=
> 
> # Additional options to be given to ypxfrd when it is started.
> YPXFRDARGS=
> 
> $ cat /etc/hosts
> 127.0.0.1	localhost
> 127.0.0.1	alpha.example.org	alpha
> 192.168.2.11	alpha.example.org	alpha
> 
> 192.168.2.73  triton.example.org  triton
> 
> 
> ### NIS Slave ###
> 
> $ cat /etc/default/nis
> #
> # /etc/defaults/nis	Configuration settings for the NIS daemons.
> #
> 
> # Are we a NIS server and if so what kind (values: false, slave, master)?
> NISSERVER=slave
> 
> # Are we a NIS client?
> NISCLIENT=true
> 
> # Location of the master NIS password file (for yppasswdd).
> # If you change this make sure it matches with /var/yp/Makefile.
> YPPWDDIR=/etc
> 
> # Do we allow the user to use ypchsh and/or ypchfn ? The YPCHANGEOK
> # fields are passed with -e to yppasswdd, see it's manpage.
> # Possible values: "chsh", "chfn", "chsh,chfn"
> YPCHANGEOK=chsh
> 
> # NIS master server.  If this is configured on a slave server then ypinit
> # will be run each time NIS is started.
> NISMASTER=alpha
> 
> # Additional options to be given to ypserv when it is started.
> YPSERVARGS=
> 
> # Additional options to be given to ypbind when it is started.
> YPBINDARGS=-no-dbus
> 
> # Additional options to be given to yppasswdd when it is started.  Note
> # that if -p is set then the YPPWDDIR above should be empty.
> YPPASSWDDARGS=
> 
> # Additional options to be given to ypxfrd when it is started.
> YPXFRDARGS=
> 
> $ cat /etc/hosts
> 127.0.0.1	localhost
> 127.0.1.1	triton.example.org	triton
> 192.168.2.73	triton.example.org	triton
> 
> 192.168.2.11	alpha.example.org		alpha
> 
> 
> 
> 

-- 
Mit freundlichen Grüßen

Steffen Hartwig
Fachinformatiker Systemintegration

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: