From: Chris R. <chr...@me...> - 2001-06-19 09:42:01
|
"R. Reucher" <ren...@cp...> wrote: > Chris Ridd wrote: > >> >> So basically everything that you pass into Net::LDAP objects *must* be >> >> ASCII or UTF-8 (if you are using LDAPv3.) >> > I know that. The question is, _where_ excatly do I need to convert >> > (back and forth) ? >> >> I think I said - every value you pass into Net::LDAP from your program >> and every value you get out again. Since Net::LDAP doesn't mess around >> with values at all, the bytes you pass in should ultimately end up 'on >> the wire'. > Ah... sorry for my "ignorance". > > So - when I understand you correctly - all I have to do is to pass > EBCDIC converted strings to every Net::LDAP subroutine (like bind, > search etc.) instead of their ASCII counterparts... correct ? Yes. > And the way back is to convert to EBCDIC as soon as I want to _work_ > with the results on the 390 system. also correct ? Yes. >> > 5: password => 'xxxxxxxx'); >> >> That's tricky. The password syntax is OCTET STRING, which means 'just the >> bytes, no character set is implied' so whatever the directory server >> thinks the bytes are is needed here. > Hmmmm... I should perhaps try an anonymous bind at first. That's a good idea. The lack of a character set for passwords is a bit of a tricky problem in the standards. I'm not sure what the fix is - avoid using passwords and use something like certificates, I guess. Good luck! Cheers, Chris |