From 8f6aca7668fc0f84a6d678c820136d6fcbba15af Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 7 Mar 2004 23:27:03 +0000 Subject: [PATCH] Add experimental novell schema --- phpgwapi/doc/ldap/README | 7 + phpgwapi/doc/ldap/phpgwaccount.nds.schema | 100 +++++++ phpgwapi/doc/ldap/phpgwcontact.nds.schema | 327 ++++++++++++++++++++++ 3 files changed, 434 insertions(+) create mode 100644 phpgwapi/doc/ldap/phpgwaccount.nds.schema create mode 100644 phpgwapi/doc/ldap/phpgwcontact.nds.schema diff --git a/phpgwapi/doc/ldap/README b/phpgwapi/doc/ldap/README index 67c4d5d3d3..4be1aa8143 100644 --- a/phpgwapi/doc/ldap/README +++ b/phpgwapi/doc/ldap/README @@ -90,3 +90,10 @@ include /etc/openldap/phpgw.at.conf include /etc/openldap/phpgwcontact.oc.conf include /etc/openldap/phpgwcontact.at.conf + +Novell eDirectory: + +The following are for use with Novell eDirectory (EXPERIMENTAL): + phpgwaccount.nds.schema + phpgwcontact.nds.schema + diff --git a/phpgwapi/doc/ldap/phpgwaccount.nds.schema b/phpgwapi/doc/ldap/phpgwaccount.nds.schema new file mode 100644 index 0000000000..bd853a9c27 --- /dev/null +++ b/phpgwapi/doc/ldap/phpgwaccount.nds.schema @@ -0,0 +1,100 @@ +# $Id egroupware : phpgwaccount.schema,v 1.0 2000/07/29 01:53:16 milosch Exp $ + +# (C) 2001-2004 Miles Lott +# Redistribution and use in original text and binary forms, with or +# without modification, are permitted provided that the following +# conditions are met: +# +# 1. Redistributions of this schema and/or documentation must retain +# the above copyright notice, this list of conditions and the +# following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, +# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING +# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +# POSSIBILITY OF SUCH DAMAGE. + +# lastlogin +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.1 + NAME 'phpgwAccountLastLogin' + DESC 'timestamp of last login' + EQUALITY integerMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 + SINGLE-VALUE ) + +# lastloginfrom +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.2 + NAME 'phpgwAccountLastLoginFrom' + DESC 'IP address as a dotted decimal, eg. 192.168.1.1, omitting leading zeros' + EQUALITY caseIgnoreIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} ) + +# lastpasswdchange +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.3 + NAME 'phpgwLastPasswdChange' + EQUALITY integerMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 + SINGLE-VALUE ) + +# accounttype +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.4 + NAME 'phpgwAccountType' + DESC 'Single-char u/g for user/group' + EQUALITY caseExactIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE ) + +# status +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.5 + NAME 'phpgwAccountStatus' + DESC 'Single-char A/L for active/inactive' + EQUALITY caseExactIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE ) + +# expires +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.6 + NAME 'phpgwAccountExpires' + DESC 'timestamp for account expiration' + EQUALITY integerMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 + SINGLE-VALUE ) + +# Objectclass definition for phpgwAccount +dn: cn=schema +changetype: modify +add: objectClasses +objectClasses: ( 1.3.6.1.4.1.9554.0 NAME 'phpgwAccount' SUP top AUXILIARY + DESC 'Abstraction of an account with phpgw attributes' + MAY ( phpgwAccountLastLogin $ phpgwAccountLastLoginFrom $ phpgwLastPasswdChange $ phpgwAccountType $ phpgwAccountStatus $ phpgwAccountExpires) ) + diff --git a/phpgwapi/doc/ldap/phpgwcontact.nds.schema b/phpgwapi/doc/ldap/phpgwcontact.nds.schema new file mode 100644 index 0000000000..e82fa7b3f0 --- /dev/null +++ b/phpgwapi/doc/ldap/phpgwcontact.nds.schema @@ -0,0 +1,327 @@ +# $Id egroupware : phpgwcontact.schema,v 1.0 2000/07/29 01:53:16 milosch Exp $ + +# (C) 2001-2004 Miles Lott +# Redistribution and use in original text and binary forms, with or +# without modification, are permitted provided that the following +# conditions are met: +# +# 1. Redistributions of this schema and/or documentation must retain +# the above copyright notice, this list of conditions and the +# following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, +# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING +# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +# POSSIBILITY OF SUCH DAMAGE. + +# REQUIRED +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.100 + NAME 'phpgwContactTypeId' + EQUALITY caseIgnoreMatch + SUBSTR caseIgnoreSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{16} + SINGLE-VALUE ) + +# REQUIRED +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.101 + NAME 'phpgwContactCatId' + EQUALITY caseIgnoreMatch + SUBSTR caseIgnoreSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{16}) + +# REQUIRED +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.102 + NAME 'phpgwContactAccess' + EQUALITY caseIgnoreMatch + SUBSTR caseIgnoreSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} + SINGLE-VALUE ) + +# REQUIRED +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.103 + NAME 'phpgwContactOwner' + EQUALITY numericStringMatch + SUBSTR numericStringSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.36{16} + SINGLE-VALUE ) + +# BELOW ARE OPTIONAL +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.105 + NAME 'phpgwMiddlename' + SUP name ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.106 + NAME 'phpgwPrefix' + SUP name ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.107 + NAME 'phpgwSuffix' + SUP name ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.108 + NAME 'phpgwAudio' + SYNTAX 1.3.6.1.4.1.1466.115.121.1.4{25000} ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.109 + NAME 'phpgwBirthday' + EQUALITY caseIgnoreMatch + SUBSTR caseIgnoreSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.110 + NAME 'phpgwTz' + EQUALITY integerMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 + SINGLE-VALUE ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.111 + NAME 'phpgwGeo' + EQUALITY integerMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 + SINGLE-VALUE ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.112 + NAME 'phpgwUrl' + EQUALITY caseIgnoreMatch + SUBSTR caseIgnoreSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.113 + NAME 'phpgwPublicKey' + EQUALITY caseIgnoreMatch + SUBSTR caseIgnoreSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.114 + NAME 'phpgwAdrOneType' + EQUALITY caseIgnoreMatch + SUBSTR caseIgnoreSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.115 + NAME 'phpgwAddressLabel' + EQUALITY caseIgnoreListMatch + SUBSTR caseIgnoreListSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.41 ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.116 + NAME 'phpgwAdrTwoStreet' + SUP street ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.117 + NAME 'phpgwAdrTwoLocality' + SUP l ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.118 + NAME 'phpgwAdrTwoRegion' + SUP st ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.119 + NAME 'phpgwAdrTwoPostalCode' + SUP postalcode ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.120 + NAME 'phpgwAdrTwoCountryName' + SUP friendlyCountryName ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.121 + NAME 'phpgwAdrTwoType' + SUP phpgwAdrOneType ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.122 + NAME 'phpgwVoiceTelephoneNumber' + SUP telephonenumber ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.123 + NAME 'phpgwMsgTelephoneNumber' + SUP telephonenumber ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.124 + NAME 'phpgwPagerTelephoneNumber' + SUP telephonenumber ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.125 + NAME 'phpgwCellTelephoneNumber' + SUP telephonenumber ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.126 + NAME 'phpgwBbsTelephoneNumber' + SUP telephonenumber ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.127 + NAME 'phpgwModemTelephoneNumber' + SUP telephonenumber ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.128 + NAME 'phpgwMobileTelephoneNumber' + SUP telephonenumber ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.129 + NAME 'phpgwIsdnphoneNumber' + SUP telephonenumber ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.130 + NAME 'phpgwVideophoneNumber' + SUP telephonenumber ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.131 + NAME 'phpgwPreferPhone' + EQUALITY caseExactIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.132 + NAME 'phpgwMailType' + EQUALITY caseExactIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.133 + NAME 'phpgwMailHome' + SUP mail ) + +dn: cn=schema +changetype: modify +add: attributetypes +attributeTypes: ( 1.3.6.1.4.1.9554.134 + NAME 'phpgwMailHomeType' + SUP phpgwMailType ) + +# phpgwContact +# The phpgwContact represents people who are associated with a +# phpgw install in some way. It is a structural class and is derived +# from the inetOrgPerson schema. +dn: cn=schema +changetype: modify +add: objectClasses +objectClasses: ( 1.3.6.1.4.1.9554.200 + NAME 'phpgwContact' + DESC 'phpGroupWare Contact Entry' + SUP inetOrgPerson + MUST( + uid $ uidnumber $ phpgwContactTypeId $ phpgwContactCatId $ + phpgwContactAccess $ phpgwContactOwner ) + MAY ( cn $ givenname $ sn $ phpgwMiddlename $ phpgwPrefix $ + phpgwSuffix $ phpgwAudio $ phpgwBirthday $ phpgwTz $ phpgwGeo $ + phpgwUrl $ phpgwPublicKey $ o $ ou $ title $ streetaddress $ + l $ st $ postalcode $ friendlyCountryName $ c $ co $ countryname $ + phpgwAdrOneType $ phpgwAddressLabel $ + phpgwAdrTwoStreet $ phpgwAdrTwoLocality $ phpgwAdrTwoRegion $ + phpgwAdrTwoPostalCode $ phpgwAdrTwoCountryName $ phpgwAdrTwoType $ + telephonenumber $ homephone $ phpgwVoiceTelephoneNumber $ facsimiletelephonenumber $ + phpgwMsgTelephoneNumber $ phpgwCellTelephoneNumber $ phpgwPagerTelephoneNumber $ + phpgwBbsTelephoneNumber $ phpgwModemTelephoneNumber $ + phpgwMobileTelephoneNumber $ phpgwIsdnphoneNumber $ + phpgwVideophoneNumber $ phpgwPreferPhone $ + mail $ phpgwMailType $ phpgwMailHome $ phpgwMailHomeType ) + ) +