Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Karthikeyan M
Sign in is temporarily unavailable
March 20, 2013 10:44 PM
Answer

Karthikeyan M

Rank: Junior Member

Posts: 30

Join Date: February 16, 2013

Recent Posts

Hi Everyone,
I tried to create an account in liferay, but every time i click submit button it shows an error as "sign in is temporarily unavailable".. Can anyone help me to solve this?
Bart Simpson
RE: Sign in is temporarily unavailable
March 20, 2013 11:40 PM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 523

Join Date: August 29, 2011

Recent Posts

Do you see any exceptions on your server console. If so please post them here ?
Also specify if you did any kind of customization for login?
Karthikeyan M
RE: Sign in is temporarily unavailable
March 21, 2013 12:19 AM
Answer

Karthikeyan M

Rank: Junior Member

Posts: 30

Join Date: February 16, 2013

Recent Posts

Bart Simpson:
Do you see any exceptions on your server console. If so please post them here ?
Also specify if you did any kind of customization for login?


Thanks for ur reply,


The Error shown in the console is:

 107:16:05,844 ERROR [http-bio-8080-exec-3][render_portlet_jsp:154] java.lang.NullPointerException
 2    at com.liferay.portal.security.pwd.PasswordPolicyToolkit.generateDynamic(PasswordPolicyToolkit.java:164)
 3    at com.liferay.portal.security.pwd.PasswordPolicyToolkit.generate(PasswordPolicyToolkit.java:76)
 4    at com.liferay.portal.security.pwd.ToolkitWrapper.generate(ToolkitWrapper.java:32)
 5    at com.liferay.portal.security.pwd.PwdToolkitUtil.generate(PwdToolkitUtil.java:29)
 6    at com.liferay.portal.service.impl.UserLocalServiceImpl.completeUserRegistration(UserLocalServiceImpl.java:1506)
 7    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
 8    at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
 9    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
10    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
11    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
12    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
13    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
14    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
15    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
16    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
17    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
18    at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
19    at com.liferay.portal.service.UserLocalServiceUtil.completeUserRegistration(UserLocalServiceUtil.java:885)
20    at com.liferay.portlet.directory.workflow.UserWorkflowHandler.updateStatus(UserWorkflowHandler.java:70)
21    at com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil.startWorkflowInstance(WorkflowHandlerRegistryUtil.java:142)


I Had connected the ldap server with my local host..
No other customization is done..
Bart Simpson
RE: Sign in is temporarily unavailable
March 21, 2013 12:23 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 523

Join Date: August 29, 2011

Recent Posts

As you can see in the exception, that password policy is causing some problem. You should create a new password policy that matches the passwords in your LDAP, or you can simple turn of password storage in liferay by adding the property

1    # Set this to false when the LDAP user's password should not be imported to
2    # the Liferay user.
3    #
4    ldap.import.user.password.enabled=true
Karthikeyan M
RE: Sign in is temporarily unavailable
March 22, 2013 12:17 AM
Answer

Karthikeyan M

Rank: Junior Member

Posts: 30

Join Date: February 16, 2013

Recent Posts

Bart Simpson:
As you can see in the exception, that password policy is causing some problem. You should create a new password policy that matches the passwords in your LDAP, or you can simple turn of password storage in liferay by adding the property

1    # Set this to false when the LDAP user's password should not be imported to
2    # the Liferay user.
3    #
4    ldap.import.user.password.enabled=true



Hi Simpson, In my portal-ext file I had the below coding I changed the password policy as true but still its not working
 1field.enable.com.liferay.portal.model.Contact.birthday=false
 2captcha.check.portal.create_account=false
 3field.enable.com.liferay.portal.model.Contact.male=false
 4login.create.account.allow.custom.password=true
 5ldap.factory.initial=com.sun.jndi.ldap.LdapCtxFactory ldap.referral=follow
 6
 7ldap.auth.enabled=true
 8 ldap.auth.required=false
 9ldap.page.size=1000
10ldap.range.size=1000
11ldap.auth.method=password-compare
12ldap.auth.password.encryption.algorithm=SHA
13ldap.attrs.transformer.impl=com.liferay.portal.security.ldap.DefaultAttributesTransformer
14ldap.import.enabled=true
15ldap.import.on.startup=true
16 ldap.import.interval=10
17ldap.import.method=user
18ldap.import.group.search.filter.enabled=false
19ldap.user.impl=com.liferay.portal.security.ldap.LDAPUser
20ldap.error.password.age=age
21ldap.error.password.expired=expired
22ldap.error.password.history=history
23ldap.error.password.not.changeable=not allowed to change
24ldap.error.password.syntax=syntax
25ldap.error.password.trivial=trivial
26ldap.error.user.lockout=retry limit
27ldap.password.policy.enabled=true
28ldap.import.user.password.autogenerated=true
29ldap.export.enabled=true
30ldap.base.provider.url.0=ldap://localhost:10389
31ldap.base.dn.0=ou=users,ou=system
32ldap.security.principal.0=uid=admin,ou=system
33 ldap.security.credentials.0=secret
34(&(objectclass=person)(userprincipalname=@email_address@)(!(UserAccountControl:1.2.840.113556.1.4.803:=2)))
35ldap.auth.search.filter.0=(mail=@email_address@)
36ldap.contact.mappings.0=
37ldap.contact.custom.mappings.0=
38ldap.user.default.object.classes.0=top,person,inetOrgPerson,organizationalPerson
39ldap.user.mappings.0=screenName=cn\npassword=userPassword\nemailAddress=mail\nfirstName=givenName\nlastName=sn
40ldap.user.custom.mappings.0=
41ldap.import.user.search.filter.0=(objectClass=inetOrgPerson)
42ldap.users.dn.0=ou=users,ou=system
43basic.auth.password.required=true
Bart Simpson
RE: Sign in is temporarily unavailable
March 25, 2013 12:57 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 523

Join Date: August 29, 2011

Recent Posts

What I meant was that you could turn of the feature of password storing in liferay by setting the given property to false and then there would be no conflict with the existing ldap password.
Or else now that you have turned on the policy, you will have to edit and check it then tweak it to match the passwords in ldap.