title: Unable to load user from Ldap server in to Liferay com.liferay
body: <p>Im trying authenticate users from ldap server to liferay.My requirement is to login to liferay using screename .</p>
  
  <pre><code>ldap.base.provider.url= ldap://localhost:389
  ldap.base.dn= dc=soas,dc=schoolx
  ldap.security.principal= cn=admin
  ldap.security.credentials= blahblah
  auth.pipeline.pre=com.liferay.portal.security.auth.LDAPAuth
  
  ldap.auth.enabled=true
  ldap.auth.required=true
  ldap.password.policy.enabled=true
  ldap.users.dn= dc=soas,dc=schoolx
  ldap.groups.dn= dc=soas,dc=schoolx
  
  ldap.import.enabled=true
  ldap.import.interval=1
  ldap.import.on.startup=true
  
  ldap.import.method=group
  ldap.import.group.search.filter.enabled=true
  ldap.import.group.cache.enabled=false
  #ldap.export.enabled=true
  
  ldap.auth.password.encryption.algorithm=
  
  ldap.user.mappings=screenName=cn\npassword=userPassword\nemailAddress=mail\nfirstName=givenName\nlastName=sn
  
  ldap.group.mappings=groupName=cn\ndescription=description\nuser=member
  
  ldap.import.user.search.filter=(objectClass=inetOrgPerson)
  
  ldap.import.group.search.filter=(objectClass=groupOfEntries)
  
  ldap.auth.search.filter=(cn=@screen_name@)
  </code></pre>
  
  <p>When i login using a user from ldap server i get the following exception.</p>
  
  <pre><code>07:20:28,513 ERROR [liferay/scheduler_dispatch-2][PortalLDAPImporterImpl:1061] Unable to load user {createtimestamp=createTimestamp: 20150331045703Z, mail=mail: vimekvanamali@gmail.com, userpassword=userPassword: [B@6c01fb, creatorsname=creatorsName: cn=Directory Manager,cn=Root DNs,cn=config, givenname=givenName: vimekedited, sn=sn: vanamali, cn=cn: vimekeditedmali}
  com.liferay.portal.GroupFriendlyURLException
      at com.liferay.portal.service.impl.UserLocalServiceImpl.validateScreenName(UserLocalServiceImpl.java:6181)
      at com.liferay.portal.service.impl.UserLocalServiceImpl.validate(UserLocalServiceImpl.java:5897)
      at com.liferay.portal.service.impl.UserLocalServiceImpl.addUserWithWorkflow(UserLocalServiceImpl.java:746)
      at com.liferay.portal.service.impl.UserLocalServiceImpl.addUser(UserLocalServiceImpl.java:608)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
      at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
      at com.sun.proxy.$Proxy105.addUser(Unknown Source)
      at com.liferay.portal.service.UserLocalServiceUtil.addUser(UserLocalServiceUtil.java:1166)
      at com.liferay.portal.security.ldap.PortalLDAPImporterImpl.addUser(PortalLDAPImporterImpl.java:521)
      at com.liferay.portal.security.ldap.PortalLDAPImporterImpl.importUser(PortalLDAPImporterImpl.java:930)
      at com.liferay.portal.security.ldap.PortalLDAPImporterImpl.importUsers(PortalLDAPImporterImpl.java:1042)
      at com.liferay.portal.security.ldap.PortalLDAPImporterImpl.importFromLDAPByGroup(PortalLDAPImporterImpl.java:664)
      at com.liferay.portal.security.ldap.PortalLDAPImporterImpl.importFromLDAP(PortalLDAPImporterImpl.java:197)
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/9P4t1.png" alt="enter image description here"></p>
  
  <p>Can some one help me to fix this issue?</p>