PAM LDAP Passwort

Hallo miteinander,

ich bin gerade dabei ein eigenes C-Programm zuschreiben um mich �ber PAM auf einen LDAP Server zu authentifizieren.

Dieses Programm soll mir PAM_SUCCESS zur�ckliefern wenn ich mich authentifizieren kann.

Ich habe mir mal die PAM-API angeschaut und bin jetzt so weit das mein Programm nachschaut ob der User im LDAP-Server enthalten ist --> pam_start(). Liefert mir auch PAM_SUCCESS zur�ck.
Ich finde jetzt nur nicht wie ich PAM jetzt mein eingegebenes Passwort �bergebe zu diesem User und er mir dann auch zur�ck gibt ob dass das richtige Passwort ist.

Habe mir schon den Code von sudo oder ssh angeschaut, aber finde dort nicht wie die das machen.

Schon mal Danke f�r eure Hilfe im voraus.

Mfg Sascha :wq

Vielleicht konnen sie es in English probieren weil die meiste leuten hier kein deutsch verstehen....

Sorry, my mistake. I just copied it from a german forum.

Let me try to translate it.

Okay my problem is, that I want to write a program in C.

So, I got an username and a password from an application authentifacation process and now I want to check username and password through pam at my ldap server.

Already working is that, when I just program against pam, that the username is in the ldap directory. But I just can verify the password, if I type it in again in the command line.
But I want to take the passwort, which I got from my application. But I don't know how.

Thanks for your help

Sorry, for my bad english, I hope you unterstand it anyway.