[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Deleting a DN with leading Space Character



* Garry Thomas
|
| I've tried "escaping" the space with a backslash, and a few other
| ideas (like using quotes all over the place), but I can't get rid
| of it...

You need to Base64 encode the value.  The following perl snippet will
give you what you're looking for:

  : iago ~$ perl -MMIME::Base64 -e 'print encode_base64("uid= username,dc=foo,dc=bar")'
  dWlkPSB1c2VybmFtZSxkYz1mb28sZGM9YmFy

And this should give you the following DN:

  dn:: dWlkPSB1c2VybmFtZSxkYz1mb28sZGM9YmFy

-- 
Øyvind Grønnesby