Orkut Gmail Calendar Documents Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Credentials for an arbitrary user.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kevin Burton  
View profile  
 More options Feb 3 2004, 11:54 pm
Newsgroups: comp.protocols.kerberos
From: "Kevin Burton" <rkevinbur...@charter.net>
Date: Tue, 3 Feb 2004 12:23:44 -0600
Local: Tues, Feb 3 2004 11:53 pm
Subject: Credentials for an arbitrary user.
I am trying to interface with our Windows 2000 server using Kerberos. I
would like a client to obtain a credential handle for a given user with a
supplied password. Using GSSAPI this involves calling gss_init_sec_context
and instead of passing GSS_C_NO_CREDENTIAL I would like to pass the opaque
handle gss_cred_id_t which is obtained via gss_acquire_cred. The problem is
that gss_acquire_cred only has the option to specify a credential by name
(not password). So I am assuming that the way to go would be to look at what
kinit does and then the "name" of the credential is probably the prinicipal
name. I call the following:

krb5_init_context
krb5_cc_default
krb5_parse_name (passing the principal name name@domain)
krb5_unparse_name (because that is what kinit does)

Then I call krb5_get_init_creds_password and I get an error indicating the
my I/O flags are not appropriate. This is a Windows application so tty
settings and I/O setting are not really applicable. Is there another way to
get a set of credentials given a user name and password? Ideally I would
like a gss_cred_id_t handle of the credentials but right now I would take
anything.

Thank you for your suggestions.

Kevin


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sam Hartman  
View profile  
 More options Feb 4 2004, 1:29 am
Newsgroups: comp.protocols.kerberos
From: hartm...@MIT.EDU (Sam Hartman)
Date: Tue, 3 Feb 2004 19:59:43 +0000 (UTC)
Local: Wed, Feb 4 2004 1:29 am
Subject: Re: Credentials for an arbitrary user.
You definitely want to be using krb5_get_init_creds_password.  I think
the problem has to do with how you are setting up the credentials
cache, not with your tty configuration.

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


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wyllys Ingersoll  
View profile  
 More options Feb 4 2004, 1:31 am
Newsgroups: comp.protocols.kerberos
From: wyllys.ingers...@sun.com (Wyllys Ingersoll)
Date: Tue, 3 Feb 2004 20:01:49 +0000 (UTC)
Local: Wed, Feb 4 2004 1:31 am
Subject: Re: Credentials for an arbitrary user.

Kevin Burton wrote:
>I am trying to interface with our Windows 2000 server using Kerberos. I
>would like a client to obtain a credential handle for a given user with a
>supplied password. Using GSSAPI this involves calling gss_init_sec_context
>and instead of passing GSS_C_NO_CREDENTIAL I would like to pass the opaque
>handle gss_cred_id_t which is obtained via gss_acquire_cred. The problem is
>that gss_acquire_cred only has the option to specify a credential by name
>(not password). So I am assuming that the way to go would be to look at what
>kinit does and then the "name" of the credential is probably the prinicipal
>name. I call the following:

GSSAPI does not have an API for getting initial credentials (i.e.
'kinit' functionality).
The user must establish their personal credentials external to the
GSSAPI application
(example:  run kinit, then run the GSSAPI application).

>krb5_init_context
>krb5_cc_default
>krb5_parse_name (passing the principal name name@domain)
>krb5_unparse_name (because that is what kinit does)

Depending on where you put this code, you are likely violating the
abstraction
layer that GSSAPI was designed to provide. An application that calls
GSSAPI should never call an mechanism-specific API.

-Wyllys

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

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"Douglas E. Engert"  
View profile  
 More options Feb 4 2004, 2:07 am
Newsgroups: comp.protocols.kerberos
From: deeng...@anl.gov ("Douglas E. Engert")
Date: Tue, 3 Feb 2004 20:37:30 +0000 (UTC)
Local: Wed, Feb 4 2004 2:07 am
Subject: Re: Credentials for an arbitrary user.

Kevin Burton wrote:

> I am trying to interface with our Windows 2000 server using Kerberos. I
> would like a client to obtain a credential handle for a given user with a
> supplied password.

If the client is running on UNIX, you can setting KRB5CCNAME ....
then do a kinit then call your application. The gss_acquire_cred will use
the underlying implementations method to find the credential.

If the client is on Windows there are some other things you can do.

> Using GSSAPI this involves calling gss_init_sec_context
> and instead of passing GSS_C_NO_CREDENTIAL I would like to pass the opaque
> handle gss_cred_id_t which is obtained via gss_acquire_cred. The problem is
> that gss_acquire_cred only has the option to specify a credential by name

The name would be which credential in a credential cache. Its not what
you might think.  

> (not password). So I am assuming that the way to go would be to look at what
> kinit does and then the "name" of the credential is probably the prinicipal
> name. I call the following:

> krb5_init_context
> krb5_cc_default
> krb5_parse_name (passing the principal name name@domain)
> krb5_unparse_name (because that is what kinit does)

> Then I call krb5_get_init_creds_password and I get an error indicating the
> my I/O flags are not appropriate. This is a Windows application so tty
> settings and I/O setting are not really applicable. Is there another way to
> get a set of credentials given a user name and password? Ideally I would
> like a gss_cred_id_t handle of the credentials but right now I would take
> anything.

(This is not tested:)
 #!/bin/sh
 KRB5CCNAME=FILE:/tmp/krb5_cc.appl.$$ i.e. make it unique
 export KRB5CCNAME
 kinit
 application
 kdestroy

If it has to be in the applicaiton how about something like:
  setenv("KRB5CCNAME", somefilename);
  system("kinit"); /* or call some krb5 routines */
  gss_acquire_cred();  

> Thank you for your suggestions.

> Kevin

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

--

 Douglas E. Engert  <DEEng...@anl.gov>
 Argonne National Laboratory
 9700 South Cass Avenue
 Argonne, Illinois  60439
 (630) 252-5444
________________________________________________
Kerberos mailing list           Kerbe...@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Burton  
View profile  
 More options Feb 4 2004, 4:42 am
Newsgroups: comp.protocols.kerberos
From: "Kevin Burton" <rkevinbur...@charter.net>
Date: Tue, 3 Feb 2004 17:12:01 -0600
Local: Wed, Feb 4 2004 4:42 am
Subject: Re: Credentials for an arbitrary user.
The client will more than likely be running on UNIX but I need to test it on
Windows. Right now I am using KfW 2.6 beta.

Kevin

""Douglas E. Engert"" <deeng...@anl.gov> wrote in message
news:40200016.401D0036@anl.gov...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Burton  
View profile  
 More options Feb 4 2004, 4:42 am
Newsgroups: comp.protocols.kerberos
From: "Kevin Burton" <rkevinbur...@charter.net>
Date: Tue, 3 Feb 2004 17:10:43 -0600
Local: Wed, Feb 4 2004 4:40 am
Subject: Re: Credentials for an arbitrary user.
I am taking this directly from the kinit source. I want this functionality
to be embedded in the app.

Kevin

"Wyllys Ingersoll" <wyllys.ingers...@sun.com> wrote in message

news:401FF4A3.2050401@sun.com...
> Kevin Burton wrote:

> >I am trying to interface with our Windows 2000 server using Kerberos. I
> >would like a client to obtain a credential handle for a given user with a
> >supplied password. Using GSSAPI this involves calling

gss_init_sec_context


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Burton  
View profile  
 More options Feb 4 2004, 6:36 am
Newsgroups: comp.protocols.kerberos
From: "Kevin Burton" <rkevinbur...@charter.net>
Date: Tue, 3 Feb 2004 19:06:32 -0600
Local: Wed, Feb 4 2004 6:36 am
Subject: Re: Credentials for an arbitrary user.
I would welcom any suggestions but when I call com_err to lookup the return
from this function call I get "Inappropriate I/O control operation when
getting password". The sepcific code returned is 0x19.

Kevin

"Sam Hartman" <hartm...@MIT.EDU> wrote in message

news:tslsmhsc676.fsf@konishi-polis.mit.edu...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sam Hartman  
View profile  
 More options Feb 4 2004, 11:24 pm
Newsgroups: comp.protocols.kerberos
From: hartm...@MIT.EDU (Sam Hartman)
Date: Wed, 4 Feb 2004 17:54:17 +0000 (UTC)
Local: Wed, Feb 4 2004 11:24 pm
Subject: Re: Credentials for an arbitrary user.
Are you using krb5_prompter_posix?  If so, this does not really work
on Windows outside of console mode.  You probably want to write your
own prompter function.

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


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Burton  
View profile  
 More options Feb 6 2004, 12:55 am
Newsgroups: comp.protocols.kerberos
From: "Kevin Burton" <rkevinbur...@charter.net>
Date: Thu, 5 Feb 2004 13:25:17 -0600
Local: Fri, Feb 6 2004 12:55 am
Subject: Re: Credentials for an arbitrary user.
Do you have any suggestions as to how to do that?

"Sam Hartman" <hartm...@MIT.EDU> wrote in message

news:tslvfmmbvxa.fsf@konishi-polis.mit.edu...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeffrey Altman  
View profile  
 More options Feb 6 2004, 1:25 am
Newsgroups: comp.protocols.kerberos
From: Jeffrey Altman <jaltm...@nyc.rr.com>
Date: Thu, 05 Feb 2004 19:48:32 GMT
Local: Fri, Feb 6 2004 1:18 am
Subject: Re: Credentials for an arbitrary user.
A prompter function is simply a function which is used to
allow the Kerberos library to ask your application to prompt
the user for necessary information.  The implementation of
the prompter function is therefore 100% dependent on the
application which is calling krb5_get_init_creds_password().

Jeffrey Altman


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google