Hi, On Thursday, 27. October 2005 18:51, Donny Jekels wrote: > I am using the Net:LDAP package, to update entries in Active Directory. > > This is my first attempt to use the module in addition to my limited > knowledge on the schema attributes in active directory. > I was able to modify the email attribute for a user ID and that is > about it. > > everything else I tried does not work. > > Do you know how to list all availabel attributes in tha datastore for > a userid?
from the Net::LDAP man page (with comments added): # perform the search $mesg = $ldap->search( # perform a search base => "c=US", filter => "(&(sn=Barr) (o=Texas Instruments))" ); # die if the returned search object indicates an error $mesg->code && die $mesg->error; # iterte through the entries found and dump them to screen foreach $entry ($mesg->entries) { $entry->dump; } Net::LDAP's search() method returns a Net::LDAP::Search object which contains all the methods to get the entries. The man pages for Net::LDAP, Net::LDAP::Search and Net::LDAP::Entry should give more information. Hope it helps Peter -- Peter Marschall eMail: [EMAIL PROTECTED]