search for: ntcreatetoken

Displaying 1 result from an estimated 1 matches for "ntcreatetoken".

Did you mean: createtoken
2001 Jul 11
2
[PATCH]: Cygwin: Allow sshd to switch user context without password
...* we deny all requsts for changing the user context if another * authentication method is used. - * This may change in future when a special openssh - * subauthentication package is available. + * + * This doesn't apply to Cygwin versions >= 1.3.2 anymore which + * uses the undocumented NtCreateToken() call to create a user + * token if the process has the appropriate privileges and if + * CYGWIN ntsec setting is on. */ - if (is_winnt && !pwd_authenticated && geteuid() != uid) - return 0; - + static int has_create_token = -1; + + if (is_winnt) { + if (has_create_token <...