Sponsored Content
Top Forums Programming Questions about user authentication in my application Post 302473153 by mythmgn on Friday 19th of November 2010 04:56:50 AM
Old 11-19-2010
Questions about user authentication in my application

Hi, all,

I am a newbie to linux authentication part.

Questions below really puzzle me:

[1] How to authenticate users from local storage(passwd shadow) and nis server?
(Without PAM)
getpwnam_r() will return a '*' in the pw_passwd field of "struct passwd".

I can parse /etc/shadow. But how can I do it on nis server? in my env, shadow file only contains local user info.

PLUS, how to maintain the session without PAM?

I have some experience in web development. There r some structure we can use to maintain the session. How to do it in a C/S design?

[2] Use pam to authenticate them.

My application is a c/s design. Suppose client needs to send the username/passwd to server with some tcp/udp pakages. Server uses pam to get it authenticated.

How to fulfill this?

Any examples? what if the client has a GUI? including for pam.d/my_application?

some pseudo codes will do.

Thanks a million.
 

10 More Discussions You Might Find Interesting

1. Solaris

User Authentication

Ok i need a little help... I have 20 Solaris 8 machines and I would like to have these machines do user authentication through one machine acting as server instead of having to maintain a user list on every machine. What can I do to achieve this? Thanks (3 Replies)
Discussion started by: meyersp
3 Replies

2. Shell Programming and Scripting

SFTP- Non-interactive user authentication

Hi All, sftp -b script.txt <hostname> user-authentication through non-interactive way is desired. But, its failing to do so. Could anyone kindly advise. Thanks for any/all help at the earliest. Regards, Dheeraj. (1 Reply)
Discussion started by: dheeruchakri
1 Replies

3. Forum Support Area for Unregistered Users & Account Problems

authentication of new user

I recently registered, but never received the email with the instructions for authenticating my account. I confirmed my email in in the profile looks correct. I found and clicked the link to resend the authentication email. I clicked that link two days ago and I still don't have the email. It... (1 Reply)
Discussion started by: dwallace
1 Replies

4. UNIX for Dummies Questions & Answers

Kerberos Authentication from Application

Hi, We've configured Kerberos to authenticate AIX 5.3 users with Active Directory and I now have to port an application written in C to the new security model. Currently, our users can login as normal and running a "klist" command reveals that they have been successfully granted a ticket. ... (2 Replies)
Discussion started by: phykell
2 Replies

5. AIX

LDAP user authentication issue

Hello everyone, hoping you can provide some incite with a little problem I'm having.. I have the LDAP client configured and running on my AIX 5.3 server, which is authenticating against an eDirectory LDAP server. I can login via LDAP no problems on the AIX server with newly created users,... (4 Replies)
Discussion started by: j_aix
4 Replies

6. UNIX for Advanced & Expert Users

PPTP authentication via Debian user accounts

I've set up pptp vpn on Debian. Works fine. User authentication is made base on file /etc/ppp/chap-secrets. I'm looking for option that user authentication in pptp would be made base on debian system users accounts or samba accounts at last. Ther's no clue on google or forums so I decided to... (1 Reply)
Discussion started by: uselab
1 Replies

7. Debian

webdav share per user ldap authentication

hi all, i have configured Apache with WEBDAV & my aim is sharing outlook calendars because we don't use M$ ExChange. From outlook i did a simple test & am able to share a calendar. I want to create share for each user & then authenticate against LDAP before they can publish their... (0 Replies)
Discussion started by: coolatt
0 Replies

8. Shell Programming and Scripting

Perl LWP user authentication

Hello all.. i am new to perl scripting.. i wanted to parse a text file, encode the parsed text and attach in url.. please point me to right resources if you know any..This is my major problem. Now i try to get a url running and save it in a text file using LWP module in perl, I used following... (0 Replies)
Discussion started by: empyrean
0 Replies

9. Programming

CA Siteminder offline authentication for a thick client(swing java) application.

Hi All, I have a thick client based on swing java and we are using CA SiteMinder for the authentication. Now we have new requirement in which we need to access the application when its offline. So is there any way that I can use siteminder for offline authenticaion? I mean can we store... (0 Replies)
Discussion started by: chacko193
0 Replies

10. Red Hat

I want to centralize user authentication

Right now it is just a simple environment consisting of a small number of CentOS boxes, but I would like to set up central user authentication to make things easier, especially as we expand (I've already budgeted to triple our local infrastructure and we will be also expanding geographically to... (1 Reply)
Discussion started by: xdawg
1 Replies
PAM-PANEL-ICON(1)					      General Commands Manual						 PAM-PANEL-ICON(1)

NAME
pam-panel-icon - A notification area indicator of pam_timestamp status SYNOPSIS
pam-panel-icon DESCRIPTION
pam-panel-icon should be automatically started when starting an X11 desktop environment. For example, in GNOME gnome-session should be configured to start pam-panel-icon. In a properly configured system it should never be necessary to start pam-panel-icon manually. pam-panel-icon uses pam_timestamp_check(8) to watch the pam_timestamp timestamp status. If the pam_timestamp authorization is active, allowing an unprivileted user to temporarily authenticate as the root user without providing a password, an icon in the notification area of the panel is displayed. The icon allows dropping the authorization immediately. EXIT STATUS
Ordinarily, pam-panel-icon keeps running until the X11 desktop session ends, and then returns 0. pam-panel-icon only returns with non-zero status on unexpected error. FILES
/sbin/pam_timestamp_check A hard-coded location of the pam_timestamp_check executable. SEE ALSO
pam_timestamp(8), pam_timestamp_check(8) Red Hat 2009-10-05 PAM-PANEL-ICON(1)
All times are GMT -4. The time now is 01:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy