summaryrefslogtreecommitdiff
path: root/sys/src/cmd/auth/authsrv.c
AgeCommit message (Collapse)Author
2018-07-11authsrv: log message when no AES key is found for pakcinap_lenrek
2018-05-20authsrv: implement AuthNTLMcinap_lenrek
2018-05-20authsrv: work arround linux omiting final Z(4) after the AvrPairscinap_lenrek
2018-05-19cifsd: fix ntlmv2 authenticationcinap_lenrek
in ntlmv2, the client will retry the challenge response trying a bunch of different domain names assuming the same server challenge. so we have to make retries work with factotum and the auth server. also, windows 7 with compatlevel=4 sends all zeros LM response.
2018-01-21authsrv: implement mschapv2 authentication, include MPPE secret in the ticketcinap_lenrek
this adds new rpc for mschapv2 authentication (21) deliver the MPPE secret not after the ticket/authenticator response as cheartext, but include it in the first 128 bit of the ticket key. and the authenticator in the first 160 bit of the authenticator random field.
2018-01-15authsrv: fix chapcinap_lenrek
use OCHAPREPLYLEN instead of sizeof(reply) (no padding). exit after sending ticket response to force eof as factotum unconditionally reads tailing secret hash (as of mschap).
2017-02-26authsrv: handle short reads in initkeyseed()cinap_lenrek
2017-02-26authsrv: don't hash in hostowner key for keyseedcinap_lenrek
aiju → i don't like it, it's more bullshit ways to expose the key :) aiju → if someone can grab /adm/keyseed, they can also grab /adm/users and /adm/keys
2017-02-26authsrv: salt the keyseed from /adm/keyseed filecinap_lenrek
change the keyseed key derivation to hkdf sha256 using the hostowners des key plus 256 bit random salt from /adm/keyseed.
2017-02-26authsrv: fix mkkey() dummy key generation (thanks aiju)cinap_lenrek
2017-02-26authsrv: get rid of needreply parameter by changing vnc protocol handlercinap_lenrek
2017-02-26authsrv: more useful error reportingaiju
2016-07-31auth: various cleanups, use common readcons() from libauthsrv, zero keys ↵cinap_lenrek
after use
2016-01-06auth: release dp9ik implementation and reentrant factotumcinap_lenrek
2015-08-21cmd/auth: remove private /dev/random reading routines, use genrandom()cinap_lenrek
2015-08-21authsrv: randomize aes key in mkkey(), not used yet.cinap_lenrek
2015-08-21authsrv: more aes key stuffcinap_lenrek
2015-08-19libauthsrv: generalize ticket service, not hardcoding ticket format and DES ↵cinap_lenrek
encryption this is in preparation for replacing DES ticket encryption with something better. but first need to make the code stop making assumptions. the wire encoding of the Ticket might be variable length with TICKETLEN just giving an upper bound. the details will be handled by libauthsrv _asgetticket() and _asgetresp() funciotns. the Authenticator and Passwordreq structures are encrypted with the random ticket key. The encryption schmeme will depend on the Ticket format used, so we pass the Ticket* structure instead of the DES key. introduce Authkey structure that will hold all the required cryptographic keys instead of passing DES key.
2015-06-02authsrv: use plan9 key for http authenticationcinap_lenrek
in addition to /sys/lib/httppasswords, allow http authentication to use the plan9 password, which can be changed by the user.
2014-02-15factotum/authsrv: fix padding for mschap on amd64, use constants for ↵cinap_lenrek
structure sizes
2013-12-08handle NIL user domain, and Z(4) at end of nt blob for ntlmv2cinap_lenrek
the nt blob ends with 4 zero bytes, this is not the same as the EOL av-pair terminator! this makes ntlmv2 work with windows xp with LmCompatibityLevel = 3
2013-12-08experimental ntlmv2 server authenticaion support for cifsdcinap_lenrek
extending factotums and the auth servers mschap implementation to handle variable length NT response for NTLMv2. fix some minor bugs. only tested with cifs so far.
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen