Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdminDescription = $NULL result in a "unintended" ADMF update event #52

Open
AndiBellstedt opened this issue Dec 28, 2023 · 1 comment

Comments

@AndiBellstedt
Copy link

The following PSD1 file for schema attributes will result in a "unintended" update event;

Forest schema definition file

@{
        OID = '1.2.840.113556.1.4.2329'
        Name = 'ms-DS-Key-Credential-Link-BL'
        AdminDisplayName = 'ms-DS-Key-Credential-Link-BL'
        LdapDisplayName = 'msDS-KeyCredentialLink-BL'
        OMSyntax = 127
        AttributeSyntax = '2.5.5.1'
        SingleValued = $False
        AdminDescription = $Null
        SearchFlags = 0
        ObjectClass = $Null
        IsDefunct = $False
        Optional = $False
        ContextName = ''
        AdvancedView = $True
}

ADMF "change"-event

Type          : Update
ObjectType    : Schema
Identity      : ms-DS-Key-Credential-Link-BL
Changed       : {adminDescription -> }

AD schema attribue

Attribute "adminDescription" in AD schema is empty and not returned by Get-ADObject

>Get-ADObject -Filter 'Name -eq "ms-DS-Key-Credential-Link-BL"' -SearchBase $schemaNC -Properties * | Format-List *Descr*


Description          :
nTSecurityDescriptor : System.DirectoryServices.ActiveDirectorySecurity

ADMF version: 1.13.98
ForestManagement version: 1.5.71

@FriedrichWeinmann
Copy link
Member

Heya Andi,
thanks for the report. This is indeed an issue with the test, as the adminDescription setting is converted to string (an empty one in your case) and the property on the AD Object is $null when empty.
Will update this on the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants