[cups.development] LDAP schema:contribution

Nicolas HAHN hahnn at x-itools.com
Tue Mar 27 05:35:08 PDT 2007



   Hi,

   I was trying to find the famous printer.schema file in cups-1.2.10  
base directory, without any success. Then I did a search on cups.org  
web site, and I found some information in STR #1962. Here I found a  
printer.schema, apparently posted by Krumboeck on Sep 07, 2006 at 03:45.

   Unfortunately, this seems to be like an OpenLDAP schema, and here  
we use SunOne Directory Server 5.2.

   Then, I just have produced a schema based on yours for SDS5.2. I  
have tested it by configuring cups to use it without any problem.

   I join my version of this schema to this email as a contribution to  
cups development, because I'm sure that others would be potentially  
interested by this one, especially in environments using the Sun LDAP  
directory server.

   I hope that the printer.schema I found on your web site is the  
latest one and can propose you to update tehh SDS5.2 schema version  
each time you modify your version, or you will probably want to do it  
yourself,Kind regards,
-- 
Nicolas HAHN
X-Itools project manager



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cups.org/pipermail/cups/attachments/20070327/23d7540e/attachment.html>
-------------- next part --------------
# Definitions for a schema to store CUPS printer information in LDAP
# OID Base is iso(1) org(3) dod(6) internet(1) private(4) enterprise(1) me(5323) cupsSchema(22)
#
# Syntaxes are under 1.3.6.1.4.1.5323.22.0
# Attributes are under 1.3.6.1.4.1.5323.22.1
# Object Classes are under 1.3.6.1.4.1.5323.22.2
#
# Cups schema file for Netscape DS 5.x or Sun One Directory Server 5.2
# By Nicolas HAHN (http://x-itools.x-itools.com, http://www.sci-gamaca.com,
#   http://www.aux-coquelicots.fr, http://www.erios.eu)
#
# INSTALL-DIRECTORY/slapd-your_name/config/schema/99cups.ldif
#
###########################################################################
# Sun One DS do not load the schema without this lines
# nicolas HAHN <hahnn at x-itools.com>
dn: cn=schema
objectClass: top
objectClass: ldapSubentry
objectClass: subschema
cn: schema
aci: (target="ldap:///cn=schema")(targetattr !="aci")(version 3.0;acl "anonymo
 us, no acis"; allow (read, search, compare) userdn = "ldap:///anyone";)
aci: (targetattr = "*")(version 3.0; acl "Configuration Administrator"; allow
 (all) userdn = "ldap:///uid=admin,ou=Administrators, ou=TopologyManagement,
 o=NetscapeRoot";)
aci: (targetattr = "*")(version 3.0; acl "Local Directory Administrators Group
 "; allow (all) groupdn = "ldap:///cn=Directory Administrators, dc=cups,dc=org
";)
aci: (targetattr = "*")(version 3.0; acl "SIE Group"; allow (all)groupdn = "ld
 ap:///cn=slapd-cupsldap, cn=iPlanet Directory Server, cn=Server Group, cn=iPl
anetDirectory.cups.org, ou=cups.org, o=NetscapeRoot";)
####################################################################
attributeTypes: ( 1.3.6.1.4.1.5323.22.1.1 NAME 'printerDescription' DESC 'Description of Printer' EQUALITY caseExactMatch SINGLE-VALUE SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'user defined' )
attributeTypes: ( 1.3.6.1.4.1.5323.22.1.2 NAME 'printerURI' DESC 'CUPS style URI for printer' EQUALITY caseExactIA5Match SINGLE-VALUE SYNTAX 1.3.6.1.4.1..1466.115.121.1.26 X-ORIGIN 'user defined' )
attributeTypes: ( 1.3.6.1.4.1.5323.22.1.3 NAME 'printerLocation' DESC 'Identifier string for Printer Location' EQUALITY caseExactMatch SINGLE-VALUE SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'user defined' )
attributeTypes: ( 1.3.6.1.4.1.5323.22.1.4 NAME 'printerMakeAndModel' DESC 'String CUPS uses to figure out driver' EQUALITY caseExactMatch SINGLE-VALUE SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'user defined' )
attributeTypes: ( 1.3.6.1.4.1.5323.22.1.5 NAME 'printerType' DESC 'Integer CUPS uses to figure out type' EQUALITY integerMatch SINGLE-VALUE SYNTAX 1.3.6..1.4.1.1466.115.121.1.27 X-ORIGIN 'user defined' )
objectClasses: ( 1.3.6.1.4.1.5323.22.2.1 NAME 'cupsPrinter' SUP top AUXILIARY DESC 'Cups printer browsing object class' MUST ( printerDescription $ printerURI $ printerLocation $ printerMakeAndModel $ printerType ) X-ORIGIN 'user defined' )


More information about the cups mailing list