Showing posts with label Net::LDAP. Show all posts
Showing posts with label Net::LDAP. Show all posts

24 Nov 2010

Operational LDAP attributes

Net::LDAP search don't return operational attributes by default. Then how to get operational attributes like createTimestamp, modifyTimestamp from Net::LDAP search ?. Specifying '*' in the attrs list will get the operational parameters. But Net::LDAP documentation says, '+' is used by some servers to request "all operational attributes".

$mesg = $ldap->search( ... ,
attrs => [
'*',
'createTimestamp',
'creatorsName',
'modifiersName',
'modifyTimestamp'
]
);



19 Nov 2010

Net::LDAP made ldap interaction easy

Net::LDAP module by Graham Barr made Perl interaction with LDAP server very easy. This module is rated 4 stars as some folks feel this module is little slow. I would definitely rate 5 star for this module.

This module can be used to build tools to convert directory data to other format such as csv. This can also be used to convert ldif data to other system format.

Review for this module is available in cpanratings.perl.org

Module can be downloded from cpan

There is a pretty good document on how to use Net::LDAP in perlmonks