Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Converting Active Directory's Base64-Encoded UTF8 data to ISO-8859-1 inline

by bronto (Priest)
on Jan 27, 2005 at 11:55 UTC ( #425532=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ldapsearch -x -h 10.11.12.13 -p 3268 -b dc=ourdomain,dc=com -D a_dn_al
    +lowed_to_search_and -w its_password '(manager=the_dn_of_our_boss)' cn
    + | perl -MEncode -MMIME::Base64 -lpe 'if (/::/) { ($attr,$_)=split ; 
    +Encode::from_to($_=decode_base64($_),"utf8","iso-8859-1") ; $_="$attr
    +: $_" }'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: CUFP [id://425532]
Approved by muba
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2021-04-21 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?