...
This commit is contained in:
@@ -36,4 +36,48 @@
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:complexType name="t_user">
|
||||
<xs:sequence>
|
||||
<xs:element name="password" minOccurs="0" maxOccurs="1"
|
||||
type="aif:t_nixpass"/>
|
||||
<xs:element name="xGroup" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="name" type="unix:t_posixUserGroup"
|
||||
use="required"/>
|
||||
<xs:attribute name="create" type="xs:boolean" use="optional"
|
||||
default="false"/>
|
||||
<xs:attribute name="gid" type="xs:positiveInteger"
|
||||
use="optional"/>
|
||||
</xs:complexType>
|
||||
<xs:unique name="uniq_grp">
|
||||
<xs:selector xpath="aif:xGroup"/>
|
||||
<xs:field xpath="@name"/>
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="name" type="unix:t_posixUserGroup" use="required"/>
|
||||
<xs:attribute name="home" type="unix:t_filepath" use="optional"/>
|
||||
<xs:attribute name="uid" type="xs:positiveInteger" use="optional"/>
|
||||
<xs:attribute name="group" type="unix:t_posixUserGroup" use="optional"/>
|
||||
<xs:attribute name="gid" type="xs:positiveInteger" use="optional"/>
|
||||
<xs:attribute name="comment" type="std:t_nonempty" use="optional"/>
|
||||
<xs:attribute name="sudo" type="xs:boolean" use="optional"
|
||||
default="false"/>
|
||||
<xs:attribute name="sudoPassword" type="xs:boolean" use="optional"
|
||||
default="true"/>
|
||||
<xs:attribute name="shell" type="unix:t_filepath" use="optional"
|
||||
default="/bin/bash"/>
|
||||
<!-- TODO: change the positiveIntegers to xs:duration? or union? -->
|
||||
<!-- Might be pointless since the smallest increment is 1 day in
|
||||
shadow(5). -->
|
||||
<xs:attribute name="minAge" type="xs:positiveInteger" use="optional"/>
|
||||
<xs:attribute name="maxAge" type="xs:positiveInteger" use="optional"/>
|
||||
<xs:attribute name="warnDays" type="xs:positiveInteger"
|
||||
use="optional"/>
|
||||
<xs:attribute name="inactiveDays" type="xs:positiveInteger"
|
||||
use="optional"/>
|
||||
<xs:attribute name="expireDate" type="std:t_epoch_or_iso"
|
||||
use="optional"/>
|
||||
</xs:complexType>
|
||||
|
||||
</xs:schema>
|
||||
|
||||
Reference in New Issue
Block a user