[python-ldap] Attribute syntax definitions
Michael Ströder
michael at stroeder.com
Thu Dec 13 09:22:51 CET 2012
Nyasha Chigwamba wrote:
> After fiddling a bit, I discovered that the following holds (note the swap
> between structural and abstract kind constants):
> kind
> Kind of an object class: 0 = *STRUCTURAL*, 1 = *ABSTRACT*, 2 = AUXILIARY
Yes, you're right. ldap.schema.models.ObjectClass.__doc__ is wrong.
I've committed the patch below.
Ciao, Michael.
===================================================================
RCS file: /cvsroot/python-ldap/python-ldap/Lib/ldap/schema/models.py,v
retrieving revision 1.45
diff -u -r1.45 models.py
--- Lib/ldap/schema/models.py 7 Mar 2012 19:07:15 -0000 1.45
+++ Lib/ldap/schema/models.py 13 Dec 2012 08:21:35 -0000
@@ -124,8 +124,8 @@
an entry of the object class may have
kind
Kind of an object class:
- 0 = ABSTRACT,
- 1 = STRUCTURAL,
+ 0 = STRUCTURAL,
+ 1 = ABSTRACT,
2 = AUXILIARY
sup
This list of strings contains NAMEs or OIDs of object classes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3883 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20121213/2254c0e7/attachment-0001.bin>
More information about the python-ldap
mailing list