32 lines
730 B
C#
32 lines
730 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace NSspi
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main( string[] args )
|
|
{
|
|
Credential cred = null;
|
|
try
|
|
{
|
|
cred = new Credential( SecurityPackage.Negotiate, CredentialType.Client );
|
|
|
|
string name = cred.Name;
|
|
Console.Out.WriteLine( name );
|
|
Console.Out.Flush();
|
|
}
|
|
finally
|
|
{
|
|
if ( cred != null )
|
|
{
|
|
cred.Dispose();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|