Acitve Directory: Handling attributes with LARGE_INTEGER / INTEGER8 syntax

北城余情 提交于 2019-12-23 05:22:18

问题


I have an vb.net app that handles directory service attributes. I have to display the attribute values. To get the values I use LDAP.

Microsoft's Active Directory has the syntax (or type) LARGE_INTEGER / INTEGER8. I saw various LDAP-Browsers that display this type of attribute as DateTime. But Microsoft's documentation says that this syntax (or type) is a 64-bit signed integer value.

My question: Does the schema definition provide an information where I can detect that an attribute with the LARGE_INTEGER syntax should be handled as DateTime or not?

Here is an example:

  • lastLogoff -> DateTime
  • msExchVersion -> No DateTime

Both attributes have the same syntax.

Thank you for helping!


回答1:


Yes. The LARGE_INTEGER thing is an abstraction at the ADSI layer. If you look at the docs for the lastLogoff attribute, for example (http://msdn.microsoft.com/en-us/library/ms676822(v=vs.85).aspx), you'll see the actual AD syntax is Interval. You can grab the syntax for a given attribute off the attribute definition in the schema.




回答2:


Regarding to the following post it seems that there is no way to see whether a LARGE_INTEGER attribute should be handled as DateTime or not :\

Same datatype Storage but different representation in AD (UsnChanged and LastLogon)



来源:https://stackoverflow.com/questions/24905407/acitve-directory-handling-attributes-with-large-integer-integer8-syntax

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!