Re: [Freeipa-devel] [PATCH 0542] ipa-getkeytab: increase LDAP timeout

2016-06-27 Thread Martin Basti



On 27.06.2016 09:31, Petr Spacek wrote:

On 23.6.2016 17:28, Martin Basti wrote:

https://fedorahosted.org/freeipa/ticket/5842


Patch attached.

I do not have reproducer but it seems reasonable. ACK.


Pushed to master: deb99c11d4c0f7c5f68ed36b183f69281bf6

--
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code


Re: [Freeipa-devel] [PATCH 0542] ipa-getkeytab: increase LDAP timeout

2016-06-27 Thread Petr Spacek
On 23.6.2016 17:28, Martin Basti wrote:
> https://fedorahosted.org/freeipa/ticket/5842
> 
> 
> Patch attached.

I do not have reproducer but it seems reasonable. ACK.

-- 
Petr^2 Spacek

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code


[Freeipa-devel] [PATCH 0542] ipa-getkeytab: increase LDAP timeout

2016-06-23 Thread Martin Basti

https://fedorahosted.org/freeipa/ticket/5842


Patch attached.

From d4092afc1dec882d6d49ae821a4da97f3fa8921e Mon Sep 17 00:00:00 2001
From: Martin Basti 
Date: Thu, 23 Jun 2016 16:49:32 +0200
Subject: [PATCH] Increase ipa-getkeytab LDAP timeout to 100sec

On slower machines, the original time 10s is not enough. Raising timeout
to 100sec should help.

https://fedorahosted.org/freeipa/ticket/5842
---
 client/ipa-getkeytab.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/client/ipa-getkeytab.c b/client/ipa-getkeytab.c
index d4925865393ea19705d5d9ae09847966402fd8f0..0f549a5cf0ba047b14f6017845345f7b9138c194 100644
--- a/client/ipa-getkeytab.c
+++ b/client/ipa-getkeytab.c
@@ -267,8 +267,8 @@ static int ipa_ldap_extended_op(LDAP *ld, const char *reqoid,
 return ret;
 }
 
-/* wait max 10 secs for the answer */
-tv.tv_sec = 10;
+/* wait max 100 secs for the answer */
+tv.tv_sec = 100;
 tv.tv_usec = 0;
 ret = ldap_result(ld, msgid, 1, , );
 if (ret == -1) {
-- 
2.5.5

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code