How can I specify a User DN that contains a space?

When configuring a Directory's User Configuration in Crowd that's connecting to Active Directory and I specify a User DN without a space (e.g. London) the test succeeds. But when I provide a User DN with a space (e.g. New York) I receive the following error:

No results were found from your search. org.springframework.ldap.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-0310020A, problem 2001 (NO_OBJECT), data 0, best match of: 'DC=foo,DC=com' ]; nested exception is javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-0310020A, problem 2001 (NO_OBJECT), data 0, best match of: 'DC=foo,DC=com' ]; remaining name 'OU=New York,dc=foo,dc=com'

Since both OU=New York and OU=London exist in AD, how can I use an OU with a space in its name?

1 answer

1 accepted

1 votes
Bruno Vincent Community Champion Sep 14, 2016

Strange. Works for me. Did you check that the username you defined in the connector tab is allowed to browse the New York OU?

When I specify the top level OU everything works, but if I specify a nested one I get the error above (my apologies if this isn't the right terminology, I don't work with LDAP much). For example:

DC=foo,DC=com

-- OU=Bar Users

--– OU=London

--– OU=New York

I can specify OU=London or OU=Bar Users and the search on the Configuration tab works, but if I specify New York it fails. I've verified that the user on the Connector tab can browse OU=New York.

Bruno Vincent Community Champion Sep 14, 2016

I have just done the exact same test and it worked again for me. I must be missing something here. Here is what you should have:

  • Connector tab > Base DN: DC=FOO,DC=COM
  • Configuration tab > User DN: OU=New York,OU=Bar Users

 

Ah, ok. The error was in my understanding, I didn't know how to construct the path and my OU=London was matching a top level OU of London, but there was no top level OU of New York. I changed the configuration to match your suggestion and the search works. 

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

845 views 5 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot