[Freeipa-users] Re: kpasswd: Preauthentication failed getting initial ticket

2018-07-04 Thread Alexander Bokovoy via FreeIPA-users
On ke, 04 heinä 2018, lune voo via FreeIPA-users wrote: Hello Alexander. I tried to reproduce the error with standard command ipa passwd and kpasswd in a shell. I was not able to reproduce the problem (even by using the same passwords). I also performed another test in python. I added a loop

[Freeipa-users] Re: kpasswd: Preauthentication failed getting initial ticket

2018-07-04 Thread lune voo via FreeIPA-users
Hello Alexander. I tried to reproduce the error with standard command ipa passwd and kpasswd in a shell. I was not able to reproduce the problem (even by using the same passwords). I also performed another test in python. I added a loop to retry the kpasswd if it fails with this kind of errors.

[Freeipa-users] Re: kpasswd: Preauthentication failed getting initial ticket

2018-07-03 Thread Alexander Bokovoy via FreeIPA-users
On ke, 04 heinä 2018, lune voo via FreeIPA-users wrote: I will try to reproduce the problem interactively in python. I meant in shell, to rule out any issues outside your python code. Lune Le mer. 4 juil. 2018 à 07:20, Alexander Bokovoy a écrit : On ke, 04 heinä 2018, lune voo wrote:

[Freeipa-users] Re: kpasswd: Preauthentication failed getting initial ticket

2018-07-03 Thread lune voo via FreeIPA-users
I will try to reproduce the problem interactively in python. Lune Le mer. 4 juil. 2018 à 07:20, Alexander Bokovoy a écrit : > On ke, 04 heinä 2018, lune voo wrote: > >Hello Alexander. > > > >Thanks for the answer. > > > >Otp stands for one time password. > > > >In fact in order to set a

[Freeipa-users] Re: kpasswd: Preauthentication failed getting initial ticket

2018-07-03 Thread Alexander Bokovoy via FreeIPA-users
On ke, 04 heinä 2018, lune voo wrote: Hello Alexander. Thanks for the answer. Otp stands for one time password. In fact in order to set a password for a user, I do first a ipa passwd using ipa python library. So, your code is equivalent to kinit admin ipa passwd test-user kpasswd test-user

[Freeipa-users] Re: kpasswd: Preauthentication failed getting initial ticket

2018-07-03 Thread lune voo via FreeIPA-users
Hello Alexander. Thanks for the answer. Otp stands for one time password. In fact in order to set a password for a user, I do first a ipa passwd using ipa python library. The otp is good normally. And the kpasswd password should be good also except if ipa kdc dont like some special characters

[Freeipa-users] Re: kpasswd: Preauthentication failed getting initial ticket

2018-07-03 Thread Alexander Bokovoy via FreeIPA-users
On ti, 03 heinä 2018, lune voo via FreeIPA-users wrote: Hello ! I contact you because I encounter a problem when I use kpasswd using python popen function. I use freeipa 3.0 and python 2.6.6. Here is what I do in python : input_process = otp + '\n' + password + '\n' + password Here you