[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 00/11] Support CHAP authentication for iscsi pool



The XMLs like (<auth type='chap' login='foo' passwd='kudo'/>) was
introduced long ago, but it's never used for any pool backend. This
implements the support first (See 6/11 for details), and based on it,
using "secret" object for the authentication is added too. E.g.

    <auth type='chap' username='foo'>
      <secret uuid='48dcd4a4-b25f-4fc6-8874-84797c6e3678'/>
    </auth>

Osier Yang (11):
  storage: Refactor the rng schema for storage pool auth
  storage: Support "username" for "chap" type "auth"
  storage: Add a struct for auth secret
  storage: Introduce XMLs to use secret object for pool auth
  storage: Output auth type before username
  storage: Support "chap" authentication for iscsi pool
  storage: Support to use secret object for iscsi chap "auth"
  storage: Update docs/formatsecret.html
  storage: Use the internal API to get the secret value instead
  storage: Improve the pool auth type parsing and formating
  Storage: Fix the indention of rbd test file

 docs/formatsecret.html.in                          |  10 +-
 docs/schemas/storagepool.rng                       |  51 +++---
 src/conf/storage_conf.c                            | 179 ++++++++++++++-------
 src/conf/storage_conf.h                            |  28 +++-
 src/storage/storage_backend_iscsi.c                | 114 ++++++++++++-
 src/storage/storage_backend_rbd.c                  |  13 +-
 .../storagepoolxml2xmlin/pool-iscsi-auth-login.xml |  17 ++
 .../pool-iscsi-auth-secret.xml                     |  19 +++
 .../pool-iscsi-auth-username.xml                   |  17 ++
 tests/storagepoolxml2xmlin/pool-iscsi-auth.xml     |  17 --
 tests/storagepoolxml2xmlin/pool-rbd.xml            |   2 +-
 .../pool-iscsi-auth-login.xml                      |  20 +++
 .../pool-iscsi-auth-secret.xml                     |  22 +++
 .../pool-iscsi-auth-username.xml                   |  20 +++
 tests/storagepoolxml2xmlout/pool-iscsi-auth.xml    |  20 ---
 .../pool-iscsi-vendor-product.xml                  |   2 +-
 tests/storagepoolxml2xmlout/pool-rbd.xml           |   2 +-
 tests/storagepoolxml2xmltest.c                     |   3 +-
 18 files changed, 424 insertions(+), 132 deletions(-)
 create mode 100644 tests/storagepoolxml2xmlin/pool-iscsi-auth-login.xml
 create mode 100644 tests/storagepoolxml2xmlin/pool-iscsi-auth-secret.xml
 create mode 100644 tests/storagepoolxml2xmlin/pool-iscsi-auth-username.xml
 delete mode 100644 tests/storagepoolxml2xmlin/pool-iscsi-auth.xml
 create mode 100644 tests/storagepoolxml2xmlout/pool-iscsi-auth-login.xml
 create mode 100644 tests/storagepoolxml2xmlout/pool-iscsi-auth-secret.xml
 create mode 100644 tests/storagepoolxml2xmlout/pool-iscsi-auth-username.xml
 delete mode 100644 tests/storagepoolxml2xmlout/pool-iscsi-auth.xml

-- 
1.8.1.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]