Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Dump an LDAP entry

by araqnid (Beadle)
on Dec 08, 2000 at 17:42 UTC ( [id://45735]=CUFP: print w/replies, xml ) Need Help??

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
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://45735]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-19 07:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found