List Address 2.0

0 Likes

List all the network workstations from which the user has logged in. The user's id, full name and the IP addresses of the workstations are all printed. The administrator has to specify a server that has LDAP running. In addition, a container must be set to query for users.

Usage: perl listaddrs.pl prv-nds1 ou=nts_server,ou=prv,o=novell

Setup: The administrator needs to ensure that the [Public] user has Read and Compare rights to the Network Address and the CN attribute. You'll need to download and install the perl-ldap-0.3202 module from www.cpan.org/. (This is already present on NetWare 6.5.)

Platforms: Tested on NetWare 6.5, SUSE 9.0 and WinXP with the Perl package from www.activestate.com. It should work on any platform that supports Perl.p>

Example Output

cn=JoSmith (John Smith) is logged in from these workstations:
Address is 137.65.53.169
Address is 137.65.213.37
Address is 137.65.52.80
Address is 137.65.53.236
Address is 137.65.52.86

cn=KBieschke (Kenneth Bieschke) is logged in from these workstations:
Address is 137.65.52.109

cn=JSchnitter (Jim Schnitter) is logged in from these workstations:
Address is 164.99.192.74

cn=DLNeeley (Daron Neeley) is logged in from these workstations:
Address is 137.65.212.143

cn=JMiller (Juston Miller) is logged in from these workstations:
Address is 137.65.63.156
Address is 137.65.63.154
Address is 137.65.63.155
Address is 137.65.63.151
Address is 137.65.60.2

New in Version 2.0

  1. Tested on NetWare 6.5.
  2. No longer creates any temporary files.
  3. Uses the perl-ldap module from www.cpan.org .
  4. You don't need to have the ldapsearch utility installed for it to work.

Labels:

Collateral
Comment List
Related
Recommended