2009-06-30 09:40:37 +00:00
|
|
|
<?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">
|
2009-06-30 10:26:08 +00:00
|
|
|
<display>Group</display>
|
2009-06-30 09:40:37 +00:00
|
|
|
<order>1</order>
|
|
|
|
<page>1</page>
|
|
|
|
</attribute>
|
|
|
|
<attribute id="displayName">
|
|
|
|
<display>Windows Name</display>
|
|
|
|
<order>2</order>
|
|
|
|
<page>1</page>
|
|
|
|
</attribute>
|
|
|
|
<attribute id="gidNumber">
|
2009-06-30 10:26:08 +00:00
|
|
|
<display>GID Number</display>
|
|
|
|
<hint>Automatically determined</hint>
|
2009-06-30 10:46:00 +00:00
|
|
|
<value>=php.GetNextNumber(/,gid,true,(&(objectClass=sambaDomain)(sambaDomainName=mysambadomain))</value>
|
|
|
|
<readonly>1</readonly>
|
2009-06-30 09:40:37 +00:00
|
|
|
<order>3</order>
|
|
|
|
<page>1</page>
|
|
|
|
<spacer>1</spacer>
|
|
|
|
</attribute>
|
|
|
|
<attribute id="sambaSID">
|
|
|
|
<display>Samba SID</display>
|
2009-06-30 10:46:00 +00:00
|
|
|
<option>=php.PickList(/,(objectClass=sambaDomain),sambaSID,%sambaSID% (%sambaDomainName%))</option>
|
2009-06-30 09:40:37 +00:00
|
|
|
<helper>
|
|
|
|
<id>sidsuffix</id>
|
2009-06-30 10:46:00 +00:00
|
|
|
<option>=php.GetNextNumber(/,gid,false,(&(objectClass=sambaDomain)(sambaDomainName=mysambadomain)),*2;+1000)</option>
|
2009-06-30 09:40:37 +00:00
|
|
|
</helper>
|
2009-06-30 10:46:00 +00:00
|
|
|
<post>=php.Join(-,(%sambaSID%,%sidsuffix%))</post>
|
2009-06-30 09:40:37 +00:00
|
|
|
<order>4</order>
|
|
|
|
<page>1</page>
|
|
|
|
</attribute>
|
|
|
|
<attribute id="sambaGroupType">
|
|
|
|
<display>Samba Group Type</display>
|
2009-06-30 10:46:00 +00:00
|
|
|
<option id="2">Domain Group</option>
|
|
|
|
<option id="4">Local Group</option>
|
|
|
|
<option id="5">Well-known Group</option>
|
|
|
|
<value>2</value>
|
2009-06-30 09:40:37 +00:00
|
|
|
<order>5</order>
|
|
|
|
<page>1</page>
|
|
|
|
<spacer>1</spacer>
|
|
|
|
</attribute>
|
|
|
|
<attribute id="memberUid">
|
2009-06-30 10:26:08 +00:00
|
|
|
<display>Users</display>
|
2009-06-30 10:46:00 +00:00
|
|
|
<type>multiselect</type>
|
|
|
|
<option>=php.MultiList(/,(objectClass=posixAccount),uid,%cn% %uid|-4/U%,memberUid,dmdName=users:::dc=localdomain,root => cn=root; nobody => cn=nobody,cn,,,)</option>
|
|
|
|
<value>=php.MultiList(/,(&(objectClass=posixAccount)(gidNumber=29999)),uid)</value>
|
|
|
|
<size>10</size>
|
2009-06-30 09:40:37 +00:00
|
|
|
<hidden>0</hidden>
|
|
|
|
<order>10</order>
|
|
|
|
<page>1</page>
|
|
|
|
</attribute>
|
|
|
|
</attributes>
|
|
|
|
</template>
|