Re: excluding attributes on search method?
Chris Ridd <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.ldap |
|---|---|
| Message-ID | <[email protected]> |
On 8 Jan 2009, at 13:12, Karsten Kankowski wrote: > Hello community! > > It is possible to define attributes using the "attrs =>" directive > at the > search method which are should NOT be returned? > > like: > $mesg = $ldap->search( ... , > attrs => ['*', &((!objectclass) ( ! > secretials)] > ); > > > Thanks for any hint or advisement :-) No, that's not a feature of LDAP. Interesting idea though. You can only use: "1.1" - meaning no attributes "*" - meaning all user attributes "+" - meaning all operational attributes "attr" - meaning the attribute "attr" in (sensible) combinations. You could do a schema query and work out what attributes to request, or you could just get everything back and ignore the ones you don't care about. Cheers, Chris