Re: Login information in ADS LDAP Tree
From: John Howard [MSFT] (jhoward_at_online.microsoft.com)
Date: 11/03/04
- Next message: ptwilliams: "Re: Enterprise admins - help"
- Previous message: Brandon: "Re: GP for IE homepage"
- In reply to: Raman: "Login information in ADS LDAP Tree"
- Next in thread: Al Mulnick: "Re: Login information in ADS LDAP Tree"
- Reply: Al Mulnick: "Re: Login information in ADS LDAP Tree"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 3 Nov 2004 21:14:35 -0000
Hi Raman
The IADsUser object in ADSI has the property LastLogin (see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/iadsuser_property_methods.asp).
If I recall correctly, you will need to open the user object on each Domain
Controller - the property will only be set if the user has logged onto that
domain controller. If the property is not set on any DC, the user hasn't
logged on. Has been a while since I looked at this, but I did something
similar to this a couple of years ago. There may be a better way, but I'll
leave that to the AD developers to answer if there is....
Hope this helps.
John.
-- This posting is provided "AS IS" with no warranties, and confers no rights. Please do not send e-mail directly to this alias. This alias is for newsgroup purposes only. "Raman" <Raman@discussions.microsoft.com> wrote in message news:A6963138-04FC-4D79-8CDC-D4D1B6693858@microsoft.com... > Hi, > > How in ADS, we can figure out whether a user has logged in, by browsing > the > LDAP tree > > Thanks > > Raman
- Next message: ptwilliams: "Re: Enterprise admins - help"
- Previous message: Brandon: "Re: GP for IE homepage"
- In reply to: Raman: "Login information in ADS LDAP Tree"
- Next in thread: Al Mulnick: "Re: Login information in ADS LDAP Tree"
- Reply: Al Mulnick: "Re: Login information in ADS LDAP Tree"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|