Re: debian ldap schema?
Magosányi Árpád wrote:
Where can I find the schema files used by the debian ldap server?
I coul only find a proposed schema with syntax errors with gugli.
LDAPv3 servers can provide their schema over LDAP.
I don't have pretty-printing code yet, but in ldaptor-utils, there's
a tool for that:
ldaptor-fetchschema \
--base='dc=debian,dc=org' \
--service-location='dc=debian,dc=org:db.debian.org'
You can also do the work with ldapsearch, following RFC2251:
[0 tv@tao ~]$ ldapsearch -x -h db.debian.org -b dc=debian,dc=org -s base
'(objectClass=*)' subschemaSubentry
# extended LDIF
#
# LDAPv3
# base <dc=debian,dc=org> with scope base
# filter: (objectClass=*)
# requesting: subschemaSubentry
#
# debian.org
dn: dc=debian,dc=org
subschemaSubentry: cn=Subschema
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
[0 tv@tao ~]$ ldapsearch -x -h db.debian.org -b cn=Subschema -s base
'(objectClass=*)' attributeTypes objectClasses | head -20
# extended LDIF
#
# LDAPv3
# base <cn=Subschema> with scope base
# filter: (objectClass=*)
# requesting: attributeTypes objectClasses
#
# Subschema
dn: cn=Subschema
attributeTypes: ( 2.5.18.1 NAME 'createTimestamp' EQUALITY
generalizedTimeMatc
h ORDERING generalizedTimeOrderingMatch SYNTAX
1.3.6.1.4.1.1466.115.121.1.24
SINGLE-VALUE NO-USER-MODIFICATION USAGE directoryOperation )
attributeTypes: ( 2.5.18.2 NAME 'modifyTimestamp' EQUALITY
generalizedTimeMatc
h ORDERING generalizedTimeOrderingMatch SYNTAX
1.3.6.1.4.1.1466.115.121.1.24
SINGLE-VALUE NO-USER-MODIFICATION USAGE directoryOperation )
attributeTypes: ( 2.5.18.3 NAME 'creatorsName' EQUALITY
distinguishedNameMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 SINGLE-VALUE
NO-USER-MODIFICATION USAGE
directoryOperation )
attributeTypes: ( 2.5.18.4 NAME 'modifiersName' EQUALITY
distinguishedNameMatc
[0 tv@tao ~]$
Reply to: