How to get credentials for network access in authentication package?



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
.



Relevant Pages

  • Re: HELP HELP QUICK, I HAVE STRANGERS IN MY SYSTEM
    ... >with the Local Security Authority. ... This logon process ... >will be trusted to submit logon requests. ... >authentication package will be used to authenticate logon ...
    (microsoft.public.windowsxp.security_admin)
  • HELP HELP QUICK, I HAVE STRANGERS IN MY SYSTEM
    ... with the Local Security Authority. ... This logon process ... will be trusted to submit logon requests. ... authentication package will be used to authenticate logon ...
    (microsoft.public.windowsxp.security_admin)