antiduh / nsspi

A C# / .Net interface to the Win32 SSPI authentication API
BSD 2-Clause "Simplified" License
64 stars 34 forks source link

Alternative credentials; NuGet Package; versioning #9

Closed oxygenius closed 6 years ago

oxygenius commented 7 years ago

Hi Kevin,

Thank you for your project. Great effort

I change some code to be able to logon with another credential (for client and server). I was planning to do a pull request. But saw you did an implementation yourself.

I want to adapt your implementation to able to use nuget and future releases, but these change are not in a nuget package yet. Also the TestClient (and TestServer) lacks an implementation.

Will you be able to do this in near future?

Regards!

antiduh commented 7 years ago

Yeah, I can publish an update tomorrow. What would you like to see in the TestClient and TestServer? Since those are only for demonstration, I didn't figure it'd be necessary to update them.

IsaacBoy commented 7 years ago

Hey thanks for this. Yea an example of using the un/password credentials you added would be really helpful

antiduh commented 7 years ago

Sorry this took a while to publish, work has been killing me. I've put out the new build on nuget, so go nuts. I didn't update the demo since I'm slim on time, but the usage is fairly straight-forward - check out the PasswordCredential class, which you would use in place of the previous credential classes.

I'll leave this open for a few days in case anybody has feedback on the new build

oxygenius commented 7 years ago

Hi Kevin.

Thank you very much.

I think there is a bug in AuthData.cs

internal enum NativeAuthDataFlag : int
{
    Ansi = 1,

    Unicode = 1
}

Unicode should be 2

antiduh commented 6 years ago

Finally fixed that enum. Closing this.

Bosje commented 6 years ago

Hi Kevin,

Can I get en ETA on when a new version will be released with this fix? We are currently using a self maintained NuGet package.

Thank you for your work!

antiduh commented 6 years ago

@Bosje - All done. Sorry for the delay!