Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Dump an LDAP entry

by araqnid (Beadle)
on Dec 08, 2000 at 17:42 UTC ( #45735=snippet: print w/replies, xml ) Need Help??
Description: Requires Net::LDAP Fill in the base DN, filter, hostname etc. in the appropriate points :} e.g. ldap.example.com for __HOSTNAME__, uid=avatar for __FILTER__ and dc=example,dc=com for __BASEDN__ I use q[] to avoid shell-quoting problems.
perl -w -MNet::LDAP -e '$entry = Net::LDAP->new(q[__HOSTNAME__])->sear
+ch(filter => q[__FILTER__], base => q[__BASEDN__], scope => q[sub])->
+shift_entry; print $entry->dump'
Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: snippet [id://45735]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2018-01-21 06:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (227 votes). Check out past polls.

    Notices?