Announcement

Collapse
No announcement yet.

Schema update problem

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Schema update problem

    Dear all,
    I has some strange problem.
    I add attribute to previously exist class. The schema update was successfull.
    In schema mmc I see the attribute as part of class.
    Then I create object of this class in adsi editor I can see this attribute
    in allowedAttributesEffective attribute, but cannot see it in the list of
    attributes.
    If I run the ldap query to returm this attribute I get Unspecified error.

    Thanks

  • #2
    Re: Schema update problem

    Could you post the LDIF of the schema change ?
    Does the attribute show up in mayContain (or systemMayContain) attribute of the objectClass you updated ?
    i.e.:
    Code:
    C:\>adfind -schema -f ldapdisplayname=user maycontain
    
    AdFind V01.12.00cpp Joe Richards ([email protected]) May 2003
    
    Using server: descartes.antid0t.net
    Base DN: CN=Schema,CN=Configuration,DC=antid0t,DC=net
    
    dn:CN=User,CN=Schema,CN=Configuration,DC=antid0t,DC=net
    >mayContain: msExchOriginatingForest
    >mayContain: msExchIMAPOWAURLPrefixOverride
    >mayContain: audio
    >mayContain: carLicense
    >mayContain: departmentNumber
    >mayContain: displayName
    >mayContain: employeeNumber
    >mayContain: employeeType
    >mayContain: givenName
    >mayContain: homePostalAddress
    >mayContain: jpegPhoto
    >mayContain: labeledURI
    >mayContain: photo
    >mayContain: preferredLanguage
    >mayContain: roomNumber
    >mayContain: secretary
    >mayContain: uid
    >mayContain: userPKCS12
    >mayContain: userSMIMECertificate
    >mayContain: x500uniqueIdentifier
    >mayContain: kMServer
    >mayContain: msExchConferenceMailboxBL
    >mayContain: msExchResourceProperties
    >mayContain: msExchResourceGUID
    >mayContain: msExchControllingZone
    >mayContain: msExchQueryBaseDN
    
    
    1 Objects returned
    Guy Teverovsky
    "Smith & Wesson - the original point and click interface"

    Comment


    • #3
      Re: Schema update problem

      1. I use vb program to update the schema
      2. I see the new attribute in mayContain in class and I see new attribute in allowedEffectiveAttributes in object. but i cannot access the attribute
      3. after schema update pass 3 days so any the schema replication should be finished

      the schema update code is
      ( code can add more than one attribute to class)



      Set tmpClass = GetObject("LDAP://" & szServerName & "/schema/" & className)
      tmpClass.GetInfo

      tmp = tmpClass.OptionalProperties
      If (IsArray(tmp)) Then
      For i = 0 To UBound(classArray)
      bExist = False
      For j = 0 To UBound(tmp)
      If (StrComp(tmp(j), classArray(i), vbTextCompare) = 0) Then
      bExist = True
      Exit For
      End If
      Next
      If (Not bExist) Then
      ReDim Preserve tmp(UBound(tmp) + 1)
      tmp(UBound(tmp)) = classArray(i)
      End If
      Next

      tmpClass.OptionalProperties = tmp
      Call SetInfo(tmpClass, m_log)
      Else
      Call Err.Raise(ERR_INTERNAL_ERROR, Erl, "No previous optional attributes")
      End If

      Comment

      Working...
      X