]> xenbits.xensource.com Git - libvirt.git/commitdiff
add help document relevant to default mapping of credentials to machines
authoryuelongguang <yuelongguang@le.com>
Thu, 16 Jun 2016 11:20:24 +0000 (19:20 +0800)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 24 Jun 2016 15:36:54 +0000 (16:36 +0100)
* src/util/virauthconfig.c

docs/auth.html.in

index 37f2978707c3d7caa97ecd1197cd11b77e38f617..487c3aad798bf148dfeb63a1f72c9390acc91c02 100644 (file)
@@ -76,7 +76,11 @@ password=letmein
 
 [credentials-dev]
 username=joe
-password=hello</pre>
+password=hello
+
+[credentials-defgrp]
+username=defuser
+password=defpw</pre>
 
     <p>
       The second set of groups provide mappings of credentials to
@@ -90,7 +94,8 @@ credentials=$CREDENTIALS</pre>
 
     <p>
       For example, following the previous example, here is how to
-      list some machines
+      map some machines. For convenience libvirt supports a default
+      mapping of credentials to machines:
     </p>
 
     <pre>
@@ -106,8 +111,15 @@ credentials=test
 [auth-libvirt-prod1.example.com]
 credentials=prod
 
+[auth-libvirt-default]
+credentials=defgrp
+
 [auth-esx-dev1.example.com]
-credentials=dev</pre>
+credentials=dev
+
+[auth-esx-default]
+credentials=defgrp</pre>
+
 
     <p>
       The following service types are known to libvirt