krb5_rd_req() server argument should be optional

Nicolas Williams Nicolas.Williams at ubsw.com
Fri Feb 15 16:52:00 EST 2002


Yes, I have a need for a form of krb5_rd_req() whose server princ name
argument is optional and, if not provided, is obtained straight from the
decoded AP-REQ and returned to the caller.

This probably means a new API call based on rd_req() with a server
argument that is a pointer to a krb5_principal, and this function will
have to search the given keytab for a key for the principal name
extracted from the AP-REQ.

This, I think, is how rd_req() should have worked from the get-go.

Similarly the verify_creds() function should have an optional service
principal argument which, if not given, should cause verify_creds() to
try every SPN given in the keytab.

In either case the caller could check the actual SPN used and would take
that into account, if applicable, in any authorization decisions.

Would such a feature be welcome?

Comments?

Nico
-- 
-DISCLAIMER: an automatically appended disclaimer may follow. By posting-
-to a public e-mail mailing list I hereby grant permission to distribute-
-and copy this message.-

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.




More information about the krbdev mailing list