Can't get all User attributes #446
migber3200
started this conversation in
General
Replies: 1 comment 2 replies
-
Hi @migber3200, Are those attributes actually set on the user? Or are they empty? Can you also share your code? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
We have configured active directory and, for each user, a series of data.
To connect to LDAP we are using ldaprecord and we have a problem. It seems that the ldaprecord User object doesn't recognize some of the attributes. When we run hasAttribute on some of them, it always returns false.
If, from the console, we execute the following:
Get-ADUser -Identity [user] -Properties *
returns all the attributes of the LDAP User account. AccountExpirationDate, accountExpires, CN, DistinguishedName, etc...
The problem is that when we have the same user as an ldaprecord User object, it doesn't recognize attributes like extensionAttribute1, extensionAttribute2, extensionAttribute3, SmartcardLogonRequired, etc...
What can we do to make these attributes and their values available from an ldaprecord User object?
Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions