<div dir="ltr">On Fri, Jun 1, 2012 at 4:41 PM, Baruch Shpirer <span dir="ltr"><<a href="mailto:baruch@shpirer.com" target="_blank">baruch@shpirer.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You can run some syslog for windows daemon on your dcs and redirect to some linux syslog daemon and parse security events for login <br><br>Last login record in the ldap will not help you much<br><br>Baruch<br><br>shimi <<a href="mailto:linux-il@shimi.net" target="_blank">linux-il@shimi.net</a>> wrote:<div class="im">
<br><br><p><br>
On May 31, 2012 6:14 PM, "ik" <<a href="mailto:idokan@gmail.com" target="_blank">idokan@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
><br>
> I need to write an application (on Linux) that checks with Active Directory if a user is logged in, and few other details about that user.<br>
> The only thing I do not understand, is how can I check if a user has logged in or not.<br>
><br>
> Does anyone have any experience with this issue and can shed some light, or point me to a good documentation on the subject ?<br>
><br>
> Thanks,<br>
> Ido<br>
></p>
</div><p>AFAIK, AD doesn't "know" a user is "logged in", because AD is not a login service, rather than an information source (e.g. *can* you login or not with the credentials provided). Also, you may be logged in to multiple stations on the domain... which one is the important to you? How would it know?</p>
<div class="im HOEnZb">
<p>You need workstations/server level info, not AD, IMHO.</p>
<p>For example you could query NetBIOS via nbtstat -A ipaddr from a remote windows machine... there should be samba equivalent (don't remember by heart, sending this from my sgs2)</p>
<p>Hope this helps...</p></div></blockquote><div><br>Thank you both, I'm thinking in forcing the DC to add me a property of "login" with boolean field or something like that, because as I understand, they do know if a user is logged in. <br>
For me the number of logins is not important, only that they are logged in somewhere. <br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im HOEnZb">
<p>-- <u>Shimi</u></p></div></blockquote><div>Ido<br><br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im HOEnZb">
</div><div class="HOEnZb"><div class="h5"><div class="gmail_quote">On May 31, 2012 6:14 PM, "ik" <<a href="mailto:idokan@gmail.com" target="_blank">idokan@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hello,<br><br>I need to write an application (on Linux) that checks with Active Directory if a user is logged in, and few other details about that user.<br>The only thing I do not understand, is how can I check if a user has logged in or not.<br>
<br>Does anyone have any experience with this issue and can shed some light, or point me to a good documentation on the subject ?<br><br>Thanks,<br>Ido<br>
</div>
<br>_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il" target="_blank">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
<br></blockquote></div>
</div></div></blockquote></div><br></div>