Skip to content

Users from AD groups starting with \ are not added in the XWiki mapped group #55

@AndreeaChi

Description

@AndreeaChi

Hi, I have tested in both 12.10.6 and 13.10.2 Jetty HSQLDB.
Steps to reproduce:

  1. Have an AD group called \#New Test with a user in it called XWikiUserOne

  2. Install AD app and activate ldap DEBUG mode in logging.

  3. Add an AD configuration in XWiki administration > Other > Active Directory

  4. Go on Users & Rights > Groups and create a group called BackslashDiez

  5. Associate the BackslashDiez group with \#New Test.
    The option to associate the groups is shown right next to the created XWiki groups.
    image
    backslashdiez-new-test-associate

  6. Check AD Advanced configuration, in the group mapping:

Expected result
XWiki.BackslashDiez > CN=\#New Test,CN=Users,DC=xwiki,DC=com

Actual result

  • the mapping with \#New Test was shown as on the test from 13.10.2 with triple backslashes
    XWiki.BackslashDiez > CN=\\\#New Test,CN=Users,DC=xwiki,DC=com
    Look-in-AD-Advanced-configuration
  1. Logged in with XWikiUserOne.

Expected result
Successful login, the user goes in the mapped group.

Actual result
It was a successful login, but the mapping was not done. The XWikiUserOne went in the XWikiAllGroup as done by default.
image

An extract of the logs showing the errors :
extract-logs-attempt-login-mapping-triple-backslash.txt

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions