Sabiha has asked for the wisdom of the Perl Monks concerning the following question:
~ It does not give any output. Can anyone help?#!/usr/bin/perl -w use strict; use Net::LDAP; print "\nEnter the user id :"; my $uid = <STDIN>; $ldap = Net::LDAP->new("localhost"); $ldap->bind("ou=netgroup,ou=people"); $mesg = $ldap->search(filter=>"(nisNetgroupTriple=\(,$uid,\))", base=> +"ou=netgroup,ou=people",attrs=>['dn','cn']); @entries = $mesg->entries; foreach $entry (@entries){ $entry->dump;}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Searching Ldap by user id or nisNetgroupTriple
by NetWallah (Canon) on Feb 20, 2014 at 06:13 UTC | |
by Sabiha (Initiate) on Feb 20, 2014 at 08:08 UTC | |
by Anonymous Monk on Feb 20, 2014 at 08:14 UTC | |
|
Re: Searching Ldap by user id or nisNetgroupTriple
by kcott (Archbishop) on Feb 20, 2014 at 13:45 UTC |