Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to add a referral object in openldap that points to a DN in the remote server that has a space in one of the container names, something like this

ref: ldap:// ou,dc=example,dc=net

This seems to be causing a problem, what is the syntax for "escaping" spaces within ldif files, backslash before the space? whole attribute value within quotes?

Thanks for the help

share|improve this question

I know this is an old thread but maybe this'll help someone... replacing space characters with %20 worked for me.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.