67 lines
2.0 KiB
XML
67 lines
2.0 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<!DOCTYPE template SYSTEM "template.dtd">
|
|
<template>
|
|
<title>Samba3 Group Mapping</title>
|
|
<!-- <regexp>^ou=.*,</regexp> -->
|
|
<icon>images/ou.png</icon>
|
|
<description>New Samba3 Group Mapping</description>
|
|
<askcontainer>1</askcontainer>
|
|
<rdn>cn</rdn>
|
|
<visible>1</visible>
|
|
|
|
<objectClasses>
|
|
<objectClass id="posixGroup"></objectClass>
|
|
<objectClass id="sambaGroupMapping"></objectClass>
|
|
</objectClasses>
|
|
|
|
<attributes>
|
|
<attribute id="cn">
|
|
<display>Group</display>
|
|
<order>1</order>
|
|
<page>1</page>
|
|
</attribute>
|
|
<attribute id="displayName">
|
|
<display>Windows Name</display>
|
|
<order>2</order>
|
|
<page>1</page>
|
|
</attribute>
|
|
<attribute id="gidNumber">
|
|
<display>GID Number</display>
|
|
<hint>Automatically determined</hint>
|
|
<order>3</order>
|
|
<page>1</page>
|
|
<presubmit>=php.GetNextNumber(/,gid,true,(&(objectClass=sambaDomain)(sambaDomainName=mysambadomain))</presubmit>
|
|
<spacer>1</spacer>
|
|
</attribute>
|
|
<attribute id="sambaSID">
|
|
<display>Samba SID</display>
|
|
<helper>
|
|
<id>sidsuffix</id>
|
|
<value>=php.GetNextNumber(/,gid,false,(&(objectClass=sambaDomain)(sambaDomainName=mysambadomain)),*2;+1000)</value>
|
|
<location>side</location>
|
|
</helper>
|
|
<order>4</order>
|
|
<page>1</page>
|
|
<post>=php.Join(-,(%sambaSID%,%sidsuffix%))</post>
|
|
<value>=php.PickList(/,(objectClass=sambaDomain),sambaSID,%sambaSID% (%sambaDomainName%))</value>
|
|
</attribute>
|
|
<attribute id="sambaGroupType">
|
|
<default>2</default>
|
|
<display>Samba Group Type</display>
|
|
<order>5</order>
|
|
<page>1</page>
|
|
<spacer>1</spacer>
|
|
<value id="2">Domain Group</value>
|
|
<value id="4">Local Group</value>
|
|
<value id="5">Well-known Group</value>
|
|
</attribute>
|
|
<attribute id="memberUid">
|
|
<display>Users</display>
|
|
<value>=php.MultiList(/,(objectClass=posixAccount),uid,%cn% %uid|-4/U%,memberUid,dmdName=users:::dc=localdomain,root => cn=root; nobody => cn=nobody,cn,10,(&(objectClass=posixAccount)(gidNumber=29999)),uid)</value>
|
|
<hidden>0</hidden>
|
|
<order>10</order>
|
|
<page>1</page>
|
|
</attribute>
|
|
</attributes>
|
|
</template>
|