The attribute syntax specified to the directory service is invalid.
This post describes how to fix the error: The attribute syntax specified to the directory service is invalid.
Problem
When committing the setting of an Active Directory custom attribute you get the error:
System.DirectoryServices.DirectoryServicesCOMException (0x8007200B): The attribute syntax specified to the directory service is invalid.
at System.DirectoryServices.DirectoryEntry.CommitChanges()
Cause
This error occurs when you try to set a custom attribute to a type that is invalid. For example, if you try to set an integer when the Active Directory schema is configured to accept a string.
This can occur when you use XIA Automation to create or modify accounts with one or more custom attributes in Active Directory:
XIA Automation screenshot showing the error
The attribute syntax specified to the directory service is invalid
Solution
Ensure that the value type that you are trying to set matches what has been configured for that custom attribute in your Active Directory schema. You can check the type by using the Active Directory Schema MMC snap-in:
Video
Watch a video describing how to fix the error: The attribute syntax specified to the directory service is invalid
Related Posts
- Name translation Could not find the name or insufficient right to see name
Comments
Post a Comment