Hallo ! wie kann aus einem programm heraus (C, Shell, wasauchimmer) die authentizitaet eines user passwords ueberprueft werden ? welche probleme gibt es dabei bei der verwendung von shadow- passwords und/oder yp ? Andre -- Andre Esser / www.planet-three.co.uk -- Um aus der Liste ausgetragen zu werden, eine Mail an majordomo@suse.com schicken, mit dem Text: unsubscribe suse-linux
On Mon, 21 Dec 1998, Andre Esser wrote:
wie kann aus einem programm heraus (C, Shell, wasauchimmer) die authentizitaet eines user passwords ueberprueft werden ?
Sieh' Dir dazu doch mal man 3 crypt an.
welche probleme gibt es dabei bei der verwendung von shadow- passwords und/oder yp ?
Keine Ahnung - hab' selbst noch nicht damit gearbeitet. Shadow sollte aber keine Probleme bereiten, wenn Dein Prog. suid gesetzt hat. Tschau, Volker -- Volker Mueller,volker.mueller@gmx.de,<A HREF="http://www.in-berlin.de/user/flinux"><A HREF="http://www.in-berlin.de/user/flinux</A">http://www.in-berlin.de/user/flinux</A</A>> -- Um aus der Liste ausgetragen zu werden, eine Mail an majordomo@suse.com schicken, mit dem Text: unsubscribe suse-linux
wie kann aus einem programm heraus (C, Shell, wasauchimmer) die authentizitaet eines user passwords ueberprueft werden ?
welche probleme gibt es dabei bei der verwendung von shadow- passwords und/oder yp ?
Hallo, es gibt einen UNIX/linux-System-Aufruf, der auch unter C verwendbar ist. Dieser System-Aufruf verwendet den gleichen Vorgang, wie es bei der Authentifizierung bei telnet, oder so, verwendet wird. Ueber den Aufruf von 'crypt' kann man ein Passwort verschluesseln und mit den Eintraegen in der passwd vergleichen. Hilfreich ist dabei sicher der Code zum poppassd der ja auch die Paswoerter verifizieren muss. Ein Perl-Skript dazu gibts unter <A HREF="http://www.babylon.de/admin/soft/jpoppass/index.html"><A HREF="http://www.babylon.de/admin/soft/jpoppass/index.html</A">http://www.babylon.de/admin/soft/jpoppass/index.html</A</A>> Wenn jemand Interesse am funktionierenden C-Code hat, der kann sich bei mir melden. Gruss, Josef -- Um aus der Liste ausgetragen zu werden, eine Mail an majordomo@suse.com schicken, mit dem Text: unsubscribe suse-linux
participants (3)
-
andre@planet-three.co.uk
-
josef.winkler@www.ines-elektronik.de
-
volker.mueller@gmx.de