Kinit errorcode in Samba is not returned.
abartlet at samba.org
Mon Nov 8 23:47:49 MST 2010
On Mon, 2010-11-08 at 21:20 -0800, ranji wrote:
> Before doing an AD join,I perform kinit.
> kinit is working fine w.r.t AD join and is able to join to domain
> When kinit fails,it always returns the value 1 .
> As per my study it must return different error code in HEX (Unknown realm,
> Invalid cerendtials,Clockskew error).
> Is there any option avail in samba Makefile to enable this kerberos
> scenarios with appropriate error codes.???
kinit is not a part of Samba, but is usually supplied by your operating
If you want to obtain the kerberos error code generated by kinit (or
it's equivalent), you must link to the Kerberos C API, as Samba does.
Why do you need these error codes? (There are many good reasons to need
them, but if you tell me more about what you are trying to do, I can
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Cisco Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 190 bytes
Desc: This is a digitally signed message part
More information about the samba-technical