/etc/phpldapadmin/templates/creation/sambaGroupMapping.xml is in phpldapadmin 1.2.2-5.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<askcontainer>1</askcontainer>
<description>New Samba3 Group Mapping</description>
<icon>ldap-ou.png</icon>
<invalid>0</invalid>
<rdn>cn</rdn>
<!-- <regexp>^ou=.*,</regexp> -->
<title>Samba: Group Mapping</title>
<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>
<order>3</order>
<page>1</page>
<readonly>1</readonly>
<spacer>1</spacer>
<value><![CDATA[=php.GetNextNumber(/;gidNumber;true;(&(objectClass=sambaDomain)(sambaDomainName=mysambadomain))]]></value>
</attribute>
<attribute id="sambaSID">
<display>Samba SID</display>
<helper>
<id>sidsuffix</id>
<value><![CDATA[=php.GetNextNumber(/;gidNumber;false;(&(objectClass=sambaDomain)(sambaDomainName=mysambadomain));*2,+1000)]]></value>
</helper>
<order>4</order>
<post>=php.Join(-;%sambaSID%,%sidsuffix%)</post>
<page>1</page>
<value><![CDATA[=php.PickList(/;(&(objectClass=sambaDomain));sambaSID;%sambaSID% (%sambaDomainName%);;;;sambaDomainName)]]></value>
</attribute>
<attribute id="sambaGroupType">
<display>Samba Group Type</display>
<order>5</order>
<page>1</page>
<spacer>1</spacer>
<type>select</type>
<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>
<hidden>0</hidden>
<order>10</order>
<page>1</page>
<size>10</size>
<value><![CDATA[=php.MultiList(/;(&(objectClass=posixAccount));uid)]]></value>
<!-- <value><![CDATA[=php.MultiList(/;(&(objectClass=posixAccount));uid;%cn% %uid|-4/U%;memberUid;dmdName=users,dc=localdomain;root => cn=root, nobody => cn=nobody;cn;;;)]]></value> -->
</attribute>
</attributes>
</template>
|