How to get credentials for network access in authentication package?
- From: Corinna Vinschen <corinna@xxxxxxxxxxxxxxxx>
- Date: Wed, 18 Jun 2008 12:50:11 +0000 (UTC)
Hi,
maybe my question is a bit weird, but I guess I just don't understand
the whole logon process good enough. Bear with me.
My situation is this. I created a custom authentication package which
is supposed to be used by OpenSSH with public key authentication. The
public key is stored in the user's home dir and checked by the ssh
daemon, just like on any UNIX machine. When the authentication was
successful, the ssh daemon calls the authentication package which in
turn creates a user token. The resulting user token looks fine and the
user is correctly identified by, for instance, the whoami tool.
However, there was never a password exchanged in this process and the
credentials for network access are missing. The user can't access the
usual network shares, unless `net use' is called with explicitely
specifying the user's password. Or, when trying to get information from
AD using LDAP with default credentials, ldap_bind_s (ld, NULL, NULL,
LDAP_AUTH_NEGOTIATE) fails with error 0x01.
So here's the question. Is there a way to fetch and add the necessary
credentials in the authentication package or in the logon application,
without the need to specify the password? Is there some example code
which shows how to do it?
Thanks in advance,
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat
.
- Follow-Ups:
- Re: How to get credentials for network access in authentication package?
- From: Corinna Vinschen
- Re: How to get credentials for network access in authentication package?
- Prev by Date: Re: Zune software installation Access Denied on Windows Vista
- Next by Date: RSA Encryption without Session Keys - (I know it's a bad idea)
- Previous by thread: Re: Zune software installation Access Denied on Windows Vista
- Next by thread: Re: How to get credentials for network access in authentication package?
- Index(es):
Relevant Pages
|