
winfinit
User
Sep 15, 2007, 1:54 PM
Post #1 of 3
(764 views)
|
Net:LDAP::Search
|
Can't Post
|
|
Hi i am trying to send output of my search into array for further sorting, and i am dont know how, i tried to experiment, but all i am getting is HASH value in my array... please tell me what i am doing wrong 8888888888888888888 #!/usr/bin/perl use Net::LDAP; $ldap = Net::LDAP->new('###.#####.####'); $ldap->bind('#######', password=>'######', version=>3); $mesg = $ldap->search(filter=>"(cn=########1*)", base=>'DC=######,DC=########,DC=net',attrs => ['1.1']); #all this below is to dump all the info to the screen @entries = $mesg->entries; foreach $entry (@entries) { $entry->dump; } $ldap->unbind; 8888888888888888888888888888888 dump is just sending output to the screen, but i need it to be pushed into my array for example @array... Thank You in advance...
|