[Samba] Get logged on username (several sessions on the same machine)

Ryan Novosielski novosirj at umdnj.edu
Mon Mar 10 17:52:38 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What do you want it for? You can get that at login time by causing a
script to write out the value of %U. Do you want a "right now" snapshot?

Kurthermal wrote:
> I repost my question because I've noticed it on several Samba servers
> and I'm sure it is certainly a known problem.
> My configuration :
> Samba 3.0.24
> Ubuntu Feisty
> 
> Any help will be highly appreciated.
> Kurt
> 
> 
> Kurthermal wrote :
>> Hello,
>> I'm writting an application that will be running on a Samba PDC. It
>> has to get <login> (%username%) currently logged on some windows NT
>> domain clients.
>> I began to use 'net status sessions' but sometimes it returns more
>> than one user currently logged on the same windows client.
>> What's happening ?
>> Is there a solution to avoid this ?
>> Are there other methods to get <login> ?
>>
>> Thanks,
>> K.


- --
 ---- _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$&| |__| |  | |__/ | \| _| |novosirj at umdnj.edu - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH1XVmmb+gadEcsb4RApxbAJsE1VaZ+VUcgp2sQqyNx1YrL8NHXwCfYRbs
PwDz2WcQu6EeAfD5QJPQvzg=
=MZpJ
-----END PGP SIGNATURE-----


More information about the samba mailing list