This is the simplest script i tested. ------------------------------------------------------------------ #!/usr/bin/perl
use Net::LDAP qw(:all);
$ldap = new Net::LDAP('ldapserver.domain.com') or die "$@";
$ldap->bind( version => 3 );
@attrs = ['uniqueMember'];
$mesg = $ldap->search ( base => "o=domain.com",
filter => "cn=nomegroup",
attrs => @attrs
) or die ("Failed on search.$!");foreach $entry ($mesg->all_entries)
{
$uniqueMember = $entry->get_value("uniqueMember");
print "$uniqueMember\n";
}$ldap->unbind; -------------------------------------------------------------- It works and return a string like this:
uid=myuid, ou=people, o=subdomin.domain.com,o=domain.com
but myuid is the first of the members group.
Many thanks Alessandro
Marco Marongiu wrote:
Ciao Alessandro
Alessandro Favretto wrote:
If i extract all the attributes of the group i can see the member list with the uniqueMember attribute before the userid of everyone.
If i try to extract only that attribute the script responses only with the first member of the list.
Sombody has already solve this aspect?
Could you please send a small snippet of code to show how you are doing that?
Grazie!
Ciao --M
--
Favretto Alessandro Sistemista servizi di rete Fracarro S.p.a.
[EMAIL PROTECTED]
Tel +39 0423.7361 Fax +39 0423.736220
