PAM LDAP Passwort


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users PAM LDAP Passwort
# 1  
Old 08-10-2005
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
# 2  
Old 08-11-2005
Vielleicht konnen sie es in English probieren weil die meiste leuten hier kein deutsch verstehen....
# 3  
Old 08-11-2005
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Configure samba with PAM point 2 different LDAP

Hi, I would like to configure samba with PEM (with LDAP). I've already found, on the server, configured the PAM Authentication(with LDAP) for ssh. I wanted to know if it was possible to configure PAM for to authenticate to another LDAP only for SAMBA. Is possibile duplicate the... (2 Replies)
Discussion started by: mark888
2 Replies

2. OS X (Apple)

Mac OS X LDAP client not accepting ssh or console logins (PAM error)

Hi Folks, I've install 389 Directory Server on a Centos 7.0 server. Over the last two days I've been trying to connect a MacBook running 10.10.5 to the server as a client and I'm having only partial success. I've "Joined" to my network Account Server, and set my LDAP Mappings to... (2 Replies)
Discussion started by: jlh
2 Replies

3. SuSE

PAM password change failed, pam error 20

Hi, I use a software which can create account on many system or application. One of resource which is managed by this soft his a server SUSE Linux Enterprise Server 10 (x86_64). patch level 3. This application which is an IBM application use ssh to launch command to create account in... (3 Replies)
Discussion started by: scabarrus
3 Replies

4. Cybersecurity

LDAP and PAM Configurations for Windows 2008 R2 ADS and Cubox Ubuntu client

Please I am having problem to login using Windows 2008 R2 Active Directory Services accounts on a cubox ubuntu (2.6.32.9-dove-5.4.2 #46). "getent passwd" only shows local users, however I can querry ADS users using ldapsearch command. I have 2 systems, one that does not use gdm can login with all... (1 Reply)
Discussion started by: powelltallen
1 Replies

5. Shell Programming and Scripting

LDAP and PAM Configurations for Windows 2008 R2 ADS and Cubox Ubuntu client

Please I am having problem to login using Active Directory Services 2008 R2 accounts on a cubox ubuntu (2.6.32.9-dove-5.4.2 #46). "getent passwd" only shows local users, however I can querry ADS users using ldapsearch command. I have 2 systems, one that does not use gdm can login with all users... (0 Replies)
Discussion started by: powelltallen
0 Replies

6. Solaris

LDAP, PAM or SSHD?

Hi, I´m trying to make Solaris authenticate users in AD. NTP is working, nsswitch.ldap is listed above, DNS is Ok and I made something different in pam.conf, krb5.conf and sshd_config (see above) nsswitch.ldap: passwd: files ldap group: files ldap hosts: files dns ipnodes: ... (0 Replies)
Discussion started by: mpcavalcanti
0 Replies

7. UNIX and Linux Applications

Problems Hooking Sudoers into PAM/LDAP

Greetings!! I am attempting to solve a rather thorny issue and I was hoping that someone might have some insight into what is going on here.. At this point I have an openLDAP server that is working quite splendidly! :) I have a working directory with users able to authenticate it and TLS... (2 Replies)
Discussion started by: bluethundr
2 Replies

8. UNIX for Advanced & Expert Users

pam ldap limit authentication

I have a linux machine which authenticate users to ldap, this is working fine. But I would like to limit users that logon to the machines to just the system admins. The machines hosts different web sites which users accessed from there home directory like http://foo.mdx.ac.uk/~username At the... (0 Replies)
Discussion started by: hassan1
0 Replies
Login or Register to Ask a Question