Unix Technical Forum

User Login Time

This is a discussion on User Login Time within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> Hello, I'm using the Sun ONE Directory Server 5.2. Is there any plugin, which stores the last logon time ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 07:36 AM
Gruber Johannes \(IFAT IT OS CS External\)
 
Posts: n/a
Default User Login Time

Hello,

I'm using the Sun ONE Directory Server 5.2. Is there any plugin, which
stores the last logon time of the user?

I would like to check every week automatically which account hasn't been
used for the last 6 months. Does anyone have a similar problem or already a
solution?

Kind regards,
Johannes


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 07:36 AM
Michael Vilain
 
Posts: n/a
Default Re: User Login Time

In article <c75ere$730$1@newssrv.muc.infineon.com>,
"Gruber Johannes \(IFAT IT OS CS External\)"
"<Gruber.External@infineon.com> wrote:

> Hello,
>
> I'm using the Sun ONE Directory Server 5.2. Is there any plugin, which
> stores the last logon time of the user?
>
> I would like to check every week automatically which account hasn't been
> used for the last 6 months. Does anyone have a similar problem or already a
> solution?
>
> Kind regards,
> Johannes


There's /var/adm/lastlogin or something thereabouts but no PAM that
writes the last login time into LDAP, AFAIK.

--
DeeDee, don't press that button! DeeDee! NO! Dee...



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 07:36 AM
Erik C.J. Laan
 
Posts: n/a
Default Re: User Login Time

"Michael Vilain <vilain@spamcop.net>" wrote:
> In article <c75ere$730$1@newssrv.muc.infineon.com>,
> "Gruber Johannes \(IFAT IT OS CS External\)"
> "<Gruber.External@infineon.com> wrote:
>
>>Hello,
>>
>>I'm using the Sun ONE Directory Server 5.2. Is there any plugin, which
>>stores the last logon time of the user?
>>
>>I would like to check every week automatically which account hasn't been
>>used for the last 6 months. Does anyone have a similar problem or already a
>>solution?
>>
>>Kind regards,
>>Johannes

>
> There's /var/adm/lastlogin or something thereabouts but no PAM that
> writes the last login time into LDAP, AFAIK.


There are also all kinds of (security) issues with writing information
back into the LDAP server. Take the last login time as an example:

If you write this into the LDAP server with the identity/authority of
the user (like Solaris does for password-changes), the user can change
this information himself. So he can also do this without using Solaris
(with a shellscript and ldapmodify for instance). Great action to take
every month (Cron!), so that the sysadmin will never notice you don't
actually logon that often ....

If you write this into the LDAP-server with the identity/authority of
the proxy-agent user belonging to the Solaris system, you effectively
give root on every Solaris system write access to this user-account
expiration information. The password of the proxy-agent users is stored
with a two-way hash algorithm in /var/ldap/ldap_client_cred. Reversing
this algorithm can not be that hard: The code is already on every LDAP
enabled Solaris sytemen. How else are they (the LDAP libraries) supposed
to bind to the LDAP server with a cleartext password? (Or I have missed
something clever here, which is possible, than please explain).

How I solved this at my work is to expire the users that haven't logged
in for the last 6 months with the Sun ONE Directory Servers password
expiration period. Mind you this is Solaris 8 with patch > 108993-25 and
SunONE Directory Server 5.2. Using this patch means that the Solaris
login-code can't bind to the LDAP server when the password is expired.
So the SunONE Directory Server password-expiration period effectively
becomes the Solaris user's inactivity lockout period (Of course you'll
have to take action, make scripts or whateven to make sure legitimate
and active users change their password well before the SunONE Directory
Server password really expires...). All this has been mentioned to Sun,
but they'll only fix in in future releases....

( This is for a setup designed for over 250 Solaris 8 systems, and over
250 AIX 4.3/5.2 systems.... )

If you think these not-yet-implemented features of the Solaris 8 & patch
> 108993-25 PAM_LDAP en NSS_LDAP libraries are bad, wait until you

test/use AIX 5.2 and especially AIX 4.3. They store the password of the
proxy-agent user in clear-text in a file (only readable to root off
course). And on top of that they use the proxy-agent and this password
to update the AIX user's password in the LDAP server when you type
'passwd'. So giving someone root's password on 1 LDAP connected AIX
machine effectively gives that person access to all the passwords of
users administered in your LDAP server. Allowing people administered in
the LDAP server to be able to change their password with the AIX passwd
command becomes a big no-no this way (IMHO). And then AIX 4.3 uses it on
self(IBM)-invented schema, but I'm drifting to far off-topic here....

HTH, Erik.
--
---------------------------------------------------------------------------
Erik C.J. Laan elaan at dds.nl
Please reply below the message, please cut unrelevant pieces from a reply.
---------------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:29 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com