LDAPUserImporterImpl implements LDAPUserImporter, UserImporter { protected String escapeLDAPName(String ldapName) { return StringUtil.replace(ldapName, '\\', "\\\\"); }  @Override long getLastImportTime(); @Deprecated @Override User importUser(
			long ldapServerId, long companyId, LdapContext ldapContext,
			Attributes attributes, String password); @Override User importUser(
			long ldapServerId, long companyId, SafeLdapContext safeLdapContext,
			Attributes attributes, String password); @Override User importUser(
			long ldapServerId, long companyId, String emailAddress,
			String screenName); @Override User importUser(
			long companyId, String emailAddress, String screenName); @Override User importUserByScreenName(long companyId, String screenName); @Override void importUsers(); @Override void importUsers(long companyId); @Override void importUsers(long ldapServerId, long companyId); @Reference(unbind = "-") void setSingleVMPool(SingleVMPool singleVMPool);  }
@Test public void testBindingInNamespaceEscape() throws InvalidNameException { Assert.assertEquals( "cn=User\\\\,with\\\\,commas,ou=users,dc=example,dc=com", escapeLDAPName( "cn=User\\,with\\,commas,ou=users,dc=example,dc=com")); Assert.assertEquals( "cn=User\\\\2cwith\\\\2ccommas,ou=users,dc=example,dc=com", escapeLDAPName( "cn=User\\2cwith\\2ccommas,ou=users,dc=example,dc=com")); }