From: Graham B. <gb...@po...> - 2001-06-14 19:49:58
|
Straight from the Net::LDAP documentation =item attrs A reference to a list of attributes to be returned for each entry that matches the search filter. If not specified, then the server will return the attributes that are specified as accessible by default given your bind credentials. Certain additional attributes such as "createtimestamp" and other operational attributes may also be available for the asking: $ldap->search( ... , attrs => ['createtimestamp'] , ... ); To retreive the default attributes and additional ones, use '*'. $ldap->search( ... , attrs => ['*', 'createtimestamp'] , ... ); On Thu, Jun 14, 2001 at 03:38:16PM -0400, Richard Lytle wrote: > Hi, > > I'm new to Perl LDAP and I've only learned a few things so far, but > here's what I am trying to do: I want to search for entry's that have a > certain value in one of their attributes and I am able to do this, I > want to request only certain attributes and I don't know how, I need to > know the form of the information when it's returned to me so that I can, > for example, read it into a hash, then use one element, like the "uid", > to perform a series of updates. I hope I've stated this clearly, I > don't know how to limit my search to particular attributes, and I don't > know what the form of the values are in when they're returned. Any help > for a newbie would be greatly appreciated. > > Thanks in advance, > Rich > |