Mailinglist Archive: zypp-devel (149 mails)

< Previous Next >
Re: [zypp-devel] CredentialManager to get data for authentication
  • From: Jan Kupec <jkupec@xxxxxxx>
  • Date: Thu, 18 Sep 2008 13:33:28 +0200
  • Message-id: <48D23C88.3000007@xxxxxxx>
So, after some discussions, current implementation looks like this:

credential file locations:
- global credential file /etc/zypp/credentials.cat 640(?)
- user credential file ~/.zypp/credentials.cat 600
- custom credential file dir /etc/zypp/credentials.d
the files will have 640 permission(?)

when adding repos, credentials can be specified in the URL:

- as username:password (http://username:password@xxxxxxx)
this will be saved in global file (or should we ask user?)

- as ?credentials=credfile parameter
(http://foo.org?credentials=credfile)

filepath:
- /absolute/path/credfile
this particular file will be read
- credfile
$ZYPP_CRED_DIR/credfile will be read
- path/credfile
$ZYPP_CRED_DIR/credfile will be read
(the leading path will be ignored)

where ZYPP_CRED_DIR=/etc/zypp/credentials.d by default

TODOs (next week probably)
- make the file locations configurable via zypp.conf
- add UI callbacks and implement methods for getting
the credentials using these callbacks to ask user
to provide the creds and where to save them
- if ?credentials file does not exist, call back to user
to provide them and save in the file
- more comments in CredentialManager.h

--
cheers,
jano
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
References