[24831] in Kerberos
kadmin -q return codes
daemon@ATHENA.MIT.EDU (dotmatt)
Mon Oct 17 15:02:56 2005
From: "dotmatt" <dotmatt@gmail.com>
Date: 17 Oct 2005 11:26:11 -0700
Message-ID: <1129573571.094709.86850@f14g2000cwb.googlegroups.com>
To: kerberos@mit.edu
Errors-To: kerberos-bounces@mit.edu
All-
I need to administratively change passwords from a java app, and as I
have not found a nice Java API for this yet, I am shelling to the MIT
kadmin binary. I am essentially shelling: kadmin -q "change_password
-pw <password> <principal>" This works very well, but if the
change_password fails (for example, a non-existent principal), I still
get a return code of zero. Is there a simple way (without coding a
Java JNI wrapper, and if possible, without parsing stdout/stderr) for
me to determine the exit status of the change_password action?
Is anyone aware of a Java API for this process, preferably FOSS?
Thank you,
-Matt
________________________________________________
Kerberos mailing list Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos