summaryrefslogtreecommitdiff
path: root/sys/src/cmd/auth
AgeCommit message (Collapse)Author
2018-02-05auth/asn12rsa: also convert ASN.1 encoded public key to plan9 formatcinap_lenrek
2018-01-21factotum: implement mschapv2 role=server authentication (for ppp)cinap_lenrek
this implements the server part of mschapv2 with the new authserver changes. we also provide AuthInfo for the client now with the MPPE secret and the authenticator.
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).
2018-01-07forgot to commit asn1dump.c...cinap_lenrek
2018-01-06factotum: remove unused sshrsa.ccinap_lenrek
2018-01-06remove asn12dsa, dsa2pub, dsa2ssh and dsagencinap_lenrek
was mostly usefull for old ssh.
2018-01-06auth/asn1dump: include in mkfilecinap_lenrek
2018-01-02factotum: remove legacy wep protocolcinap_lenrek
2018-01-01factotum: replace custom hex parsing code with dec16() avoding timing side ↵cinap_lenrek
channels
2017-12-03auth/factotum: add role=login protocol variant to dp9ik/p9sk1cinap_lenrek
the role=login protocol is ment to replace proto=p9cr in auth_userpasswd() from libauth to authenticate a user given a username and a password. in contrast to p9cr, it does not require an authentication server when user is the hostowner and its key is present in factotum.
2017-12-03auth/login: add missing quotefmtinstall(), quote dom attributecinap_lenrek
2017-10-06rsa: add auth/rsa2asn1, check write error in auth/rsa2x509 and auth/rsa2pub, ↵cinap_lenrek
document in rsa(8)
2017-06-18auth/factotum: complete p9any v.2 server protocol, but don't enable it.cinap_lenrek
2017-04-17factotum: append public rsa encyption exponent after the moduluscinap_lenrek
this makes implementing ssh-rsa authentication easier, as we then can convert the public key directly to ssh format and check if the server will accept that public key. tlshand just needs the modulus to see if the public key matches the one it has from the certificate.
2017-04-17rsa2ssh: drop support for version 1 key formatcinap_lenrek
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
2017-02-25auth/asaudit: quote user and dom attributes in factotum keycinap_lenrek
2017-02-25asaudit: check factotum key ; netaudit: mention asauditaiju
2017-02-24asaudit: missing \n in printaiju
2017-02-24mergeaiju
2017-02-24add auth/asauditaiju
2017-02-24auth/readnvram: also print dp9ik keycinap_lenrek
2017-02-23auth/keyfs: support -r flag to mount read-onlyaiju
2017-02-09factotum: support sha256 algorithm in rsa pkcs#1 signingmischief
also removed md2 oid, it is unused.
2017-02-06rsagen: prefer 65537 as the default exponent when elen == 0, otherwise pick ↵cinap_lenrek
randomly
2017-01-26auth/keyfs: use ulong for timecinap_lenrek
2017-01-26secstore/secuser: use ulong for timecinap_lenrek
2017-01-22factotum: fix memory leak in findkey()cinap_lenrek
2016-12-26keyfs: print error message when reading /adm/keys failscinap_lenrek
2016-12-22auth/as: simplify furthercinap_lenrek
2016-12-22auth/as, auth/none, auth/newns: consistent handling of command arguments, ↵cinap_lenrek
cleanup
2016-10-23auth/factotum: bound the number of srv processes to 16, error the 9p rpc ↵cinap_lenrek
when it is over limit
2016-08-08auth/fgui: use pale colorscinap_lenrek
2016-08-04auth/login: add dp9ik key to sub factotum, get rid of temporary /srv filecinap_lenrek
2016-07-31auth: various cleanups, use common readcons() from libauthsrv, zero keys ↵cinap_lenrek
after use
2016-07-31auth/secstore: use common readcons() routine from libauthsrvcinap_lenrek
2016-07-31auth/factotum: use common readcons() function from libauthsrvcinap_lenrek
2016-07-24auth/changeuser: fix misleading print (secret is 31 chars max, not 256)cinap_lenrek
2016-07-24make error handling in 9p service loops consistentcinap_lenrek
when we get eof, stop the loop immidiately and do not rely on the read to eventually return an error. when convM2S() fails to decode the message, error out and stop the loop. there is no point in continuing.
2016-04-22rsa: rename getkey() to getrsakey(), document rsa2csr in rsa(8)cinap_lenrek
2016-04-21rsagen: increase default key size to 2048 bitscinap_lenrek
2016-03-01auth/pemencode: fix usage()BurnZeZ
2016-02-22factotum: fix memory leak for p9any key confirmation, fix key handling for ↵cinap_lenrek
role=client when we look up role=speakfor key and askforkeys is set, the findkey() can return RpcNeedkey, which causes us to skip the query for a role=client key. Instead, we now check for the return value != RpcOk (and != RpcConfirm which we want to handle the same for both queries). we have to free the attribute lists when returning RpcConfirm.
2016-02-14cron: just run /bin/rx to execute remote commandscinap_lenrek