in reply to problem with getting Active Directory user properties with library Win32::AD::User

Neither in SelfADSI nor in MSDN can I find an attribute "middleName".

Do you perhaps mean Initials (which seems to be used for the "middle initial")?

  • Comment on Re: problem with getting Active Directory user properties with library Win32::AD::User

Replies are listed 'Best First'.
Re^2: problem with getting Active Directory user properties with library Win32::AD::User
by Anonymous Monk on Oct 17, 2016 at 08:59 UTC
    If you go to Attributes Editor in user properties in Active Directory "Users and Computers", there is a lot of attributes. One of them is "middleName". "initials" is also there.

      Indeed. the MSDN "All Attributes" list that I referenced is indexed by "CN", while the Attributes Editor shows the "Ldap-Display-Name"

      So NetWallah's answer is probably closer. OTOH the "Initials" field is shown in the "general" user properties, and the "Other-Name" (middleName) field is not.