List Address 2.0
Novell Cool Solutions: Cool Tool
Reader Rating
from 3 ratings
In Brief
List users' network addresses.
Vitals
- Product Categories:
- Linux
- Novell Client
- SUSE Linux
- Functional Categories:
- User Management
| Posted: | 10 Feb 2005 |
| File Size: | 685KB |
| License: | Free |
| Download: | /coolsolutions/tools/downloads/listaddrs.zip |
| Publisher: | Jim Schnitter |
Disclaimer
Please read the note from our friends in legal before using this file.
Details
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
- Tested on NetWare 6.5.
- No longer creates any temporary files.
- Uses the perl-ldap module from www.cpan.org .
- You don't need to have the ldapsearch utility installed for it to work.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com
Reader Comments
- We have tried to implement this in Java. This was our first endeavour in coding for Novell, and it was a very frustrating experience. In the end, it didn't work - we do get a list of users but no correct NetworkAddress, even if we retrieve all attributes. There are two pieces of information that should have been provided: 1. What exactly does "In addition, a container must be set to query for users" mean? A link to instructions how to do this or at least some suggestion would have helped. 2. A link to documentation explaining how to set [public] user rights. I believe we have managed to do this. Thanks, Ivan
- The script doesn't work for me. Though all is installed and sript runs, it returns no results. I believe our server setting is such that it doesn't log IP address since our java based queries have come to the same result. Is there some specific setting we need to do to get addresses? From Jim Please email me with details.
- Nice, but you'll also need ldapsearch from either the NDK or OpenLDAP.Tis could be rewritten using Net::LDAP and be truly self-contained and cross-platform