[elbe-devel] [PATCH v1 09/15] dbsfed.xsd: target: add attribute to passwd element

Holger Dengler holger at hdengler.de
Wed Jun 8 22:39:52 CEST 2022


Add boolean attribute "keep_plain" to "passwd" element. It controls the
removal of the plain-text password during the XML preprocessing.

Signed-off-by: Holger Dengler <holger at hdengler.de>
---
 schema/dbsfed.xsd | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/schema/dbsfed.xsd b/schema/dbsfed.xsd
index dd9e246d4..110a7c4ad 100644
--- a/schema/dbsfed.xsd
+++ b/schema/dbsfed.xsd
@@ -980,7 +980,7 @@
           </documentation>
         </annotation>
       </element>
-      <element name="passwd" type="rfs:string" minOccurs="1" maxOccurs="1">
+      <element name="passwd" type="rfs:passwd" minOccurs="0" maxOccurs="1">
         <annotation>
           <documentation>
             root password
@@ -2524,6 +2524,23 @@
     </simpleContent>
   </complexType>
 
+  <complexType name="passwd">
+    <annotation>
+      <documentation>
+        The plain-text password. The plain-text password element in XML will
+        be removed by the pre-processing, after creating or updating the
+        hashed password in 'passwd_hashed'.
+        The plain-text password can be kept by setting attribute
+        'keep_plain' to 'true'. The default is 'false'.
+      </documentation>
+    </annotation>
+    <simpleContent>
+      <extension base="rfs:string">
+        <attribute name="keep_plain" type="boolean" use="optional" />
+      </extension>
+    </simpleContent>
+  </complexType>
+
   <complexType name="adduser">
     <annotation>
       <documentation>
-- 
2.36.1



More information about the elbe-devel mailing list