Re: [Freeipa-users] Error while Enrolling Client

2015-08-12 Thread Yogesh Sharma
Thanks Jakub/Lukas,

Setting the right cache timeout fix the issue. man sssd-sudo really
helped us. Thanks again for the suggestion.



*Best Regards,*

*__*

*Yogesh Sharma*
*Email: yks0...@gmail.com yks0...@gmail.com | Web: www.initd.in
http://www.initd.in/ *

*RHCE, VCE-CIA, RACKSPACE CLOUD U Certified*

https://www.fb.com/yks   http://in.linkedin.com/in/yks
https://twitter.com/checkwithyogesh
http://google.com/+YogeshSharmaOnGooglePlus

On Wed, Aug 12, 2015 at 11:22 AM, Lukas Slebodnik lsleb...@redhat.com
wrote:

 On (11/08/15 20:53), Jakub Hrozek wrote:
 On Tue, Aug 11, 2015 at 09:29:46PM +0530, Yogesh Sharma wrote:
  Yes Jakub...That was the issue. We have fixed it and update to List.
 
  Thanks Jakub.
 
  Would like to have one suggestion.
 
  We have implemented sudo, but every time we need to restart sssd to take
  the changes. We have try implementing the cache timeout also, but not
  working as expected.
 
  Any other config changes required?
 
 No, this is not expected. Can you get logs after you've added the sudo
 rule but before the client is restarted in order to capture the issue?
 It would be best to add debug_level=7 to sudo, nss and domain sections.
 
 I thought it is an side effect of sudo rule caching mechanism
 and periodic tasks. So it might be an expected behaviour.

 Periodic task are fired few seconds after start of sssd.
 It might explain why restarting sssd works.

 @see more details in man sssd-sudo - THE SUDO RULE CACHING MECHANISM

 LS

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project

[Freeipa-users] Error while Enrolling Client

2015-08-11 Thread Yogesh Sharma
Hi Team,

While registering to IPA Server we are getting below error. Any suggestion
Please.

[root@client ~]# ipa-client-install --mkhomedir --no-ntp
Discovery was successful!
Hostname: client.domain.int
Realm: domain.INT
DNS Domain: domain.int
IPA Server: ldap.domain.int
BaseDN: dc=domain,dc=int

Continue to configure the system with these values? [no]: yes
User authorized to enroll computers: admin
Synchronizing time with KDC...
Unable to sync time with IPA NTP server, assuming the time is in sync.
Please check that 123 UDP port is opened.
Password for ad...@domain.int:
Enrolled in IPA realm domain.INT
Attempting to get host TGT...
Created /etc/ipa/default.conf
New SSSD config will be created
Configured sudoers in /etc/nsswitch.conf
Configured /etc/sssd/sssd.conf
Configured /etc/krb5.conf for IPA realm domain.INT
trying https://ldap.domain.int/ipa/xml
Forwarding 'env' to server u'https://ldap.domain.int/ipa/xml'
Traceback (most recent call last):
  File /usr/sbin/ipa-client-install, line 2567, in module
sys.exit(main())
  File /usr/sbin/ipa-client-install, line 2553, in main
rval = install(options, env, fstore, statestore)
  File /usr/sbin/ipa-client-install, line 2346, in install
remote_env = api.Command['env'](server=True)['result']
  File /usr/lib/python2.6/site-packages/ipalib/frontend.py, line 438, in
__call__
ret = self.run(*args, **options)
  File /usr/lib/python2.6/site-packages/ipalib/frontend.py, line 1076, in
run
return self.forward(*args, **options)
  File /usr/lib/python2.6/site-packages/ipalib/frontend.py, line 772, in
forward
return self.Backend.xmlclient.forward(self.name, *args, **kw)
  File /usr/lib/python2.6/site-packages/ipalib/rpc.py, line 731, in
forward
raise error(message=e.faultString)
ipalib.errors.ACIError: Insufficient access: SASL(-1): generic failure:
GSSAPI Error: Unspecified GSS failure.  Minor code may provide more
information (Ticket not yet valid)



*Best Regards,*

*__*

*Yogesh Sharma*
*Email: yks0...@gmail.com yks0...@gmail.com | Web: www.initd.in
http://www.initd.in/ *

*RHCE, VCE-CIA, RACKSPACE CLOUD U Certified*

https://www.fb.com/yks   http://in.linkedin.com/in/yks
https://twitter.com/checkwithyogesh
http://google.com/+YogeshSharmaOnGooglePlus
-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project

Re: [Freeipa-users] Error while Enrolling Client

2015-08-11 Thread Yogesh Sharma
Yes Jakub...That was the issue. We have fixed it and update to List.

Thanks Jakub.

Would like to have one suggestion.

We have implemented sudo, but every time we need to restart sssd to take
the changes. We have try implementing the cache timeout also, but not
working as expected.

Any other config changes required?

*Best Regards,*

*__*

*Yogesh Sharma*
*Email: yks0...@gmail.com yks0...@gmail.com | Web: www.initd.in
http://www.initd.in/ *

*RHCE, VCE-CIA, RACKSPACE CLOUD U Certified*

https://www.fb.com/yks   http://in.linkedin.com/in/yks
https://twitter.com/checkwithyogesh
http://google.com/+YogeshSharmaOnGooglePlus

On Tue, Aug 11, 2015 at 9:21 PM, Jakub Hrozek jhro...@redhat.com wrote:

 On Tue, Aug 11, 2015 at 08:43:49PM +0530, Yogesh Sharma wrote:
  Hi Team,
 
  While registering to IPA Server we are getting below error. Any
 suggestion
  Please.
 
  [root@client ~]# ipa-client-install --mkhomedir --no-ntp
  Discovery was successful!
  Hostname: client.domain.int
  Realm: domain.INT
  DNS Domain: domain.int
  IPA Server: ldap.domain.int
  BaseDN: dc=domain,dc=int
 
  Continue to configure the system with these values? [no]: yes
  User authorized to enroll computers: admin
  Synchronizing time with KDC...
  Unable to sync time with IPA NTP server, assuming the time is in sync.
  Please check that 123 UDP port is opened.
  Password for ad...@domain.int:
  Enrolled in IPA realm domain.INT
  Attempting to get host TGT...
  Created /etc/ipa/default.conf
  New SSSD config will be created
  Configured sudoers in /etc/nsswitch.conf
  Configured /etc/sssd/sssd.conf
  Configured /etc/krb5.conf for IPA realm domain.INT
  trying https://ldap.domain.int/ipa/xml
  Forwarding 'env' to server u'https://ldap.domain.int/ipa/xml'
  Traceback (most recent call last):
File /usr/sbin/ipa-client-install, line 2567, in module
  sys.exit(main())
File /usr/sbin/ipa-client-install, line 2553, in main
  rval = install(options, env, fstore, statestore)
File /usr/sbin/ipa-client-install, line 2346, in install
  remote_env = api.Command['env'](server=True)['result']
File /usr/lib/python2.6/site-packages/ipalib/frontend.py, line 438,
 in
  __call__
  ret = self.run(*args, **options)
File /usr/lib/python2.6/site-packages/ipalib/frontend.py, line 1076,
 in
  run
  return self.forward(*args, **options)
File /usr/lib/python2.6/site-packages/ipalib/frontend.py, line 772,
 in
  forward
  return self.Backend.xmlclient.forward(self.name, *args, **kw)
File /usr/lib/python2.6/site-packages/ipalib/rpc.py, line 731, in
  forward
  raise error(message=e.faultString)
  ipalib.errors.ACIError: Insufficient access: SASL(-1): generic failure:
  GSSAPI Error: Unspecified GSS failure.  Minor code may provide more
  information (Ticket not yet valid)

 Check the time on your machines..

 --
 Manage your subscription for the Freeipa-users mailing list:
 https://www.redhat.com/mailman/listinfo/freeipa-users
 Go to http://freeipa.org for more info on the project

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project

Re: [Freeipa-users] Error while Enrolling Client

2015-08-11 Thread Jakub Hrozek
On Tue, Aug 11, 2015 at 09:29:46PM +0530, Yogesh Sharma wrote:
 Yes Jakub...That was the issue. We have fixed it and update to List.
 
 Thanks Jakub.
 
 Would like to have one suggestion.
 
 We have implemented sudo, but every time we need to restart sssd to take
 the changes. We have try implementing the cache timeout also, but not
 working as expected.
 
 Any other config changes required?

No, this is not expected. Can you get logs after you've added the sudo
rule but before the client is restarted in order to capture the issue?
It would be best to add debug_level=7 to sudo, nss and domain sections.

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project