[36816] in Kerberos

home help back first fref pref prev next nref lref last post

Re: Kerberos Query

daemon@ATHENA.MIT.EDU (Brandon Allbery)
Mon Mar 2 23:37:28 2015

From: Brandon Allbery <ballbery@sinenomine.net>
To: "kerberos@mit.edu" <kerberos@mit.edu>
Date: Tue, 3 Mar 2015 04:37:10 +0000
Message-ID: <1425357428.6766.5.camel@vikktakkht>
In-Reply-To: <CAG2Duu7iMqby3j-yTKE0GBncSp4jYCNj2e3gnNAgpoA9yWpM+A@mail.gmail.com>
Content-Language: en-US
Content-ID: <686A1CA0BDD05645BF2DB3468D04F856@mex05.mlsrvr.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu

On Tue, 2015-03-03 at 10:25 +0800, arun elango wrote:
> What is the root cause behind the error below:
> 
> "Inappropriate  I/O control operation getting initial ticket".
> 
> The CIRCUMSTANCE is when I try to change password using kpassword , i try
> to pass the arguments to the console programatically. Thats when i get this
> error.

You will need to use a pty instead of a pipe to run kinit that way: it
requires a terminal, or something that looks like one. The error is
because it is performing a terminal-specific device control operation
(switching off key echo).

You might want to look at something like "expect" which is available as
a library for many different programming languages. However, you'd do
better to find a Kerberos library for that language instead.

-- 
brandon s allbery kf8nh                           sine nomine associates
allbery.b@gmail.com                              ballbery@sinenomine.net
unix openafs kerberos infrastructure xmonad        http://sinenomine.net

________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post