Michael Ströder wrote:
Quanah Gibson-Mount wrote:
but you are correct -- uidNumber should not have leading 0's,
having them is broken, and you will have to remove them to get the data
to import. Whatever client depends on them needs to be fixed.

Hmm, I'd rather consider this to be a bug in Integer syntax
implementation of slapd. IMO slapd SHOULD (and easily could) normalize
integer attribute values with leading zeros.

Nope. It may be a bug in the Integer syntax definition in LDAP, but slapd just implements the spec. The Integer syntax is defined in RFC4517 as
        Integer = ( HYPHEN LDIGIT *DIGIT ) / number
So there is an explicit distinction between leading digits (LDIGIT) and arbitrary digits (DIGIT). And LDIGIT is defined in RFC4512 to explicitly exclude zero, i.e., leading zeroes are explicitly disallowed.

So - to comply with the spec, clients should not be generating integer values with leading zeroes. If you don't like this, you have to change the LDAP spec first.
--
  -- Howard Chu
  Chief Architect, Symas Corp.  http://www.symas.com
  Director, Highland Sun        http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP     http://www.openldap.org/project/

Reply via email to